AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a pulse-command servo axis loses position between moves

Servo and stepper motion Published 9 min read By AutomateDirectUSA engineering team

Short answer

A pulse-command servo that runs smoothly but lands at the wrong coordinate is losing, duplicating or mistiming step edges in the command path, not failing in the servo loop. Match step polarity, pulse width and direction prechange to the drive manual's input timing, then prove the fix with a dial indicator over 100 cycles of a repeated 100 mm move.

On this page
  1. Why is my servo axis losing position when the G-code is correct?
  2. What does a pulse-command drive actually count?
  3. Which command-input settings cause lost or doubled pulses?
  4. How do I check for electrical noise instead of bad timing?
  5. Could the feedback path or mechanics cause the same drift?
  6. How do I prove the cause with a dial indicator?
  7. When is the error a scaling error instead of lost pulses?
  8. What do I change, and in what order?
  9. Questions asked

If a pulse-command servo axis machines one part correctly and the next lands a millimeter off while the program is right, the servo loop is rarely the culprit. The drive closes its position loop around exactly the pulses that reach its command input, so edges lost, doubled or mistimed upstream never appear as a fault — only as dimensional drift that grows across a production run. This article separates command-path faults from electrical noise, feedback and mechanical causes, names the three input settings that must match the drive manual's timing table, and gives a dial indicator test that turns an intermittent error into a number: a 100 mm move repeated for 100 cycles, read at every return. Fix the command timing first; retuning the loop or raising current only hides the evidence.

Why is my servo axis losing position when the G-code is correct? #

Because the drive can only count the pulses that arrive at its command input, and everything upstream of that input — the controller's pulse generator, the interface board, the cable, the receiver electronics — can lose, duplicate or mistime edges without the drive or the program ever knowing.

The symptom pattern is the tell. Motion stays smooth, no fault appears, the part is close to correct, yet a mirrored pair of parts comes off the machine with a visible difference and the offset grows over a production run. That combination points upstream of the drive's position loop, because a loop problem announces itself: a servo axis that faults mid-move with a following error is a different failure, covered in troubleshooting a servo axis that faults mid-move.

Three tempting fixes fail here, and each destroys evidence. Raising current addresses torque, not edges — the drive is not stalling. Editing the pulse scaling until one test part measures right hides an intermittent count error behind a correction factor. Retuning the loop tightens tracking around whatever count the drive already accepted; it cannot recover an edge that never arrived.

What does a pulse-command drive actually count? #

Final position equals the net number of command edges the drive has accepted, multiplied by the distance per pulse set in the scaling, so one missing edge lands the finished dimension one increment small and one false edge lands it one increment large.

The command chain is short, but every stage reshapes the signal: the controller's pulse generator, the interface board or line driver between controller and drive, the cable, and the drive's optocoupler input. Three properties decide whether an arriving edge is counted:

  • Polarity — which transition, rising or falling, the receiver acts on.
  • Width — whether the pulse holds its level long enough to be seen at all.
  • Direction timing — which direction state that edge is assigned to.

Because the drive servos tightly around the count it accepted, a steady position on the drive's monitor is not evidence that the count is correct. It only proves the loop follows what it received.

Which command-input settings cause lost or doubled pulses? #

Three settings decide it: the step polarity must match the transition the drive counts, the pulse width must exceed the drive's stated minimum high and low times, and the direction signal must change early enough before the first counted edge after every reversal.

Read all three from the drive manual's command input table — the section that states the accepted pulse modes and input timing — and set them against what your controller actually delivers:

  • Step polarity. If the controller drives one active level and the drive counts the opposite transition, the receiver sees a pulse shape you did not intend. Confirming check: compare the controller's active-level setting with the manual's counting edge, then verify the waveform at the drive's input terminals.
  • Pulse width. A pulse narrower than the manual's minimum high or low time is rejected intermittently — invisible at jog speed, present at production feed rate. Manuals also state a hard ceiling on input frequency; for example, the documentation for Delta's ASDA-M series lists a maximum input pulse frequency of 200 kpps. Confirming check: measure the actual high and low times at the drive terminals, because a correct software number does not prove the terminal receives that pulse.
  • Direction prechange. The direction level must settle for the manual's setup time before the first counted edge after a reversal and hold for its hold time after the last one. Changed too close to an edge, that step is assigned to the wrong direction — one increment lost, once per reversal. Confirming check: measure from the direction transition to the following step edge at the drive terminals.
  • Interface delay. An interface board or line driver between controller and drive adds propagation time to both signals; include it in the direction lead time you program, and measure the delivered edges rather than trusting the setting.

