多 Z 参考配置
本页面整理双 Z 电机的常见配置方式。示例中的引脚、行程和方向需要根据实际主板与机器结构修改。
调试提醒
- 首次调试 Z 轴前,请确认丝杆、联轴器和平台不会卡死。
- 多 Z 电机必须使用相同的
rotation_distance、microsteps和机械传动规格。 - 使用 Probe 或 BL-Touch 作为 Z 限位时,不要同时保留
position_endstop。
双Z单限位
双 Z 共用一个限位时,只需要在 [stepper_z] 中配置 endstop_pin,第二个 Z 电机 [stepper_z1] 不需要添加 endstop_pin。
printer.cfg
[stepper_z]
step_pin: <z_step_pin>
dir_pin: <z_dir_pin>
enable_pin: !<z_enable_pin>
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 16
endstop_pin: ^!<z_endstop_pin>
position_endstop: 0
position_max: 300
homing_speed: 50
homing_retract_dist: 5
[stepper_z1]
step_pin: <z1_step_pin>
dir_pin: <z1_dir_pin>
enable_pin: !<z1_enable_pin>
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 16
双Z双限位
双 Z 分别使用独立限位时,第二个 Z 电机需要添加 endstop_pin。这种方式适合需要分别检测两个 Z 端点的机器。
printer.cfg
[stepper_z]
step_pin: <z_step_pin>
dir_pin: <z_dir_pin>
enable_pin: !<z_enable_pin>
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 16
endstop_pin: ^!<z_endstop_pin>
position_endstop: 0
position_max: 300
homing_speed: 50
homing_retract_dist: 5
[stepper_z1]
step_pin: <z1_step_pin>
dir_pin: <z1_dir_pin>
enable_pin: !<z1_enable_pin>
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 16
endstop_pin: ^!<z1_endstop_pin>
双Z使用 Probe 或 BL-Touch
使用 Probe 或 BL-Touch 作为 Z 限位时,需要将第一个 Z 配置中的 endstop_pin 改为 probe:z_virtual_endstop,并添加对应的 [probe] 或 [bltouch] 配置。
printer.cfg
[stepper_z]
step_pin: <z_step_pin>
dir_pin: <z_dir_pin>
enable_pin: !<z_enable_pin>
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 16
endstop_pin: probe:z_virtual_endstop
# position_endstop: 0
position_max: 300
homing_speed: 50
homing_retract_dist: 5
step_pulse_duration: 0.000004
[stepper_z1]
step_pin: <z1_step_pin>
dir_pin: <z1_dir_pin>
enable_pin: !<z1_enable_pin>
rotation_distance: 4
full_steps_per_rotation: 200
microsteps: 16
[probe]
pin: ^<probe_pin>
x_offset: 0
y_offset: 0
# z_offset: 0
speed: 3.0
lift_speed: 5
samples: 3
samples_result: median
sample_retract_dist: 3.0
samples_tolerance: 0.075
samples_tolerance_retries: 3
检查顺序
- 使用
STEPPER_BUZZ STEPPER=stepper_z检查第一个 Z 电机方向。 - 使用
STEPPER_BUZZ STEPPER=stepper_z1检查第二个 Z 电机方向。 - 确认两个 Z 电机上升、下降方向一致。
- 确认限位或 Probe 状态正确后,再执行
G28 Z。
Loading...