Jump to content

Component: G Code Parser (): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 74: Line 74:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetAxis'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetAxis'''
|-
|-
Line 93: Line 93:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCoordinateMode'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCoordinateMode'''
|-
|-
Line 107: Line 107:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
|-
|-
Line 121: Line 121:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Parse_G_Command'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Parse_G_Command'''
|-
|-

Revision as of 14:17, 13 July 2026

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