How do I check for electrical noise instead of bad timing? #

Noise shows up as motion you never commanded: an axis that creeps while the controller is idle or closed is receiving false edges, and the fastest test is to disconnect the controller cable at the drive-side interface and watch whether the creep stops.

If the creep stops with the cable out, the source is upstream: software on the machine's control PC can poll ports or fire interrupts that leak edges out of the interface — remove or disable everything not needed for motion and test again with startup items off. If the creep continues, look downstream: drive input wiring, grounding between drive and frame, or pickup on the interface lines. Power the drives down before disconnecting any cable and keep hands clear of the travel path, because an axis receiving false edges can move without warning.

Then clean the signal path: shielded twisted pairs for step and direction with the shield terminated the way the drive manual requires, encoder cabling routed away from motor power and spindle conductors, and the line termination the manual calls for on long runs. Once the dial indicator test below is clean, repeat it with the spindle running and then off — drift that appears or grows only with a load running points at routing, grounding or shielding, not at the controller's timing numbers.

Could the feedback path or mechanics cause the same drift? #

Yes, but by a different mechanism: a slipped encoder coupling, a loose encoder mount or backlash in the drivetrain leaves the machine sitting somewhere other than where the drive believes it is, and the drive raises no fault because its feedback is self-consistent.

The confirming difference is what the drift follows. Command-path loss grows with reversals and cycle count even with no cutting load. Feedback and mechanical drift follows load, cutting direction and temperature instead — diagnosing servo axis position drift in the drivetrain covers that family in detail, from backlash to thrust bearings.

Check the feedback hardware itself. An encoder loose on its shaft, a scale head with a contaminated window or an intermittent connector corrupts the position the drive reports, and the drive has no way to know. If your feedback is an external encoder coupled to the screw or to a measuring wheel, a coupling that has slipped is a wear item like any other, and a worn one is replaced with a flexible shaft coupling matched to both shafts.

How do I prove the cause with a dial indicator? #

Run one axis over a fixed distance and count the drift: a 100 mm move out and back, repeated 100 cycles, with a dial indicator bearing on a finished reference face, turns an intermittent per-reversal loss into a number you can act on.

One lost pulse is usually smaller than one graduation of a 0.01 mm dial, which is exactly why the move repeats: accumulation makes a sub-graduation error readable. Run the test like this:

  1. Park the axis, bring it up to the indicator tip on a finished reference face and zero the dial at a contact point you can find again.
  2. Command the axis 100 mm away and 100 mm back at production feed rate — one cycle, two direction reversals.
  3. Record the reading at every return for the full run.
  4. If the baseline is clean, repeat the whole test with the spindle and coolant running.

Worked example — calculated for these example inputs, not a measured result: a 5 mm pitch ball screw driven directly by the motor, with the drive scaled to 5,000 command pulses per motor revolution, resolves 5 mm ÷ 5,000 pulses = 0.001 mm per command pulse. After the full run the indicator reads 0.2 mm of drift.

  • Drift per cycle: 0.2 mm ÷ 100 cycles = 0.002 mm per cycle.
  • Per reversal: 0.002 mm ÷ 2 reversals per cycle = 0.001 mm — exactly one command pulse.
  • Cross-check in pulses: 0.2 mm ÷ 0.001 mm per pulse = 200 pulses lost over the run, which is 2 per cycle and one per reversal.

A loss that lands once per reversal convicts the direction prechange first. A loss that grows with speed or pulse count convicts pulse width. A drift that wanders in both directions convicts noise or a marginal receiver. A reading back at zero after the full run clears the command path and sends the hunt to the feedback and the mechanics.

When is the error a scaling error instead of lost pulses? #

Scale the error against distance: a lost-pulse fault adds a fixed amount per event, so drift grows with cycle count, while a wrong scaling adds a fixed percentage, so doubling the commanded distance doubles the error.

Run the proportion test before touching anything. Example: a commanded 100 mm move measures 99.2 mm — 0.8 mm short, or 0.8% — and a commanded 50 mm move measures 49.6 mm, also 0.8% short. That proportionality is scaling. Recompute the scaling from screw pitch, gear ratio and the drive's electronic gearing instead of nudging a number until one part passes. If the proportion is constant and the dial test still shows per-reversal drift, you have both problems; fix the scaling first so the dial arithmetic stays meaningful.

