Module command

Source
Expand description

Higher-level constructs for g-code emission

Structs§

Command
Commands are the operational unit of g-code

Constants§

ABSOLUTE_DISTANCE_MODE_FIELD
Constant for this command’s name used to reduce allocations.
CLOCKWISE_CIRCULAR_INTERPOLATION_FIELD
Constant for this command’s name used to reduce allocations.
COUNTERCLOCKWISE_CIRCULAR_INTERPOLATION_FIELD
Constant for this command’s name used to reduce allocations.
DWELL_FIELD
Constant for this command’s name used to reduce allocations.
FEED_RATE_UNITS_PER_MINUTE_FIELD
Constant for this command’s name used to reduce allocations.
LINEAR_INTERPOLATION_FIELD
Constant for this command’s name used to reduce allocations.
PROGRAM_END_FIELD
Constant for this command’s name used to reduce allocations.
RAPID_POSITIONING_FIELD
Constant for this command’s name used to reduce allocations.
RELATIVE_DISTANCE_MODE_FIELD
Constant for this command’s name used to reduce allocations.
START_SPINDLE_CLOCKWISE_FIELD
Constant for this command’s name used to reduce allocations.
START_SPINDLE_COUNTERCLOCKWISE_FIELD
Constant for this command’s name used to reduce allocations.
STOP_SPINDLE_FIELD
Constant for this command’s name used to reduce allocations.
UNITS_INCHES_FIELD
Constant for this command’s name used to reduce allocations.
UNITS_MILLIMETERS_FIELD
Constant for this command’s name used to reduce allocations.

Functions§

absolute_distance_mode
In absolute distance mode, axis numbers usually represent positions in terms of the currently active coordinate system.
clockwise_circular_interpolation
Interpolate along an arc to the desired position
counterclockwise_circular_interpolation
See guidance on clockwise_circular_interpolation
dwell
This will keep the axes unmoving for the period of time in seconds specified by the P number
feed_rate_units_per_minute
To instantiate the command, call this function or use the crate::command macro.
linear_interpolation
Interpolate along a line to the desired position
program_end
Signals the end of a program
rapid_positioning
Moves the head to the desired position at the fastest possible speed.
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