3D printer G-code · Klipper

TUNING_TOWER: Change a value with height (Klipper)

Change a value with height — Runs a command with a new value at every height, so any test print becomes a calibration tower. Often used for pressure advance and temperature.

By cnccode · Updated
On this page
  1. What does TUNING_TOWER do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More calibration commands
  7. Frequently asked questions
PropertyValue
CommandTUNING_TOWER
FunctionChange a value with height
FirmwareKlipper
GroupCalibration
SyntaxTUNING_TOWER COMMAND=<cmd> PARAMETER=<name> START=<v> FACTOR=<v per mm> | STEP_DELTA=<v> STEP_HEIGHT=<mm>

What does TUNING_TOWER do?

Runs a command with a new value at every height, so any test print becomes a calibration tower. Often used for pressure advance and temperature.

Parameters

ParameterMeaning
COMMANDCommand to change, e.g. SET_PRESSURE_ADVANCE
PARAMETERParameter of that command
STARTValue at Z0
FACTORChange per mm
STEP_DELTA / STEP_HEIGHTChange in steps instead

Example

Klipper
TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005
; then print a tall square tower; ADVANCE = START + FACTOR × height

Tips from practice

  • It stays active until the next restart or print end macro: make sure it is turned off.

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

More calibration commands

CommandFunctionFirmware
M92Set steps per unit (E-steps)Marlin
M593Input shaping (Marlin)Marlin
SHAPER_CALIBRATEMeasure resonances (input shaper)Klipper
SET_INPUT_SHAPERSet input shaperKlipper

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 TUNING_TOWER do on a 3D printer?
TUNING_TOWER is change a value with height. Runs a command with a new value at every height, so any test print becomes a calibration tower. Often used for pressure advance and temperature.
Does TUNING_TOWER work in Klipper and Marlin?
TUNING_TOWER is a Klipper command. Marlin printers use other G-codes for this task.
Was this page helpful?