What do I change, and in what order? #

Save every setting first, then correct the three command-input parameters against the drive manual, re-run the repeated-move dial test, and accept the fix only when the indicator returns to zero with no progressive drift across the full cycle count.

  1. Back up the controller and drive settings so every change can be reversed and compared.
  2. Set the step polarity so the controller's output and the drive's input agree on the counted transition.
  3. Set the pulse width from the manual's command input table, then measure the delivered high and low times at the drive terminals, including any delay the interface hardware adds.
  4. Set the direction setup and hold times from the same table and confirm the direction level is stable ahead of the first counted edge after every reversal.
  5. Route step, direction and encoder wiring away from power conductors, with shielding and termination as the manual requires.
  6. Secure the mechanical chain — encoder mount, couplings, screw bearings, workholding — because no electrical change removes backlash or slip.
  7. Re-run the dial test at production feed rate, then with the spindle and coolant running; the axis must return to the same zero, cycle after cycle.

Decision, case by case: smooth motion, correct program, drift that grows with reversals — command-input timing; fix polarity, width and prechange to the manual, then prove it on the dial. Motion you never commanded — noise; disconnect the controller cable and clean the routing. The machine sits elsewhere while the drive reports target — feedback or mechanics; check the encoder mount and its coupling, then the drivetrain. Error proportional to distance — scaling; recompute from pitch, gearing and ratio. No case on this list ends at a tuning knob or a current limit.

Questions asked

How much position error can one lost step pulse cost?

One pulse costs the command resolution: screw pitch divided by command pulses per revolution, adjusted for any gear ratio. For a 10 mm pitch screw at 4,000 pulses per motor revolution, one edge is 0.0025 mm. Losing one edge per return across 100 repeated cycles grows or shrinks the part by 0.25 mm.

Should the direction signal change before or after the step pulse?

Before. The drive manual's command input table gives a setup time and a hold time: direction must be stable for the setup time before the first counted edge after a reversal, and stay stable for the hold time after the last one. Leading too early costs only a slightly longer pause at the reversal, so when in doubt program more prechange, never less.

What pulse width should I set for a servo drive's step input?

Take the minimum high and low times for your pulse mode from the drive manual, set the controller above that, and measure the result at the drive terminals. A common habit is 1.5 to 2 times the stated minimum — a rule of thumb, not a datasheet value — because cable and interface delays eat into the width the input actually receives.

How can I catch lost pulses without an oscilloscope?

Many pulse-command drives include a monitor mode that displays the number of input pulses received, while the controller can report the pulses it sent. Command a move worth exactly 10,000 pulses and read both counters. A mismatch of a few edges confirms the command path is dropping or adding pulses before the drive's input stage.

Why does the mistake show up when I machine a mirrored copy of a part?

The mirror does not create the error, it makes it visible. Every run of the drawing accumulates whatever edges the command path drops or doubles, and a single part hides that drift inside its own tolerances. A mirrored pair should match exactly, so any difference between the two parts is accumulated drift from the command path, the feedback or the mechanics.

Keep reading

  • Troubleshooting

    Troubleshooting a Servo Axis That Faults Mid Move

    An axis that runs a short distance under a held rapid and then stops has tripped the drive's following-error fault. When only the lightly loaded axis of an identical pair fails, and a clean reinstall of the control PC changes nothing, the cause is encoder noise coupled from the motor leads: separate the wiring, ground each shield at one end, and set a 3 µs step pulse before touching tuning.

    Servo and stepper motion

  • How-to

    Configuring a PLC pulse-output servo axis before PLS2 moves

    The drives are not plug and play: keep command scaling in one place, the drive's gearing or the PLC program, and stay under the 100 kHz pulse ceiling, which at 10,000 pulses per revolution caps the motor at 600 rpm. Prove direction, limits and homing first, then tune for the load.

    Servo and stepper motion

  • Explainer

    Step and Direction to a ±10V Servo Drive: What Converts It

    No: a step-and-direction stream cannot be wired to a ±10 V analog servo input, because pulses count position while the analog input reads a voltage as a torque or speed level. A motion controller or pulse-to-analog converter that counts the pulses, closes the position loop from encoder feedback and outputs the scaled voltage does the conversion; the drive's digital terminals are enable and fault I/O, not a command path.

    Servo and stepper motion