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…
On this page
| Property | Value |
|---|---|
| Command | SET_VELOCITY_LIMIT |
| Function | Speed, acceleration and corner limits |
| Firmware | Klipper |
| Group | Settings |
| Syntax | SET_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
| Parameter | Meaning |
|---|---|
VELOCITY | Max speed mm/s |
ACCEL | Max acceleration mm/s² |
SQUARE_CORNER_VELOCITY | Corner speed mm/s |
MINIMUM_CRUISE_RATIO | Share of a short move that must be at cruise speed (0–1) |
Example
SET_VELOCITY_LIMIT ACCEL=5000 SQUARE_CORNER_VELOCITY=5Tips 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.
Related commands
More settings commands
| Command | Function | Firmware |
|---|---|---|
M500 | Save settings to EEPROM | Marlin |
M501 | Load settings from EEPROM | Marlin |
M502 | Factory reset (firmware defaults) | Marlin |
M503 | Report settings | Marlin |
M201 | Max acceleration per axis | Marlin |
M203 | Max feed rate per axis | Marlin |
M204 | Set acceleration | Marlin and Klipper |
M205 | Jerk and junction deviation | Marlin |
M906 | Stepper motor current (TMC) | Marlin |
SAVE_CONFIG | Save calibration to printer.cfg | Klipper |
FIRMWARE_RESTART | Restart (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 simulatorFrequently 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?