...
They are shown in order of appearance in the code. There are reasons why some G Codes aren't in numerical order.
M117 - Display Message M117: Display Message
This causes the given message to be shown in the status line on an attached LCD. It is processed early as to allow printing messages that contain G, M, N or T.
Special internal commands
...
- CRASH DETECTED
- CRASH RECOVER
- CRASH_CANCEL
- TMC_SET_WAVE
- TMC_SET_STEP
- TMC_SET_CHOP
M0, M1 - Stop the printer M0: Stop or Unconditional stop
Usage
M0 [P<ms<] [S<sec>] [string] M1 [P<ms>] [S<sec>] [string]
Parameters
P<ms>
- Expire time, in millisecondsS<sec>
- Expire time, in secondsstring
- Must for M1 and optional for M0 message to display on the LCD
...
PRUSA - Internal command set G98: Activate farm mode - Notes
Set of internal PRUSA commands
Usage
PRUSA [ PRN | FAN | thx | uvlo | MMURES | RESET | fv | M28 | SN | Fir | Rev | Lang | Lz | FR ]
Parameters
PRN
- Prints revision of the printerFAN
- Prints fan detailsthx
uvlo
MMURES
- Reset MMURESET
- (Careful!)fv
- ?M28
SN
Fir
- Prints firmware versionRev
- Prints filament size, elelectronics, nozzle typeLang
- Reset the languageLz
FR
- Full factory resetnozzle set <diameter>
- set nozzle diameter (farm mode only), e.g.PRUSA nozzle set 0.4
nozzle D<diameter>
- check the nozzle diameter (farm mode only), works like M862.1 P, e.g.PRUSA nozzle D0.4
nozzle
- prints nozzle diameter (farm mode only), works like M862.1 P, e.g.PRUSA nozzle
...
In Prusa Firmware G0 and G1 are the same.
Usage
G0 [ X | Y | Z | E | F | S ] G1 [ X | Y | Z | E | F | S ]
Parameters
X
- The position to move to on the X axisY
- The position to move to on the Y axisZ
- The position to move to on the Z axisE
- The amount to extrude between the starting point and ending pointF
- The feedrate per minute of the move between the starting point and ending point (if supplied)
...
These commands don't propperly work with MBL enabled. The compensation only happens at the end of the move, so avoid long arcs.
Usage
G2 [ X | Y | I | E | F ] (Clockwise Arc) G3 [ X | Y | I | E | F ] (Counter-Clockwise Arc)
Parameters
X
- The position to move to on the X axisY
- The position to move to on the Y axis- 'Z' - The position to move to on the Z axis
I
- The point in X space from the current X position to maintain a constant distance fromJ
- The point in Y space from the current Y position to maintain a constant distance fromE
- The amount to extrude between the starting point and ending pointF
- The feedrate per minute of the move between the starting point and ending point (if supplied)
...
Pause the machine for a period of time.
Usage
G4 [ P | S ]
Parameters
P
- Time to wait, in millisecondsS
- Time to wait, in seconds
...
Using G28
without any parameters will perfom homing of all axes AND mesh bed leveling, while G28 W
will just home all axes (no mesh bed leveling).
Usage
G28 [ X | Y | Z | W | C ]
Parameters
X
- Flag to go back to the X axis originY
- Flag to go back to the Y axis originZ
- Flag to go back to the Z axis origin- G3 [ X | Y | I | E | F ] (Counter-Clockwise Arc)
W
- Suppress mesh bed leveling ifX
,Y
orZ
are not providedC
- Calibrate X and Y origin (home) - Only on MK3/s
...
Default 3x3 grid can be changed on MK2.5/s and MK3/s to 7x7 grid.
Usage
G80 [ N | R | V | L | R | F | B ]
Parameters
N
- Number of mesh points on x axis. Default is 3. Valid values are 3 and 7.R
- Probe retries. Default 3 max. 10V
- Verbosity level 1=low, 10=mid, 20=high. It only can be used if the firmware has been compiled with SUPPORT_VERBOSITY active.
...
It is used for setting the current position of each axis. The parameters are always absolute to the origin. If a parameter is omitted, that axis will not be affected. If X
, Y
, or Z
axis are specified, the move afterwards might stutter because of Mesh Bed Leveling. E
axis is not affected if the target position is 0 (G92 E0
). A G92 without coordinates will reset all axes to zero on some firmware. This is not the case for Prusa-Firmware!
Usage
G92 [ X | Y | Z | E ]
Parameters
X
- new X axis positionY
- new Y axis positionZ
- new Z axis positionE
- new extruder position
...
Disables Prusa-specific Farm functions and g-code.
End of G-Codes
...
M Commands
M0, M1 - Stop the printer M0: Stop or Unconditional stop
Usage
M0 [P<ms<] [S<sec>] [string] M1 [P<ms>] [S<sec>] [string]
Parameters
P<ms>
- Expire time, in millisecondsS<sec>
- Expire time, in secondsstring
- Must for M1 and optional for M0 message to display on the LCD
M17 - Enable all axes M17: Enable/Power all stepper motors
...
M92 [ X | Y | Z | E ]
Parameters
X
- Steps per unit mm for the X driveY
- Steps per unit mm for the Y driveZ
- Steps per unit mm for the Z driveE
- Steps per unit mm for the extruder drive
M110 - Set Line number M110: Set Current Line Number
...
- V - Report current installed firmware version
- U - Firmware version provided by G-code to be compared to current one.
...
- .
M114 - Get current position M114: Get Current Position
M117 - Display Message M117: Display Message
M118 - Serial print M118: Serial print
Usage
M118 [ A1 | E1 ] [ String ]
Parameters
A1
- Prepend // to denote a comment or action command. Hosts like OctoPrint can interpret such commands to perform special actions. See your host’s documentation.E1
- Prepend echo: to the message. Some hosts will display echo messages differently when preceded by echo:.String
- Message string. If omitted, a blank line will be sent.
M120 - Enable endstops M120: Enable endstop detection
...
This command is used to report fan speeds and fan pwm values.
Usage
M123
- E0: - Hotend fan speed in RPM
- PRN1: - Part cooling fans speed in RPM
- E0@: - Hotend fan PWM value
- PRN1@: -Part cooling fan PWM value
...
In Prusa Firmware this G-code is deactivated by default, must be turned on in the source code by defining BLINKM and its dependencies.
Usage
M150 [ R | U | B ]
Parameters
R
- Red color valueU
- Green color value. It is NOTG
!B
- Blue color value
M200 - Set filament diameter M200: Set filament diameter
Usage
M200 [ D | T ]
Parameters
D
- Diameter in mmT
- Number of extruder (MMUs)
...
For each axis individually.
Usage
M201 [ X | Y | Z | E ]
Parameters
X
- Acceleration for X axis in units/s^2Y
- Acceleration for Y axis in units/s^2Z
- Acceleration for Z axis in units/s^2E
- Acceleration for the active or specified extruder in units/s^2
...
For each axis individually.
Usage
M203 [ X | Y | Z | E ]
Parameters
X
- Maximum feedrate for X axisY
- Maximum feedrate for Y axisZ
- Maximum feedrate for Z axisE
- Maximum feedrate for extruder drives
M204 - Acceleration settings M204: Set default acceleration
Old format:
Usage
M204 [ S | T ]
Parameters
S
- normal movesT
- filmanent only moves
New format:
Usage
M204 [ P | R | T ]
Parameters
P
- printing movesR
- filmanent only movesT
- travel moves (as of now T is ignored)
...
Set some advanced settings related to movement.
Usage
M205 [ S | T | B | X | Y | Z | E ]
Parameters
S
- Minimum feedrate for print moves (unit/s)T
- Minimum feedrate for travel moves (units/s)B
- Minimum segment time (us)X
- Maximum X jerk (units/s)Y
- Maximum Y jerk (units/s)Z
- Maximum Z jerk (units/s)E
- Maximum E jerk (units/s)
M206 - Set additional homing offsets M206: Offset axes
Usage
M206 [ X | Y | Z ]
Parameters
X
- X axis offsetY
- Y axis offsetZ
- Z axis offset
M207 - Set firmware retraction M207: Set retract length
Usage
M207 [ S | F | Z ]
Parameters
S
- positive length to retract, in mmF
- retraction feedrate, in mm/minZ
- additional zlift/hop
M208 - Set retract recover length M208: Set unretract length
Usage
M208 [ S | F ]
Parameters
S
- positive length surplus to the M207 Snnn, in mmF
- feedrate, in mm/sec
...
This boolean value S 1=true or 0=false enables automatic retract detect if the slicer did not support G10/G11: every normal extrude-only move will be classified as retract depending on the direction.
Usage
M209 [ S ]
Parameters
S
- 1=true or 0=false
M214 - Set Arc configuration values (Use M500 to store in eeprom) M214: Set Arc configuration values
Usage
M214 [P] [S] [N] [R] [F]
Parameters
P
- A float representing the max and default millimeters per arc segment. Must be greater than 0.S
- A float representing the minimum allowable millimeters per arc segment. Set to 0 to disableN
- An int representing the number of arcs to draw before correcting the small angle approximation. Set to 0 to disable.R
- An int representing the minimum number of segments per arcs of any radius, except when the results in segment lengths greater than or less than the minimum and maximum segment length. Set to 0 to disable.- '
F
' - An int representing the number of segments per second, unless this results in segment lengths greater than or less than the minimum and maximum segment length. Set to 0 to disable.
M214 - Set Arc Parameters (Use M500 to store in eeprom) P<MM_PER_ARC_SEGMENT> S<MIN_MM_PER_ARC_SEGMENT> R<MIN_ARC_SEGMENTS> F<ARC_SEGMENTS_PER_SEC>
M218 - Set hotend offset M218: Set Hotend Offset
In Prusa Firmware this G-code is only active if EXTRUDERS
is higher then 1 in the source code. On Original i3 Prusa MK2/s MK2.5/s MK3/s it is not active.
Usage
M218 [ X | Y ]
Parameters
...
_PER_ARC_SEGMENT> R<MIN_ARC_SEGMENTS> F<ARC_SEGMENTS_PER_SEC>
M220 Set feedrate percentage M220: Set speed factor override percentage
...
M221 - Set extrude factor override percentage M221: Set extrude factor override percentage
Usage
M221 [ S | T ]
Parameters
S
- Extrude factor override percentage (0..100 or higher), default 100%T
- Extruder drive number (Prusa Firmware only), default 0 if not set.
M226 - Wait for Pin state M226: Wait for pin state
...
M280 [ P | S ]
Parameters
P
- Servo index (id)S
- Target position
...
E
- Extruder, defaultE0
. UseE-1
to calibrate the bed PIDS
- Target temperature, default210°C
for hotend, 70 for bedC
- Cycles, default5
M310 -
...
Thermal model settings M310:
...
Thermal model settings
Usage
M310 ; report values M310 [ A ] [ F ] ; autotune M310 [ S ] ; set 0=disable 1=enable M310 [ I ] [ R ] ; set resistance 0=disable 1=enableat index M310 [ IP ]| [U R| ]V | C ] ; set power, ;temperature setcoefficient, resistance at indexintercept, capacitance M310 [ PD | CL ] ; set simulation powerfilter, capacitancelag M310 [ B | E | W ] ; set beeper, warning and error threshold M310 [ T ] ; set ambient temperature correction
...
I
- resistance index position (0-15)R
- resistance value at index (K/W; requiresI
)P
- power (W)- K/W; requires
I
) P
- power (W)U
- linear temperature coefficient (W/K/power)V
- linear temperature intercept (W/power)C
- capacitance (J/K)D
- sim. 1st order IIR filter factor (f=100/27)L
- sim. response lag (ms, 0-2160C
- capacitance (J/K)S
- set 0=disable 1=enableB
- beep and warn when reaching warning threshold 0=disable 1=enable (default: 1)E
- error threshold (K/s; default in variant)W
- warning threshold (K/s; default in variant)T
- ambient temperature correction (K; default in variant)A
- autotune C+R valuesF
- force model self-test state (0=off 1=on) during autotune using current values
...
E
- Extruder number. 0-indexed.F
- Filament type
M405 - Filament Sensor on M405: Filament Sensor on
Turn on Filament Sensor extrusion control.
Usage
M405
M406 - Filament Sensor off M406: Filament Sensor off
Turn off Filament Sensor extrusion control.
Usage
M406
M500 - Store settings in EEPROM M500: Store parameters in non-volatile storage
...
In Prusa Firmware this G-code is deactivated by default, must be turned on in the source code. You must define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
.
Usage
M540 [ S ]
Parameters
S
- disabled=0, enabled=1
...
Sets the Z-probe Z offset. This offset is used to determine the actual Z position of the nozzle when using a probe to home Z with G28. This value may also be used by G81 (Prusa) / G29 (Marlin) to apply correction to the Z position. This value represents the distance from nozzle to the bed surface at the point where the probe is triggered. This value will be negative for typical switch probes, inductive probes, and setups where the nozzle makes a circuit with a raised metal contact. This setting will be greater than zero on machines where the nozzle itself is used as the probe, pressing down on the bed to press a switch. (This is a common setup on delta machines.)
Usage
M851 [ Z ]
Parameters
Z
- Z offset probe to nozzle.
...
Sets the printer IP address that is shown in the support menu. Designed to be used with the help of host software. If P is not specified nothing happens. If the structure of the IP address is invalid, 0.0.0.0 is assumed and nothing is shown on the screen in the Support menu.
Usage
M552 [ P<IP_address> ]
Parameters
...
Initiates Filament change, it is also used during Filament Runout Sensor process. If the M600
is triggered under 25mm it will do a Z-lift of 25mm to prevent a filament blob.
Usage
M600 [ X | Y | Z | E | L | AUTO ]
X
- X position, default 211FILAMENTCHANGE_XPOSY
- Y position, default 0FILAMENTCHANGE_YPOSZ
- relative lift Z, default MIN_Z_FOR_SWAP.E
- initial retract, default -2FILAMENTCHANGE_FIRSTRETRACTL
- later retract distance for removal, default -80FILAMENTCHANGE_FINALRETRACTAUTO
- Automatically (only with MMU)
...
M25 - Pause SD print M25: Pause SD print
M602 - Resume print M602: Resume print
...
Resume print
M603 - Stop print M603: Stop print
M850 - set sheet parameters
//!
M850 - Set sheet data S[id] Z[offset] L[label] B[bed_temp] P[PINDA_TEMP]
M860 - Wait for extruder temperature (PINDA) M860 Wait for Probe Temperature
Wait for PINDA thermistor to reach target temperature
Usage
M860 [ S ]
Parameters
S
- Target temperature
...
Set compensation ustep value S
for compensation table index I
.
Usage
M861 [ ? | ! | Z | S | I ]
...
- MK1 (100)
- MK2 (200)
- MK2MM (201)
- MK2S (202)
- MK2SMM (203)
- MK2.5 (250)
- MK2.5MMU2 (20250)
- MK2.5S (252)
- MK2.5SMMU2S (20252)
- MK3 (300)
- MK3MMU2 (20300)
- MK3MMU3 (30300)
- MK3S (302)
- MK3SMMU2S (20302)
- MK3SMMU3 (30302)
M900 - Set Linear advance options M900 Set Linear Advance Scaling Factors
Sets the advance extrusion factors for Linear Advance. If any of the R, W, H, or D parameters are set to zero the ratio will be computed dynamically during printing.
Usage
M900 [ K | R | W | H | D]
...
Set digital trimpot motor current using axis codes (X, Y, Z, E, B, S). M907 has no effect when the experimental Extruder motor current scaling mode is active (that applies to farm printing as well)
Usage
M907 [ X | Y | Z | E | B | S ]
...
In Prusa Firmware this G-code is deactivated by default, must be turned on in the source code. Not usable on Prusa printers.
Usage
M908 [ P | S ]
Parameters
P
- channelS
- current
...
Not active in default, only if TMC2130_SERVICE_CODES_M910_M918
is defined in source code.
Usage
M911 [ X | Y | Z | E ]
Parameters
...
Not active in default, only if TMC2130_SERVICE_CODES_M910_M918
is defined in source code.
Usage
M912 [ X | Y | Z | E ]
Parameters
...
M914 - Set TMC2130 normal mode M914: Set TMC2130 normal mode
...
Updates EEPROM only if "P" is given, otherwise temporary (lasts until reset or motor idle timeout)
Usage
M914 [ P | R ]
Parameters
P
- Make the mode change permanent (write to EEPROM)R
- Revert to EEPROM value
M915 - Set TMC2130 silent mode M915: Set TMC2130 silent mode
...
Updates EEPROM only if "P" is given, otherwise temporary (lasts until reset or motor idle timeout)
Usage
M915 [ P | R ]
Parameters
P
- Make the mode change permanent (write to EEPROM)R
- Revert to EEPROM value
M916 - Set TMC2130 Stallguard sensitivity threshold M916: Set TMC2130 Stallguard sensitivity threshold
Not active in default, only if TMC2130_SERVICE_CODES_M910_M918
is defined in source code.
Usage
M916 [ X | Y | Z | E ]
Parameters
X
- X stepper driver stallguard sensitivity threshold valueY
- Y stepper driver stallguard sensitivity threshold valueZ
- Z stepper driver stallguard sensitivity threshold valueE
- Extruder stepper driver stallguard sensitivity threshold value
...
Not active in default, only if TMC2130_SERVICE_CODES_M910_M918
is defined in source code.
Usage
M917 [ X | Y | Z | E ]
Parameters
X
- X stepper driver PWM amplitude offset valueY
- Y stepper driver PWM amplitude offset valueZ
- Z stepper driver PWM amplitude offset valueE
- Extruder stepper driver PWM amplitude offset value
...
Not active in default, only if TMC2130_SERVICE_CODES_M910_M918
is defined in source code.
Usage
M918 [ X | Y | Z | E ]
Parameters
X
- X stepper driver PWM amplitude gradient valueY
- Y stepper driver PWM amplitude gradient valueZ
- Z stepper driver PWM amplitude gradient valueE
- Extruder stepper driver PWM amplitude gradient value
...
Printers with TMC2130 drivers have X
, Y
, Z
and E
as options. The steps-per-unit value is updated accordingly. Not all resolutions are valid! Printers without TMC2130 drivers also have B
and S
options. In this case, the steps-per-unit value in not changed!
Usage
M350 [ X | Y | Z | E | B | S ]
Parameters
X
- X new resolutionY
- Y new resolutionZ
- Z new resolutionE
- E new resolution
...
Toggle MS1 MS2 pins directly.
Usage
M351 [B<0|1>] [E<0|1>] S<1|2> [X<0|1>] [Y<0|1>] [Z<0|1>]
Parameters
X
- Update X axisY
- Update Y axisZ
- Update Z axisE
- Update E axisS
- which MSx pin to toggleB
- new pin value
...
Load filament into the active extruder.
Usage
M701 [ P | T | L | Z ]
Parameters
P
- n index of MMU slot (zero based, so 0-4 like T0 and T4)T
- Alias ofP
. Used for compatibility with MarlinL
- Extrude distance for insertion (positive value)(manual reload)Z
- Move the Z axis by this distance. Default value MIN_Z_FOR_LOADis 0 to maintain backwards compatibility with older gcodes.
M702 - Unload filament G32: Undock Z Probe sled
Usage
M702 [ U | Z ]
Parameters
U
- Retract distance for removal (manual reload). Default value is 0FILAMENTCHANGE_FINALRETRACT.Z
- Move the Z axis by this distance. Default value MIN_Z_FOR_UNLOADis 0 to maintain backwards compatibility with older gcodes.
M704 -
...
Preload to MMU M704:
...
Preload to MMU
Usage
M704 [ P ]
Parameters
P
- n index of slot (zero based, so 0-4 like T0 and T4)
M705 - Eject filament M705: Eject filament
Usage
M705 [ P ]
Parameters
P
- n index of slot (zero based, so 0-4 like T0 and T4)
M706 - Cut filament M706: Cut filament
Usage
M706 [ P ]
Parameters
P
- n index of slot (zero based, so 0-4 like T0 and T4)
M707 - Read from MMU register M707: Read from MMU register
Usage
M707 [ A ]
Parameters
A
- Address of register in hexidecimal.
...
M708 - Write to MMU register M707: Write to MMU register
Usage
M708 [ A | X ]
Parameters
A
- Address of register in hexidecimal.X
- Data to write (16-bit integer). Default value 0.
...
The MK3S cannot not power off the MMU, for that reason the functionality is not supported.
Usage
M709 [ X ]
Parameters
X
- Reset MMU (0:soft reset | 1:hardware reset)
...
M709 X1 - toggle the MMU's reset pin (hardware reset)
M999 - Restart after being stopped M999: Restart after being stopped by error
Todo:Usually doesn't work. Should be fixed or removed. Most of the time, if Stopped it set, the print fails and is unrecoverable.
End of M-Commands
T Codes
...
T<extruder nr.> - select extruder in case of multi extruder printer. select filament Selects filament position 1-5 (T0-T4) in case of MMU_V2.
For
...
T<n> Gcode to extrude at least 38.10 mm at feedrate 19.02 mm/s must follow immediately to load to extruder wheels.
T? Gcode to extrude shouldn't have to follow, load to extruder wheels is done automatically
Tx Same as T?, except nozzle doesn't have to be preheated. Tc must be placed after extruder nozzle is preheated to finish filament load.
Tc Load to nozzle after filament was prepared by Tc and extruder nozzle is already heated.MMU2/S / MMU3: T<extruder nr.> - Selects the filament position. A Gcode to load a filament to the nozzle must follow. Tx - Printer asks user to select a filament position. Then loads the filament from the MMU unit into the extruder wheels only. G-code to heat up the nozzle follows. Tc - Loads the filament tip from the extruder wheels into the nozzle. T? - acts the same as Tx followed by Tc
End of T-Codes
...
D codes
D-1 - Endless Loop D-1: Endless Loop
D0 - Reset D0: Reset
Usage
D0 [ B ]
Parameters
B
- Bootloader
D1 - Clear EEPROM and RESET D1: Clear EEPROM and RESET
...
This command can be used without any additional parameters. It will read the entire RAM.
Usage
D2 [ A | C | X ]
Parameters
A
- Address (x0000-x1fff)C
- Count (1-8192)X
- Data
...
This command can be used without any additional parameters. It will read the entire eeprom.
Usage
D3 [ A | C | X ]
Parameters
A
- Address (x0000-x0fff)C
- Count (1-4096)X
- Data (hex)
...
To read the digital value of a pin you need only to define the pin number.
Usage
D4 [ P | F | V ]
Parameters
P
- Pin (0-255)F
- Function in/out (0/1)V
- Value (0/1)
...
This command can be used without any additional parameters. It will read the 1kb FLASH.
Usage
D5 [ A | C | X | E ]
Parameters
A
- Address (x00000-x3ffff)C
- Count (1-8192)X
- Data (hex)E
- Erase
...
D8 - Read/Write PINDA D8: Read/Write PINDA
Usage
D8 [ ? | ! | P | Z ]
Parameters
?
- Read PINDA temperature shift values!
- Reset PINDA temperature shift values to defaultP
- Pinda temperature [C]Z
- Z Offset [mm]
D9 - Read ADC D9: Read ADC
Usage
D9 [ I | V ]
Parameters
I
- ADC channel index0
- Heater 0 temperature1
- Heater 1 temperature2
- Bed temperature3
- PINDA temperature4
- PWR voltage5
- Ambient temperature6
- BED voltage
V
Value to be written as simulated
...
Generate a crash dump for later retrival.
Usage
D20 [E]
Parameters
E
- Perform an emergency crash dump (resets the printer).Notes
...
Output the complete crash dump (if present) to the serial.
Usage
D21
Notes
- The starting address can vary between builds, but it's always at the beginning of the data section.
...
Clear an existing internal crash dump.
Usage
D22
D23 - Request emergency dump on serial D23: Request emergency dump on serial
On boards without offline dump support, request online dumps to the serial port on firmware faults. When online dumps are enabled, the FW will dump memory on the serial before resetting.
Usage
D23 [E] [R]
Parameters
E
- Perform an emergency crash dump (resets the printer).R
- Disable online dumps.
D70 - Enable low-level
...
thermal model logging for offline simulation
Usage
D70 [ S ]
Parameters
S
- Enable 0-1 (default 0)
...
This command will log data to SD card file "mesh.txt".
Usage
D80 [ E | F | G | H | I | J ]
Parameters
E
- Dimension X (default 40)F
- Dimention Y (default 40)G
- Points X (default 40)H
- Points Y (default 40)I
- Offset X (default 74)J
- Offset Y (default 34)
...
This command will log data to SD card file "wldsd.txt".
Usage
D81 [ E | F | G | H | I | J ]
Parameters
E
- Dimension X (default 40)F
- Dimention Y (default 40)G
- Points X (default 40)H
- Points Y (default 40)I
- Offset X (default 74)J
- Offset Y (default 34)
...
Todo:Please review by owner of the code. RepRap Wiki Gcode needs to be updated after review of owner as well.
Usage
D2130 [ Axis | Command | Subcommand | Value ]
Parameters
- Axis
X
- X stepper driverY
- Y stepper driverZ
- Z stepper driverE
- Extruder stepper driver
- Commands
0
- Current off1
- Current on+
- Single step-
- Single step oposite directionNNN
- Value sereval steps?
- Read register- Subcommands for read register
mres
- Micro step resolution. More information in datasheet '5.5.2 CHOPCONF – Chopper Configuration'step
- Stepmscnt
- Microstep counter. More information in datasheet '5.5 Motor Driver Registers'mscuract
- Actual microstep current for motor. More information in datasheet '5.5 Motor Driver Registers'wave
- Microstep linearity compensation curve
!
- Set register- Subcommands for set register
mres
- Micro step resolutionstep
- Stepwave
- Microstep linearity compensation curve- Values for set register
0, 180 --> 250
- Off0.9 --> 1.25
- Valid values (recommended is 1.1)
@
- Home calibrate axis
...
D9125 - PAT9125 filament sensor D9125: PAT9125 filament sensor
Usage
D9125 [ ? | ! | R | X | Y | L ]
Parameters
?
- Print values!
- Print valuesR
- Resolution. Not active in codeX
- X valuesY
- Y valuesL
- Activate filament sensor log
...