diff --git a/Documentation/GCodes.md b/Documentation/GCodes.md index 9ad2a336a4..253fb7fc81 100644 --- a/Documentation/GCodes.md +++ b/Documentation/GCodes.md @@ -6,7 +6,7 @@ * G1 - Coordinated Movement X Y Z E * G2 - CW ARC * G3 - CCW ARC -* G4 - Dwell S or P +* G4 - Dwell S[seconds] or P[milliseconds] * G10 - retract filament according to settings of M207 * G11 - retract recover filament according to settings of M208 * G28 - Home all Axis @@ -41,8 +41,8 @@ * 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 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. To disable set zero (default) +* 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 * M104 - Set extruder target temp * M105 - Read current temp @@ -62,32 +62,32 @@ * M140 - Set bed target temp * M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating * Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling -* M200 D- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters). +* M200 - D[millimeters]- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters). * 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) Unused in Marlin!! * M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec * M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) im mm/sec^2 also sets minimum segment time in ms (B20000) to prevent buffer underruns and M20 minimum feedrate -* M205 - advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk +* M205 - advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk * M206 - set additional homing offset * M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting * M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min] -* M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction. -* M218 - set hotend offset (in mm): T X Y +* M209 - S[1=true/0=false] enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction. +* M218 - set hotend offset (in mm): T[extruder_number] X[offset_on_X] Y[offset_on_Y] * M220 - S[factor in percent] - set speed factor override percentage * M221 - S[factor in percent] - set extrude factor override percentage * M240 - Trigger a camera to take a photograph -* M280 - Position an RC Servo P S, ommit S to report back current angle -* M300 - Play beep sound S P +* M280 - Position an RC Servo P[index] S[angle/microseconds], ommit S to report back current angle +* M300 - Play beep sound S[frequency Hz] P[duration ms] * M301 - Set PID parameters P I and D * M302 - Allow cold extrudes -* M303 - PID relay autotune S sets the target temperature. (default target temperature = 150C) +* M303 - PID relay autotune S[temperature] sets the target temperature. (default target temperature = 150C) * M304 - Set bed PID parameters P I and D * M350 - Set microstepping mode. * M351 - Toggle MS1 MS2 pins directly. * M400 - Finish all moves * M401 - Lower z-probe if present * M402 - Raise z-probe if present -* M404 - N Enter the nominal filament width (3mm, 1.75mm) or will display nominal filament width without parameters +* M404 - N[dia in mm] Enter the nominal filament width (3mm, 1.75mm) or will display nominal filament width without parameters * M405 - Turn on Filament Sensor extrusion control. Optional D[delay in cm] to set delay in centimeters between sensor and extruder * M406 - Turn off Filament Sensor extrusion control * M407 - Displays measured filament diameter