3D printer G-code · Klipper

SET_VELOCITY_LIMIT: Speed, acceleration and corner limits (Klipper)

Speed, acceleration and corner limits — Changes the motion limits while printing. SQUARE_CORNER_VELOCITY is the speed allowed through a 90° corner (default 5 mm/s). MINIMUM_CRUISE_RATIO replaced the older…

By cnccode · Updated
On this page
  1. What does SET_VELOCITY_LIMIT do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More settings commands
  7. Frequently asked questions
PropertyValue
CommandSET_VELOCITY_LIMIT
FunctionSpeed, acceleration and corner limits
FirmwareKlipper
GroupSettings
SyntaxSET_VELOCITY_LIMIT [VELOCITY] [ACCEL] [SQUARE_CORNER_VELOCITY] [MINIMUM_CRUISE_RATIO]

What does SET_VELOCITY_LIMIT do?

Changes the motion limits while printing. SQUARE_CORNER_VELOCITY is the speed allowed through a 90° corner (default 5 mm/s). MINIMUM_CRUISE_RATIO replaced the older ACCEL_TO_DECEL setting in 2024.

Parameters

ParameterMeaning
VELOCITYMax speed mm/s
ACCELMax acceleration mm/s²
SQUARE_CORNER_VELOCITYCorner speed mm/s
MINIMUM_CRUISE_RATIOShare of a short move that must be at cruise speed (0–1)

Example

Klipper
SET_VELOCITY_LIMIT ACCEL=5000 SQUARE_CORNER_VELOCITY=5

Tips from practice

  • Values go back to printer.cfg after a restart.

Klipper. Extended commands need their section in printer.cfg. Results of calibration commands are kept only after SAVE_CONFIG.

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
M205Jerk and junction deviationMarlin
M906Stepper motor current (TMC)Marlin
SAVE_CONFIGSave calibration to printer.cfgKlipper
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 SET_VELOCITY_LIMIT do on a 3D printer?
SET_VELOCITY_LIMIT is speed, acceleration and corner limits. Changes the motion limits while printing. SQUARE_CORNER_VELOCITY is the speed allowed through a 90° corner (default 5 mm/s). MINIMUM_CRUISE_RATIO replaced the older ACCEL_TO_DECEL setting in 2024.
Does SET_VELOCITY_LIMIT work in Klipper and Marlin?
SET_VELOCITY_LIMIT is a Klipper command. Marlin printers use other G-codes for this task.
Was this page helpful?