E45-242 · Wiring and Terminals · Encoder A/B Phases · ★
The A/B phase wires used mixed colors; the motor direction was judged backwards and the positioning error accumulated
[Mechanism] The color-coding rule was not followed: the A/B/Z phases shared colors with the supply wires, and wiring them to the wrong positions reversed the phase relationship, so the counter accumulated in the reversed direction per the wrong phase sequence.
[Calculation] Swapping the A and B phases reverses the phase-detector output, the pulse count per revolution changes sign, and the displacement accumulates with a -1 factor, giving an error of 1000 pulses after 1000 revolutions.
[Design Omission] No color code defined, no phase verification, and an unclear wiring diagram.
① Color code: assign dedicated colors to A/B/Z → no confusion
② Wire to the drawing: check the phases against the drawing → correct
③ Phase check: use an oscilloscope to see A leading B → confirmation
④ Direction check: jog and watch the counting direction → correct
⑤ Clear labels: label each core with its phase name → prevent error
⑥ Two-person check: have two people check critical phases → no mistakes
⑦ Trial run: run without load and compare the pulses → calibrate
⑧ Write the color code into the drawing → control at the source
GB 50168-2018 Standard for construction and acceptance of cable line installation in electrical equipment installation engineering