AutomateDirectUSAMotion LibraryShop the parts catalog

Troubleshooting

Troubleshooting a Servo Axis That Faults Mid Move

Servo and stepper motion Published 7 min read

Short answer

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.

On this page
  1. Fault trip, not a missed step
  2. What the twin axes prove
  3. Causes in order of what they cost to check
  4. Segregate and ground the wiring first
  5. Step pulse width, logic level and the single-ended input
  6. Encoder cable construction rules
  7. Worked example: step demand at 200 ipm with 250 CPR encoders, 2:1 gearing and a 0.200 in lead screw
  8. The decision, case by case
  9. Questions asked

An axis that moves a short distance under a held rapid command and then stops, key still pressed, has tripped the drive's following-error fault: the motor fell farther behind the commanded position than the drive's error limit allows, so the drive disabled it. Servo axes do not miss steps the way steppers do, so the stepper reflex of slowing down is the wrong first move. When only the lightly loaded axis of an identical pair faults, and a clean reinstall of the control computer changes nothing, load, tuning and the PC are all ruled out, which leaves noise coupled from the motor armature leads onto the encoder lines. Separate the motor leads from the encoder and signal cables, ground each shield at exactly one end, and set a 3 µs step pulse width before touching any gain.

Fault trip, not a missed step #

Following error is the commanded position minus the encoder-reported position, in encoder counts. Every servo drive carries a limit on it; past that limit the drive faults and disables the motor. The signature is the one reported on this machine: the axis runs briefly under a held rapid, then stops with the command still active. That is a fault trip, not a software hang and not the stepper behavior it resembles.

True position loss is quieter. Noise spikes on the encoder channels add or erase signal edges, so the drive's count drifts while the drive believes it is on target. A loud fault and a silent drift therefore share a first suspect: encoder signal integrity. If the drive reports an encoder alarm rather than a following error, servo encoder connection error alarm diagnosis starts at the wiring; when nothing alarms but parts measure wrong, diagnosing servo axis position drift in the drivetrain covers the drivetrain side.

What the twin axes prove #

On this machine, X and Y use the same motors and the same 2:1 reduction, X carries the gantry and the heavier load, and only Y faults. A from-scratch reinstall of the operating system changed nothing, and switching the Mach3 kernel frequency among 25, 35 and 45 kHz changed nothing.

That evidence points one way. A load or tuning problem disables the heavier axis first, because it demands more torque at the same acceleration. A controller or operating-system problem hits both axes at once. A single-axis fault that survives a clean software install and ignores kernel settings belongs to that axis's own hardware, and the only hardware unique to one axis is its wiring run and its encoder cable.

Decision: treat it as coupled noise on the failing axis until separating the wiring proves otherwise.

Causes in order of what they cost to check #

  • Armature leads bundled with encoder or step cables. One axis only, worse at high speed and acceleration. Confirm by physically separating the runs and re-testing.
  • Encoder shield ungrounded, or grounded at both ends. Intermittent, position-dependent faults. Confirm with continuity from shield to control-box ground, one end only.
  • Step pulse too narrow, or wrong active level. Dropped pulses on long, fast moves. Confirm with a 3 µs width and the active level the drive manual specifies, driven from a 5 V buffered output.
  • Step demand above the controller kernel frequency. Starving at full rapid only. Confirm with the worked example below.
  • Encoder resolution entered wrong in the controller. Axis travels the wrong distance per command. Confirm with a measured jog.
  • Command or feedback direction inverted. Brief runaway, then fault. Confirm against the commanded direction.
  • Acceleration or velocity beyond the motor. Fault repeats at the same point of fast moves. Confirm by halving both and re-testing.
  • Mechanical binding. Fault at the same carriage position, high motor current. Confirm by releasing the coupling and turning the screw by hand.

Segregate and ground the wiring first #

Wiring changes cost nothing and explain both the fault and the drift, so they come before any retuning. Power the drive down and confirm the 42 VDC bus reads zero before touching motor leads; the bus holds charge after switch-off.

  1. Route the two motor armature leads away from the encoder cable and the step, direction and enable conductors; where they must cross, cross at 90 degrees.
  2. If armature and encoder cables must share a path, use shielded cable for both.
  3. Terminate each shield at one end only, at the control box.
  4. Run the motor case ground in the same bundle as the armature leads.
  5. Re-test with a held rapid and a long jog.

The mechanism is coupling: the drive switches PWM current through the armature leads, and 5 V encoder lines running parallel to them pick up spikes the drive counts as extra edges. On the machine described, this one separation removed the fault — a reported repair result, and the expected outcome when the lightly loaded axis is the one that fails.

Step pulse width, logic level and the single-ended input #

On a pulse-and-direction servo drive fed from a PC parallel port through a breakout board, many ports output 3.3 V logic while the drive expects 5 V steps, so the board must buffer the port to 5 V; confirm that in the board's own documentation. Set the step pulse width to 3 µs, and set step, direction and enable active low unless the drive manual states otherwise. For the signal-handling rules behind configuring single-ended step and direction inputs, follow the drive's setup documentation.

Encoder cable construction rules #

This drive class accepts single-ended encoder inputs only. A differential line-driver encoder must pass through a receiver before the drive; wired straight in it is not readable and gains nothing. The cable rules for the 6 ft runs on this machine:

  • Above 10 ft (about 3 m) of run, use twisted-pair cable.
  • Twist channel A with signal ground, and channel B with the +5 V conductor.
  • Never twist A and B together as one pair.
  • Ground the shield at one end, at the control box.
  • A 6 ft shielded run is inside the length limit, so the fault came from routing, not length.

