Repetier-Firmware  0.80
Repetier-Firmware for Arduino based RepRaps
Copyright © 2011-2013 by repetier

Introduction

Implemented GCodes

look here for descriptions of gcodes: http://linuxcnc.org/handbook/gcode/g-code.html and http://objects.reprap.org/wiki/Mendel_User_Manual:_RepRapGCodes

Implemented Codes

  • G0 -> G1
  • G1 - Coordinated Movement X Y Z E
  • G4 - Dwell S<seconds> or P<milliseconds>
  • G20 - Units for G0/G1 are inches.
  • G21 - Units for G0/G1 are mm.
  • G28 - Home all axis or named axis.
  • G90 - Use absolute coordinates
  • G91 - Use relative coordinates
  • G92 - Set current position to cordinates given

RepRap M Codes

  • M104 - Set extruder target temp
  • M105 - Read current temp
  • M106 - Fan on
  • M107 - Fan off
  • M109 - Wait for extruder current temp to reach target temp.
  • M114 - Display current position

Custom M Codes

  • M80 - Turn on Power Supply
  • M20 - List SD card
  • M21 - Init SD card
  • M22 - Release SD card
  • M23 - Select SD file (M23 filename.g)
  • M24 - Start/resume SD print
  • M25 - Pause SD print
  • M26 - Set SD position in bytes (M26 S12345)
  • M27 - Report SD print status
  • M28 - Start SD write (M28 filename.g)
  • M29 - Stop SD write
  • M30 <filename> - Delete file on sd card
  • M32 <dirname> create subdirectory
  • M42 P<pin number> S<value 0..255> - Change output of pin P to S. Does not work on most important pins.
  • M80 - Turn on power supply
  • M81 - Turn off power supply
  • M82 - Set E codes absolute (default)
  • M83 - Set E codes relative while in Absolute Coordinates (G90) mode
  • M84 - Disable steppers until next move, or use S<seconds> to specify an inactivity timeout, after which the steppers will be disabled. S0 to disable the timeout.
  • M85 - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
  • M92 - Set axis_steps_per_unit - same syntax as G92
  • M112 - Emergency kill
  • M115- Capabilities string
  • M117 <message> - Write message in status row on lcd
  • M119 - Report endstop status
  • M140 - Set bed target temp
  • M190 - Wait for bed current temp to reach target temp.
  • M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
  • M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000)
  • M203 - Set temperture monitor to Sx
  • M204 - Set PID parameter X => Kp Y => Ki Z => Kd S<extruder> Default is current extruder. NUM_EXTRUDER=Heated bed
  • M205 - Output EEPROM settings
  • M206 - Set EEPROM value
  • M220 S<Feedrate multiplier in percent> - Increase/decrease given feedrate
  • M221 S<Extrusion flow multiplier in percent> - Increase/decrease given flow rate
  • M231 S<OPS_MODE> X<Min_Distance> Y<Retract> Z<Backlash> F<ReatrctMove> - Set OPS parameter
  • M232 - Read and reset max. advance values
  • M233 X<AdvanceK> Y<AdvanceL> - Set temporary advance K-value to X and linear term advanceL to Y
  • M251 Measure Z steps from homing stop (Delta printers). S0 - Reset, S1 - Print, S2 - Store to Z length (also EEPROM if enabled)
  • M303 P<extruder/bed> S<drucktermeratur> Autodetect pid values. Use P<NUM_EXTRUDER> for heated bed.
  • M350 S<mstepsAll> X<mstepsX> Y<mstepsY> Z<mstepsZ> E<mstepsE0> P<mstespE1> : Set microstepping on RAMBO board
  • M400 - Wait until move buffers empty.
  • M401 - Store x, y and z position.
  • M402 - Go to stored position. If X, Y or Z is specified, only these coordinates are used. F changes feedrate fo rthat move.
  • M500 Store settings to EEPROM
  • M501 Load settings from EEPROM
  • M502 Reset settings to the one in configuration.h. Does not store values in EEPROM!
  • M908 P<address> S<value> : Set stepper current for digipot (RAMBO board)
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Defines