Jump to content

Component: G Code Parser ()

From Flowcode Help
Revision as of 14:37, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix Ltd
Version 1.1
Category


G Code Parser component

A set of routines to allow a G-Code type file to be parsed a line at a time and the coordinates to be collected. Simulates the G commands via a simulation only 3D printer component but can also be used to pass values to actual hardware.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_G-Code_Parser.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_G-Code_Parser.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

GetAxis

GetAxis
Returns the value of the Axis generated from the ParseCommand function. 0 = Read X, 1 = Read Y, 2 = Read Z 
- BYTE Axis
Specifies which axis to read 0/'x'/'X' - 1/'y'/'Y' - 2/'z'/'Z' 
- FLOAT Return


GetCoordinateMode

GetCoordinateMode
Returns the current coordinate mode. 0 = Absolute 1 = Relative 
- BYTE Return


Initialise

Initialise
 
- VOID Return


Parse_G_Command

Parse_G_Command
 
- STRING Command
 
- VOID Return


Property reference

Properties
Bed Color
 
Print Color
 
Print Speed
 
Print Type
 
Print Size
 
Print Shape
 
Max Print Dimensions
X Width
 
Y Length
 
Z Height