3D printer G-code · Marlin

M593: Input shaping (Marlin) (Marlin)

Input shaping (Marlin) — Marlin 2.1.2 and newer can filter the moves so that the frame does not ring at its resonance frequency (ZV input shaping). You measure the frequency with a ringing…

By cnccode · Updated
On this page
  1. What does M593 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More calibration commands
  7. Frequently asked questions
PropertyValue
CommandM593
FunctionInput shaping (Marlin)
FirmwareMarlin
GroupCalibration
SyntaxM593 [X|Y] F<Hz> D<damping>

What does M593 do?

Marlin 2.1.2 and newer can filter the moves so that the frame does not ring at its resonance frequency (ZV input shaping). You measure the frequency with a ringing tower: count the waves after a corner and divide by the time. Klipper has a more complete version with accelerometer measurement.

Parameters

ParameterMeaning
X YAxis
FResonance frequency in Hz
DDamping ratio, often 0.1

Example

G-code
M593 X F42 D0.1
M593 Y F36 D0.1
M500

Tips from practice

  • Needs INPUT_SHAPING_X / _Y in the firmware.

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 calibration commands

CommandFunctionFirmware
M92Set steps per unit (E-steps)Marlin
SHAPER_CALIBRATEMeasure resonances (input shaper)Klipper
SET_INPUT_SHAPERSet input shaperKlipper
TUNING_TOWERChange a value with heightKlipper

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 M593 do on a 3D printer?
M593 is input shaping (Marlin). Marlin 2.1.2 and newer can filter the moves so that the frame does not ring at its resonance frequency (ZV input shaping). You measure the frequency with a ringing tower: count the waves after a corner and divide by the time. Klipper has…
Does M593 work in Klipper and Marlin?
M593 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?