Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GCode
- = GComment Text
- | GBlock [GCode]
- | F_Feedrate Double
- | M0_Pause
- | G00_LinearRapidMove (Maybe Double) (Maybe Double) (Maybe Double)
- | G01_LinearFeedrateMove (Maybe Double) (Maybe Double) (Maybe Double) (Maybe Double)
- | G02_ArcClockwise (Maybe Double) Double Double Double Double
- | G03_ArcCounterClockwise (Maybe Double) Double Double Double Double
- | G04_Dwell_ms Double
- | G17_Plane_XY
- | G18_Plane_ZX
- | G19_Plane_YZ
- | G20_UseInches
- | G21_UseMm
- | G28_GotoPredefinedPosition (Maybe Double) (Maybe Double) (Maybe Double)
- | G30_GotoPredefinedPosition (Maybe Double) (Maybe Double) (Maybe Double)
- | G90_AbsoluteMovement
- | G91_RelativeMovement
- | G93_Feedrate_TravelInFractionOfMinute
- | G94_Feedrate_UnitsPerMinute
- renderGCode :: [GCode] -> Text
Documentation
Raw GCode for penplotting.
GComment Text | |
GBlock [GCode] | Group a couple of commands for easier reading. |
F_Feedrate Double | Set the feedrate. Normally mm/min, but can be altered using G93, G94, G20, G21. |
M0_Pause | Pause and wait for user input |
G00_LinearRapidMove (Maybe Double) (Maybe Double) (Maybe Double) |
|
G01_LinearFeedrateMove (Maybe Double) (Maybe Double) (Maybe Double) (Maybe Double) |
|
G02_ArcClockwise (Maybe Double) Double Double Double Double |
|
G03_ArcCounterClockwise (Maybe Double) Double Double Double Double |
|
G04_Dwell_ms Double |
|
G17_Plane_XY | |
G18_Plane_ZX | |
G19_Plane_YZ | |
G20_UseInches | |
G21_UseMm | |
G28_GotoPredefinedPosition (Maybe Double) (Maybe Double) (Maybe Double) | G28 X Y Z |
G30_GotoPredefinedPosition (Maybe Double) (Maybe Double) (Maybe Double) | G30 X Y Z |
G90_AbsoluteMovement | Move commands use coordinates relative to the origin |
G91_RelativeMovement | Move commands use coordinates relative to the current position |
G93_Feedrate_TravelInFractionOfMinute | |
G94_Feedrate_UnitsPerMinute |