3D printer G-code · Marlin

M205: Jerk and junction deviation (Marlin)

Jerk and junction deviation — Sets how fast the printer may go through a corner without stopping. Marlin 2 uses junction deviation (J, often 0.01–0.08 mm) unless CLASSIC_JERK is enabled; then X, Y…

By cnccode · Updated
On this page
  1. What does M205 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More settings commands
  7. Frequently asked questions
PropertyValue
CommandM205
FunctionJerk and junction deviation
FirmwareMarlin
GroupSettings
SyntaxM205 [J<deviation>] or M205 [X Y Z E jerk]

What does M205 do?

Sets how fast the printer may go through a corner without stopping. Marlin 2 uses junction deviation (J, often 0.01–0.08 mm) unless CLASSIC_JERK is enabled; then X, Y, Z and E jerk in mm/s are used. Higher values are faster but cause ringing.

Parameters

ParameterMeaning
JJunction deviation in mm
X Y Z EClassic jerk in mm/s
S TMinimum print and travel speed

Example

G-code
M205 J0.013
M500

Tips from practice

  • Junction deviation ≈ 0.4 × jerk² ÷ acceleration converts classic jerk to J.
  • Klipper uses square_corner_velocity instead.

Marlin. Many Marlin commands only exist when the feature is enabled in the firmware build. If the printer answers "Unknown command", the feature is missing. Klipper does not understand most of these settings codes; it uses printer.cfg instead.

More settings commands

CommandFunctionFirmware
M500Save settings to EEPROMMarlin
M501Load settings from EEPROMMarlin
M502Factory reset (firmware defaults)Marlin
M503Report settingsMarlin
M201Max acceleration per axisMarlin
M203Max feed rate per axisMarlin
M204Set accelerationMarlin and Klipper
M906Stepper motor current (TMC)Marlin
SAVE_CONFIGSave calibration to printer.cfgKlipper
SET_VELOCITY_LIMITSpeed, acceleration and corner limitsKlipper
FIRMWARE_RESTARTRestart (RESTART / FIRMWARE_RESTART)Klipper

Test it before you print

Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.

Open the simulator

Frequently asked questions

What does M205 do on a 3D printer?
M205 is jerk and junction deviation. Sets how fast the printer may go through a corner without stopping. Marlin 2 uses junction deviation (J, often 0.01–0.08 mm) unless CLASSIC_JERK is enabled; then X, Y, Z and E jerk in mm/s are used. Higher values are faster but cause…
Does M205 work in Klipper and Marlin?
M205 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?