module Gcode::Codes

Contains GCodes.

Constants

ABS_EXT_MODE

Set extrusion units in following commands to absolute coordinates.

ABS_POSITIONING

Set following commands to use absolute coordinates.

COMMENT_SYMBOL

Comment symbol @todo Move this to a configurable option.

CONTROLLED_MOVE

Do a move at the given or previously given acceleration (F).

DISABLE_MOTORS

Disable motors.

DWELL

Pause for (P) a given number of milliseconds.

EMRG_STOP

Emergency stop.

ENABLE_MOTORS

Enable motors.

FAN_OFF

Turn off fans

FAN_ON

Trun fans on to given value (S, 0-255).

GET_EXT_TEMP

Report temperatures

GET_FW_DETAILS

Report firmware details.

GET_POSITION

Report position.

HEAD_OFFSET

Set head offset (for multiple extruders).

HOME

Home axes.

IDLE_HOLD_OFF

Trun off powered holding of motors when idle.

INIT_SD

Initialize SD card (needed if card wasn’t present at bootup).

LIST_SD

List contents of SD card.

PAUSE_SD_PRINT

Pause printing from SD card.

POWER_OFF

Power off.

POWER_ON

Power on.

RAPID_MOVE

Do a rapid move.

RELEASE_SD

Release SD (safe removal of SD).

REL_EXT_MODE

Set extrusion units in following commands to relative coordinates.

REL_POSITIONING

Set following commands to use relative coordinates.

SD_PRINT_STATUS

Report SD printing status.

SELECT_SD_FILE

Select SD file (require to print from SD).

SET_BED_TEMP_NW

Set bed temperature and return control to host.

SET_BED_TEMP_W

Set bed temperature and wait for it to reach temperature.

SET_EXT_TEMP_NW

Set Extruder tmeperature and return control to host.

SET_EXT_TEMP_W

Set extruder temperature and wait for it to reach temperature.

SET_LINE_NUM

Reset the line number for the following commands.

SET_POSITION

Set current position.

SET_SD_POSITION

Set SD position in bytes.

SLEEP

Finish moves the shutdown (sending commands will wake machine).

START_SD_PRINT

Print selected file from SD (requires file to be selected).

START_SD_WRITE

Write following GCodes to given file (requires 8.3 file name).

STOP

Finish moves, then shutdown (reset required to wake machine).

STOP_SD_WRITE

Signal end of SD write, following commands will be executed as normal.

USE_INCHES

Set units in following commands to be imperial.

USE_MILLIMETRES

Set units in following commands to be metric (default).

WIAT_FOR_TEMP

Wait for temperature (all extruders and bed) to reach the temerature they were set to.