Index signature for additional G-code parameters. Allows parsing and storing of parameters not explicitly defined above.
OptionaleExtruder position/length in millimeters. Controls the amount of filament to extrude.
OptionalfFeed rate (speed) in millimeters per minute. Determines how fast the print head moves.
OptionaliX offset from current position to arc center in millimeters. Used in G2/G3 arc movement commands.
OptionaljY offset from current position to arc center in millimeters. Used in G2/G3 arc movement commands.
OptionalrRadius of arc in millimeters. Alternative way to specify arc movement in G2/G3 commands.
OptionaltTool number for multi-tool setups. Used to select between different extruders or tools.
OptionalxX-axis position in millimeters. Used for positioning the print head along the X axis.
OptionalyY-axis position in millimeters. Used for positioning the print head along the Y axis.
OptionalzZ-axis position in millimeters. Typically used for layer height control and vertical positioning.
Parameters for G-code commands used in 3D printing.
Remarks
This interface defines the common parameters used in G-code commands for 3D printing. While additional parameters may exist in G-code files, only the parameters listed here are actively used in this library. Other parameters are still parsed and preserved through the index signature.
Example