Table of Contents

SCREWS_TILT_CALCULATE

IMPORTANT: You MUST always execute a G28 before using this command.

SCREWS_TILT_CALCULATE [DIRECTION=CW|CCW] [MAX_DEVIATION=<value>] [HORIZONTAL_MOVE_Z=<value>] [<probe_parameter>=<value>]

Invokes the Klipper native bed screws adjustment tool. It will command the nozzle to different locations (as defined by the [SCREWS_TILT_ADJUST] stanza in printer.cfg) probing the z height and calculate the number of knob turns to adjust the bed level.

Using to level the bed

See SCREWS_TILT_CALCULATE Example

Using to validate bed level

When SCREWS_TILT_CALCULATE is used with the MAX_DEVIATION parameter it can be used to test ahead of printing that the bed is level to within the specified maximum deviation. Consider using SCREWS_TILT_CALCULATE with MAX_DEVIATION as part of your printer power up macro, PRINT_START macro in printer, cfg, or slicer machine print start gcode to validate the bed is still level within the given deviation prior to printing. If the bed screws deviate by more than MAX_DEVIATION then Klipper will halt with a warning, telling you how much to adjust each bed screw, and allow you to re-run SCREWS_TILT_CALCULATE to properly level the bed.

Example:

G28
SCREWS_TILT_CALCULATE MAX_DEVIATION=0.02

[SCREWS TILT ADJUST]

SCREWS_TILT_CALCULATE makes use of configuration stanza in printer.cfg to define the positions on the bed screw. These positions are measured from the probe position NOT the nozzle position. The z probe which is in the rear left corner of the print head should be over top the bed screw position when measured.

Note: the first defined bed screw position is used as the reference position to level the bed. It won't be adjusted during the SCREWS_TILT_CALCULATE process.

Discussion for Plus and Max

SCREWS_TILT_ADJUST wants bed screw positions, points on the bed that we can raise or lower. The Plus and Max have posts for the bed center which fix its height in those positions. As the first bed screw position is what's used as the point to adjust the other screws, by specifying the bed center as the first bed screw, SCREWS_TILT_CALCULATE will then let us raise or lower the other bed screws to match this fixed level.

Below are examples for each model of the N4

Neptune 4 & Pro
[screws_tilt_adjust]
screw1_name: rear left screw
screw1: 55,180
screw2_name: rear right screw
screw2: 225,180
screw3_name: front right screw
screw3: 225,10
screw4_name: front left screw
screw4: 55,10
horizontal_move_z: 10
speed: 200
screw_thread: CW-M4
Neptune 4 Plus
[screws_tilt_adjust]
screw1_name: center of plate
screw1: 160,160
screw2_name: rear left screw
screw2: 59.75,277.05
screw3_name: center left screw
screw3: 59.75,144.55
screw4_name: front left screw
screw4: 59.75,12.05
screw5_name: front right screw
screw5: 315.75,12.05
screw6_name: center right screw
screw6: 315.75,144.55
screw7_name: rear right screw
screw7: 315.75,277.05
horizontal_move_z: 10
speed: 200
screw_thread: CW-M4
Neptune 4 Max
[screws_tilt_adjust]
screw1_name: center of plate
screw1: 210,210
screw2_name: rear left screw
screw2: 56.75,377.05
screw3_name: center left screw
screw3: 56.75,194.55 
screw4_name: front left screw
screw4: 56.75,12.05
screw5_name: front right screw
screw5: 421.75,12.05
screw6_name: center right screw
screw6: 421.75,194.55
screw7_name: rear right screw
screw7: 421.75,377.05
horizontal_move_z: 10
speed: 200
screw_thread: CW-M4 
Neptune 4 (standard)
[screws_tilt_adjust]
screw1_name: rear left screw
screw1: 55,180
screw2_name: rear right screw
screw2: 225,180
screw3_name: front right screw
screw3: 225,10
screw4_name: front left screw
screw4: 55,10
horizontal_move_z: 10
speed: 200
screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise

Other Resources

See the Klipper docs for more.

PrintsLeo3D:Let Klipper level your bed with the built-in tool screws_tilt_adjust
https://www.youtube.com/watch?v=APAbl5PGEh0
Not the best, not well suited for the N4 series, dated.