Module g_code::emit[][src]

Expand description

g-code emitter with a few basic commands and argument-checking

Structs

Commands are the operational unit of g-code

Fundamental unit of g-code: a descriptive letter followed by a value.

Enums

The output struct for gcode emission implementing std::fmt::Display

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

Constants

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Constant for this command’s name used to reduce allocations.

Functions

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

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

Call this function to instantiate the command.

Typically used for “cutting” motion

Signals the end of a program

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

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

Start spinning the spindle clockwise with speed p

Start spinning the spindle counterclockwise with speed p

Stop spinning the spindle

Use inches for length units

Use millimeters for length units