Module: Gcode::Codes
Overview
Contains GCodes.
Constant Summary collapse
- RAPID_MOVE =
Do a rapid move.
'G0'- CONTROLLED_MOVE =
Do a move at the given or previously given acceleration (F).
'G1'- DWELL =
Pause for (P) a given number of milliseconds.
'G4'- HEAD_OFFSET =
Set head offset (for multiple extruders).
'G10'- USE_INCHES =
Set units in following commands to be imperial.
'G20'- USE_MILLIMETRES =
Set units in following commands to be metric (default).
'G21'- HOME =
Home axes.
'G28'- ABS_POSITIONING =
Set following commands to use absolute coordinates.
'G90'- REL_POSITIONING =
Set following commands to use relative coordinates.
'G91'- SET_POSITION =
Set current position.
'G92'- STOP =
Finish moves, then shutdown (reset required to wake machine).
'M0'- SLEEP =
Finish moves the shutdown (sending commands will wake machine).
'M1'- ENABLE_MOTORS =
Enable motors.
'M17'- DISABLE_MOTORS =
Disable motors.
'M18'- LIST_SD =
List contents of SD card.
'M20'- INIT_SD =
Initialize SD card (needed if card wasn’t present at bootup).
'M21'- RELEASE_SD =
Release SD (safe removal of SD).
'M22'- SELECT_SD_FILE =
Select SD file (require to print from SD).
'M23'- START_SD_PRINT =
Print selected file from SD (requires file to be selected).
'M24'- PAUSE_SD_PRINT =
Pause printing from SD card.
'M25'- SET_SD_POSITION =
Set SD position in bytes.
'M26'- SD_PRINT_STATUS =
Report SD printing status.
'M27'- START_SD_WRITE =
Write following GCodes to given file (requires 8.3 file name).
'M28'- STOP_SD_WRITE =
Signal end of SD write, following commands will be executed as normal.
'M29'- POWER_ON =
Power on.
'M80'- POWER_OFF =
Power off.
'M81'- ABS_EXT_MODE =
Set extrusion units in following commands to absolute coordinates.
'M82'- REL_EXT_MODE =
Set extrusion units in following commands to relative coordinates.
'M83'- IDLE_HOLD_OFF =
Trun off powered holding of motors when idle.
'M84'- SET_EXT_TEMP_NW =
Set Extruder tmeperature and return control to host.
'M104'- GET_EXT_TEMP =
Report temperatures
'M105'- FAN_ON =
Trun fans on to given value (S, 0-255).
'M106'- FAN_OFF =
Turn off fans
'M107'- SET_EXT_TEMP_W =
Set extruder temperature and wait for it to reach temperature.
'M109'- SET_LINE_NUM =
Reset the line number for the following commands.
'M110'- EMRG_STOP =
Emergency stop.
'M112'- GET_POSITION =
Report position.
'M114'- GET_FW_DETAILS =
Report firmware details.
'M115'- WIAT_FOR_TEMP =
Wait for temperature (all extruders and bed) to reach the temerature they were set to.
'M116'- SET_BED_TEMP_NW =
Set bed temperature and return control to host.
'M140'- SET_BED_TEMP_W =
Set bed temperature and wait for it to reach temperature.
'M190'- COMMENT_SYMBOL =
TODO:
Move this to a configurable option.
Comment symbol
';'