Skip to content
Ch 1224 / 37

Step 12.24 — 350 mm: [stepper_x] and [stepper_y]

Step 24 of 37 · Chapter 12 — Software: Pi OS image, Klipper/Moonraker/Mainsail, firmware, printer.cfg

(no image of your own printer yet — simulated printer: your numbers differ)

Parts: none.

Do: In both [stepper_x] and [stepper_y], uncomment the 350 pair and leave the 250 and 300 pairs commented. [stepper_x] after editing, with [stepper_y] identical below the header:

##  B Stepper - Left
##  Connected to HV STEPPER 0
##  Endstop connected to X-ENDSTOP
[stepper_x]
step_pin: PB10
dir_pin: !PB11
enable_pin: !PG0
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:400  #set to 200 for 1.8 degree stepper
endstop_pin: PC1
position_min: 0
##--------------------------------------------------------------------

##  Uncomment below for 250mm build
#position_endstop: 250
#position_max: 250

##  Uncomment for 300mm build
#position_endstop: 300
#position_max: 300

##  Uncomment for 350mm build
position_endstop: 350        # CHANGED — uncommented for 350
position_max: 350            # CHANGED — uncommented for 350

##--------------------------------------------------------------------
homing_speed: 25   #Max 100
homing_retract_dist: 5
homing_positive_dir: true

check Check

Exactly two live position_endstop/position_max pairs in the file's X/Y sections, one per stepper.

What you're looking at

A [stepper_x] section describes one axis motor and its limit switch: how far one revolution moves the axis, how finely the driver subdivides a step, which pin the endstop is on, and where the axis ends. All three build sizes ship commented out.

Klipper's parser is non-strict: a second live position_max in the same section is silently accepted and the last one wins.

Caution

Rev D+ / LDO: the kit config ships with every build size commented out. This is the first of six places that need the 350 lines uncommented (survey §4.4 #15). src

Source: leviathan-printer-rev-d-sbv2.cfg · Klipper docs § stepper