Worked example: step demand at 200 ipm with 250 CPR encoders, 2:1 gearing and a 0.200 in lead screw #

Inputs, each from the machine in question: encoders rated 250 lines per revolution on the motors; quadrature decoded at 4 counts per line, the standard decode for this drive class, so confirm the factor in the drive manual; 2:1 motor-to-screw reduction; 0.200 in of travel per screw revolution; a commanded rapid of 200 in/min; and a controller kernel frequency selectable at 25, 35 or 45 kHz with 25 kHz the default.

The rule in words: counts per inch equal lines per revolution times the decode factor times the reduction, divided by the lead. Step rate equals feed in inches per second times counts per inch. The controller cannot emit step pulses faster than its kernel frequency.

The arithmetic:

  • 250 lines/rev × 4 counts/line = 1,000 counts per motor revolution
  • 1,000 counts × 2 = 2,000 counts per screw revolution
  • 2,000 counts ÷ 0.200 in = 10,000 counts/in
  • 200 in/min ÷ 60 s/min = 3.33 in/s
  • 3.33 in/s × 10,000 counts/in = 33,333 counts/s, about 33.3 kHz

Result: at 200 ipm the axis demands roughly 33.3 kHz of step pulses, and the default 25 kHz kernel is 8.3 kHz short. At 25 kHz the deliverable feed is 25,000 counts/s ÷ 10,000 counts/in = 2.5 in/s = 150 in/min. These are calculated values for these inputs, not measurements. At 33.3 kHz the pulse period is 30 µs, so a 3 µs width occupies a tenth of the period and fits.

Decision, with its threshold: whenever feed in inches per second times counts per inch exceeds the kernel frequency, the axis starves for pulses at that feed. With this scaling, select the 45 kHz kernel to reach 200 ipm, or cap the rapid at 150 ipm on the 25 kHz default. On this machine the kernel change made no difference to the fault, so starvation was not the trigger — the wiring was — but the check still sets the honest top speed the controller can command.

The decision, case by case #

  • One of two identical axes faults, the lighter one, and software changes do nothing: segregate that axis's motor leads from its encoder and signal wiring, ground shields at one end, and re-test. On the reported machine this cleared it.
  • The fault repeats at the same commanded position on any axis: release the coupling and turn the screw by hand, then halve acceleration and re-test. That is binding or capability, not noise.
  • No fault, but parts measure wrong: apply the same wiring fixes, then confirm counts per inch with a measured jog.
  • Step demand above the kernel at top speed: cap the feed or raise the kernel as in the worked example. That bounds the top speed; it does not by itself explain a mid-move fault.

Questions asked

How large can the following error grow before the drive faults?

The limit is a drive parameter, expressed in encoder counts, and its value comes from the drive manual, not from the motor or the controller. Widening it to silence a nuisance fault only hides the problem: the axis travels farther out of position before tripping. Set it wide enough for the worst commanded acceleration and no wider.

Why did raising the kernel frequency from 25 kHz to 45 kHz not clear the fault?

Because the fault was not pulse starvation. Raising the kernel only helps when step demand exceeds it; with 10,000 counts per inch, 25 kHz supports 150 in/min and 45 kHz covers the 33.3 kHz that 200 ipm demands. When a fault survives the kernel change with no difference in behavior, the pulses are arriving and the encoder signal itself is the suspect.

What can be added if the fault persists after the wiring is separated?

Snap a ferrite bead or clamp core around the motor armature leads close to the drive. Routing the leads apart and beading them is the standard pairing against coupled noise, and the bead is the cheap second step when separation alone has not fully cleared the fault. Re-check the shield termination at the same time: a shield grounded at both ends reintroduces the noise.

How do I confirm the encoder resolution is entered correctly?

Command a jog of a round distance, say 2.000 in, and measure what the axis actually moved with a scale or indicator. If it travels 2.000 in, the counts-per-unit setting matches the mechanics. If it moves roughly half or double, the decode factor or the lines-per-revolution entry is off by that factor of two, so fix the setting rather than the mechanics.

Keep reading

  • Explainer

    Servo Positioning Resolution Versus Stepper Step Angle Explained

    A 0.018° move needs 360 ÷ 0.018 = 20,000 usable feedback counts per revolution, which come from the encoder and the drive's decoding and scaling, not from the servo label. Matching 3,000 command pulses per revolution on a stepper and a servo only matches command scaling; short-time overload capacity and high-speed performance still differ.

    Servo and stepper motion

  • How-to

    Setting Up Servo Electronic Gearing With Registration Correction

    Gear the folder servo to the web encoder with one fixed electronic gear ratio and apply registration error as a bounded phase trim ramped across the 100 to 200 ms between corrections. At 150 m/min a 0.1 mm tolerance is 40 microseconds of web travel — about eight 0.0127 mm increments — so doubling or halving a pulse train for six pulses trips following error, while a ramped trim changes speed by 0.04 percent.

    Servo and stepper motion

  • Troubleshooting

    Why a Servo Axis Runs Away During Tuning

    A servo that completes its commanded move, then throws itself into reverse at full speed while the velocity command has no effect, has a feedback fault: reversed encoder direction, or open, crossed or noisy encoder wiring. Uncouple the motors, verify feedback polarity and continuity with the drive disabled, then retune from default gains. Raising gains cannot fix positive feedback.

    Servo and stepper motion