Worked example
A TR8×8 screw moves 8 mm per turn. With a 200-step motor and 16 microsteps, 3,200 pulses cover those 8 mm. Use 400 steps/mm in Marlin or 8 mm rotation distance in Klipper.
Measure the travel for several complete screw turns to identify the lead. The common four-start TR8×8 has threads spaced 2 mm apart. Entering that spacing as the lead produces a fourfold scaling error.
Commanded resolution 400 steps/mm
Formulas
Full steps per turn = 360° / step angleTravel per turn = pulley teeth × pitch, or screw leadSteps/mm = full steps × microsteps / travel (mm)Axis speed (mm/s) = RPM × travel / 60Pulse frequency (kHz) = speed × steps/mm / 1000Shaft torque = (m a + F) × travel / (2π η) + J × 2π a / travelRequired pull-out torque = shaft torque × margin factorMechanical power (W) = shaft torque × 2π RPM / 60