Module g_code::emit[][src]

GCode emitter with a few basic commands and argument-checking

Structs

Command

Commands are the operational unit of GCode They consist of a G, M, or other top-level field followed by field arguments

Field

Fundamental unit of GCode: a value preceded by a descriptive letter.

Enums

Token
Value

All the possible variations of a field’s value. Some flavors of GCode also allow for strings.

Constants

ABSOLUTE_DISTANCE_MODE_FIELD
DWELL_FIELD
FEED_RATE_UNITS_PER_MINUTE_FIELD
LINEAR_INTERPOLATION_FIELD
PROGRAM_END_FIELD
RAPID_POSITIONING_FIELD
RELATIVE_DISTANCE_MODE_FIELD
START_SPINDLE_CLOCKWISE_FIELD
START_SPINDLE_COUNTERCLOCKWISE_FIELD
STOP_SPINDLE_FIELD
UNITS_INCHES_FIELD
UNITS_MILLIMETERS_FIELD

Functions

absolute_distance_mode

In absolute distance mode, axis numbers usually represent positions in terms of the currently active coordinate system.

dwell

This will keep the axes unmoving for the period of time in seconds specified by the P number

feed_rate_units_per_minute
linear_interpolation

Typically used for “cutting” motion

program_end

Signals the end of a program

rapid_positioning

Moves the head at the fastest possible speed to the desired speed Never enter a cut with rapid positioning Some older machines may “dog leg” rapid positioning, moving one axis at a time

relative_distance_mode

In relative distance mode, axis numbers usually represent increments from the current values of the numbers

start_spindle_clockwise

Start spinning the spindle clockwise with speed p

start_spindle_counterclockwise

Start spinning the spindle counterclockwise with speed p

stop_spindle

Stop spinning the spindle

units_inches

Use inches for length units

units_millimeters

Use millimeters for length units