Skip to content

A Python library that can read, analysis, plot G-code files used in Additive Manufacturing (AM).

License

Notifications You must be signed in to change notification settings

zhangyaqi1989/Gcode-Reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-code Reader

A Gcode visualization and analysis tool written in Python 3. It supports FDM G-Code, Stratasys G-Code and PBF G-Code. It can print a single layer, print multiple layers. It also can animate the printing of a single layer or multiple layers.

Usage

In order to use this program, you need to use -t to specify G-Code type: 1 for regular G-Code, 2 for Stratasys G-Code, 3 for PBF G-Code.

  1. Plot a part in 3D.

Example: python src/gcode_reader.py -t 1 gcode/fdm_regular/octo.gcode -p

Octopus part

  1. Plot a single layer of a part in 2D Example (use -l to specify layer number): python src/gcode_reader.py -t 1 gcode/fdm_regular/octo.gcode -l 1 first layer of octopus part

  2. Animate the printing process of a single layer in 2D

    Example (use -a to specify layer number) python src/gcode_reader.py -t 1 gcode/fdm_regular/tweety.gcode -a 1 animation2d

[click above figure to play]

About

A Python library that can read, analysis, plot G-code files used in Additive Manufacturing (AM).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published