AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Pulses per unit calculator

Enter the pulses per motor turn, the travel per output turn and the reduction, and get the pulses per millimetre, the smallest move and the pulse rate needed.

Calculator

This calculator needs JavaScript. Without it, use the formulas under "How it works" and the worked example.

How it works

A drive that takes step and direction pulses moves the motor a fixed angle per pulse. Multiply that by the reduction and divide by the travel per output turn, and you have the pulses needed for each millimetre of axis travel.

  • Pulses per motor turn = full steps per turn × microsteps, or encoder lines × 4 for a quadrature encoder counted on both edges of both channels.
  • Pulses per mm = pulses per motor turn × motor turns per output turn ÷ travel per output turn (mm).
  • Smallest move (µm) = 1000 ÷ pulses per mm.
  • Pulse rate (Hz) = speed (mm/s) × pulses per mm.

Travel per output turn is the lead of a screw, the circumference of a pinion at its pitch diameter, or the pitch of the belt teeth times the tooth count of the pulley. When the drive has electronic gearing, enter the command pulses per motor turn that the drive is set to, and still enter the mechanical gear ratio of any gearhead or belt. Leave the ratio at 1 only when there is no mechanical reduction. The smallest move is only the size of one pulse. It says nothing about backlash, lead error or how far the load flexes. 1 in = 25.4 mm gives the per-inch row.

Worked example

A servo on a rack and pinion gantry is set to 10000 pulses per motor turn and sits behind a 5:1 planetary gearhead. The pinion has a 50 mm pitch diameter, so it travels 157.08 mm per turn. The pulses per output turn are 10000 × 5, which is 50000 pulses, and dividing by 157.08 gives 318.31 pulses per millimetre. One pulse moves the axis 3.1416 µm.

At 800 mm/s the controller must send 254.65 kHz. If its output or the drive input tops out lower than that, the options are a lower pulse count per turn, a lower top speed, or a drive set with electronic gearing so the controller sends fewer pulses.

Common mistakes

  • Counting encoder lines instead of counts. A quadrature encoder decoded on both edges gives four counts per line, so 2500 lines is 10000 counts.
  • Forgetting the microstep setting. A 200-step motor at 1/8 microstepping needs 1600 pulses per turn.
  • Ignoring the pulse rate limit. The rate at top speed has to fit within the controller output and the drive input.
  • Applying the gear ratio twice, once in the drive electronic gearing and once in the controller scaling. Set it in one place only.
  • Taking the smallest move as the accuracy of the axis. Backlash, lead error and compliance decide where the load actually ends up.

Related articles

Other calculators