One reversed wire in a differential pair flips the direction, and on a servo that can mean a runaway at enable. Understand the differential principle, three polarity-check methods and the consequences, then apply them at every encoder or drive swap.
A differential pair sends one signal on two wires: A+ carries the true phase and A- the inverse, and the receiver amplifies their difference, cancelling common-mode noise so runs reach 100m. Polarity definition: in forward rotation A+ leads B+ by 90 electrical degrees. Swap either wire of a pair and that phase inverts by 180 degrees, rewriting the phase relationship - swapping A+ with A- alone flips the direction decision, and B inverted does the same. The three pairs A, B, Z are independent, but one reversed count phase is already enough to reverse travel.
Three check methods. Datasheets: both the encoder and the drive document pin tables - match true-to-true logic, or cross over when one side defines inverted logic. Scope: probe A+ against A- and B+ against B-, rotate by hand in the positive direction, and A+ should lead B+ by a quarter cycle; if it lags, either the polarity or the direction convention is flipped. Drive monitor: most servo drives display the encoder count direction - rotate slowly forward and the monitor must increase; if it decreases, swap one pair (A+ with A-) and retest, never two pairs at once, since two inversions cancel and prove nothing.
Consequences scale in three tiers: on plain counters the machine drifts the wrong way; on a servo speed loop the reversal becomes positive feedback and the axis runs away at enable with overcurrent; on position loops it can crash. Defences: after any encoder or drive change, first power-up happens with the load detached and speed capped at 10 percent for a direction check; wiring is done de-energised with every conductor labelled A+, A-, B+, B-, Z+, Z- rather than trusted to colour memory; and each pair is twisted and equal-length, since unequal lengths introduce phase shift. The slow-speed direction check is the two minutes that buy everything.
| Check item | Correct state | Consequence if wrong |
|---|---|---|
| A+ versus B+ phase | A+ leads 90 degrees forward | Direction reversed, motion inverts |
| A- swapped with A+ | Phase inverts 180 degrees | Direction flips, servo may run away |
| B pair swapped | B inverts | Same effect as A reversed |
| Z+ swapped with Z- | Z inverts, direction unchanged | Homing faults on some drives |
| Twisted, equal length | Pair twisted and matched | Unequal length distorts the waveform |
| First power-up | 10% speed, no load, verify | Loaded start risks a runaway crash |
The polarity mantra: forward means A leads B, one swapped pair reverses the direction, and verification always runs at low speed. Pin the pinout table inside the cabinet door, hand-rotate before powering, and those two minutes outweigh any schedule pressure.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Differential electrical characteristics per the IEC 61158 series and TIA-485; control circuit safety per GB/T 5226.1 (IEC 60204-1). Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.