Worked example
A direct-drive GT2 20T pulley advances 20 × 2 = 40 mm per motor revolution. Enter rotation_distance: 40 for the axis. A 1.8° motor at 1/16 commands 80 steps per millimeter at that geometry.
Check the number of teeth on the motor pulley, even if the idler has the same markings. A change from 20T to 16T reduces distance per motor turn and changes both motion calibration and pulse rate.
Commanded resolution 80 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