3D printer G-code · Marlin

M201: Max acceleration per axis (Marlin)

Max acceleration per axis — Sets the highest acceleration each axis may use, in mm/s². M204 sets the acceleration that is really used for printing and travel, limited by these values.

By cnccode · Updated
On this page
  1. What does M201 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More settings commands
  7. Frequently asked questions
PropertyValue
CommandM201
FunctionMax acceleration per axis
FirmwareMarlin
GroupSettings
SyntaxM201 [X] [Y] [Z] [E]

What does M201 do?

Sets the highest acceleration each axis may use, in mm/s². M204 sets the acceleration that is really used for printing and travel, limited by these values.

Parameters

ParameterMeaning
X Y Z EMax acceleration in mm/s²

Example

G-code
M201 X3000 Y3000 Z100 E5000

Tips from practice

  • Klipper uses max_accel in [printer] and ignores M201.

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
M203Max feed rate per axisMarlin
M204Set accelerationMarlin and Klipper
M205Jerk and junction deviationMarlin
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 M201 do on a 3D printer?
M201 is max acceleration per axis. Sets the highest acceleration each axis may use, in mm/s². M204 sets the acceleration that is really used for printing and travel, limited by these values.
Does M201 work in Klipper and Marlin?
M201 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?