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