Error: Option 'position_max' in section 'stepper_z' must be specified

Basic Information:

Kingroon KP3s
MCU / Printerboard: Kingroon (robin.nano)
klippy.log
klippy.log (184.2 KB)

Fill out above information and in all cases attach your klippy.log file. Pasting your printer.cfg is not needed

Describe your issue: Trying to configure 3D Touch (BL Touch clone). Klipper throws the error “Option ‘position_max’ in section ‘stepper_z’ must be specified”, which it is. Here’s the config for the Z stepper:

[stepper_z]
[bltouch] # enable for BLTouch
sensor_pin: ^PA11
control_pin: PA8
step_pin: PB5
dir_pin: !PB4
enable_pin: !PB8
full_steps_per_rotation: 200
microsteps: 32
rotation_distance: 8
#endstop_pin: !PA11 # disable to use BLTouch
endstop_pin: probe:z_virtual_endstop # enable to use BLTouch
#position_endstop: 0 # disable to use BLTouch
position_max: 180
homing_retract_dist: 10.0
second_homing_speed: 5
position_min: -10 # enable to use BLTouch

I’m obviously missing something. Any help much appreciated!

Hi! It looks like you don’t have any settings in the [stepper_z] section, with the ones that should be there instead under the [bltouch] section. Assuming that’s the only problem, this should work for you in lieu of what you pasted:

[stepper_z]
step_pin: PB5
dir_pin: !PB4
enable_pin: !PB8
full_steps_per_rotation: 200
microsteps: 32
rotation_distance: 8
#endstop_pin: !PA11 # disable to use BLTouch
endstop_pin: probe:z_virtual_endstop # enable to use BLTouch
#position_endstop: 0 # disable to use BLTouch
position_max: 180
homing_retract_dist: 10.0
second_homing_speed: 5
position_min: -10 # enable to use BLTouch

[bltouch] # enable for BLTouch
sensor_pin: ^PA11
control_pin: PA8

All I did was put the values that don’t fit into the BLTouch section into the stepper section. Sources: stepper configuration, BLTouch configuration

Remember to set your X, Y, & Z probe offsets as specified here!
Let me know if you need any help.

Thanks – I got past that error now! However, now when I run the home all function the physical probe extends and then raises, but Klipper reports “BLTouch failed to raise probe”, even though it did. If I send a G28 command the probe raises and then lowers as it should. Ideas???
klippy.log (115.4 KB)