AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

How-to

Magnetic Rotary Encoder Wiring Identification on Old Servos

Sensors, encoders and machine vision on the machine Published 7 min read By AutomateDirectUSA engineering team

Short answer

Count the conductors, read the feedback-device label, and find the manufacturer's connection drawing before applying power. A nine-wire color list from a similar motor variant shows DC supply plus three complementary channel pairs, which identifies an electronic encoder interface; verify supply voltage and current limit from the drawing of your exact device first.

On this page
  1. Count conductors before you count wires
  2. Read the labels before choosing electronics
  3. Magnetic sensing versus resolver excitation
  4. The nine-wire comparison list
  5. Worked example: matching the SGM-02B312B harness to the list
  6. Identification and controlled bench-test sequence
  7. Signal checks that confirm the identification
  8. The decision, stated plainly
  9. Questions asked

An old servo with an unidentified feedback device is solved in this order: count the conductors separately from screens and frame leads, read the device and motor labels, get the connection drawing for that exact device, and only then apply power through a current-limited supply. Nine wires from a Sony-made magnetic rotary encoder on a Yaskawa SGM-02B312B motor do not by themselves identify the interface. A nine-wire color list published for a magnetic encoder on a different SGM variant is a comparison reference, not a verified pinout for your motor. This article gives you the identification steps, the bench-test sequence, and the decision rule that separates an electronic encoder from a resolver before anything is energized.

Count conductors before you count wires #

Count only the signal and supply conductors. A cable screen (braid or foil wrapped around the bundle) is not a conductor in this count, and a frame ground lead is listed separately from supply 0 V. Two devices can both have nine outgoing wires yet carry different numbers of functional conductors once screens and frame leads are separated. Record the count in writing before you read any color list, because the count is what you match against published connection information.

Read the labels before choosing electronics #

Read three things: the feedback-device label (often a sticker on the encoder body), the motor nameplate, and any markings molded on the connector face. The encoder identification matters as much as the motor model, because it decides which receiving electronics you need: a pulse counter for an encoder, or an excitation and demodulation interface for a resolver. If the label shows a device number, photograph it and record it exactly; it is the strongest identifier you can put in a documentation request to the manufacturer or its distributor.

Magnetic sensing versus resolver excitation #

A magnetic encoder senses a changing magnetic field or magnetic pattern on a rotating element, where an optical encoder senses light through or reflected from a patterned disk. The sensing principle does not fix the electrical output: internal electronics can turn magnetic measurements into digital pulse channels or another interface. A resolver is different in kind. It is an electromagnetic transducer: an AC excitation produces position-dependent analog outputs, roughly sine and cosine of the shaft angle, which a resolver interface excites and demodulates. A digital pulse counter cannot read a resolver directly. This distinction is why the forum shorthand of calling every magnetic device a resolver is wrong and can send you to the wrong receiving electronics.

For a quadrature encoder, the displacement between channels A and B gives direction, and each channel usually has a complementary partner signal so a differential receiver can reject interference common to both conductors. The article on understanding encoder output signals explains how a differential line driver generates the true signal and its exact opposite. Confirm the output-driver type from the drawing before selecting the receiver: complementary labels alone do not specify voltage levels or ratings.

The nine-wire comparison list #

The following connection list was reported for a magnetic rotary encoder on a Yaskawa SGM variant such as SGM-04U3B4L. The motor in the original question is SGM-02B312B. Keep that distinction attached to the table whenever you use it.

Reported pin Reported wire color Reported function
1 Blue A channel output
2 Blue/black A/ channel output
3 Yellow B channel output
4 Yellow/black B/ channel output
5 Green C channel output
6 Green/black C/ channel output
7 Gray DC supply 0 V
8 Red DC supply 5 V
9 Orange Frame ground

The slash notation marks the complementary member of each channel pair. The C channel's role needs confirmation from a drawing: its name alone establishes neither an index pulse count nor a commutation function. Supply 0 V and frame ground are separate functions in this list; whether they tie together at the receiving end comes from the actual equipment drawing, not from the colors.

Worked example: matching the SGM-02B312B harness to the list #

The inputs: your motor harness has nine individual conductors (counted after separating the screen and confirming the frame lead), the motor nameplate reads SGM-02B312B, and the comparison list above documents nine functional conductors on a different SGM variant. The rule: a functional-conductor pattern of DC supply plus three complementary channel pairs identifies an electronic pulse encoder interface; a resolver instead presents excitation plus analog return signals and no complementary digital pairs. The arithmetic is a match count, not a measurement: the harness contributes three channel pairs with complementary partners (A/A/, B/B/, C/C/), two dedicated DC supply conductors, and one frame lead, which is 9 functional conductors in the same functional groups as the list. The result: the harness pattern is consistent with an electronic magnetic encoder of the same family, with a DC supply pair, not with a resolver. The decision: treat the device as a candidate pulse encoder, but power it only after a drawing confirms the supply voltage for your exact device; the comparison list's DC value applies to the listed variant only, and applying it to yours without confirmation risks damaging the feedback electronics.

Identification and controlled bench-test sequence #

  1. Isolate the motor. Disconnect it from its drive, remove power, and secure the shaft against rotation. Follow your site's lockout practice and the machine's risk assessment before opening any cable.
  2. Record all identification. Photograph the motor and encoder labels, connector faces, contact numbering, wire colors, and where the screen terminates. Write the motor model exactly as printed.
  3. Map the cable without power. Use a continuity tester to map accessible connector contacts to conductors, and note which face of the connector you are viewing (pin numbers mirror between the two faces). Resistance readings across the feedback electronics do not substitute for a pinout.
  4. Get the drawing. Request the encoder connection drawing, supply requirements and output-driver specification from the manufacturer or its authorized distributor, quoting the encoder identification from step 2. If a mail request goes unanswered, call or go through a distributor; do not fill the gap with the comparison list.
  5. Choose test equipment to match the confirmed device. For a confirmed DC encoder, use the specified supply voltage with the current limit set from the device rating, feeding a compatible differential receiver. For a confirmed resolver, use the specified excitation and resolver interface; never apply DC to presumed supply wires.
  6. Apply power and rotate slowly. Watch supply voltage, supply current, device temperature and the output waveforms on a scope. Stop immediately if current rises past the documented limit or the device heats unexpectedly.

Signal checks that confirm the identification #

With a confirmed quadrature interface, observe channels A and B simultaneously while turning the shaft in each direction: both must transition, and reversing the rotation reverses their phase order. Measure each complementary pair differentially, and do not ground one half of a pair through a grounded scope probe. Watch the C channel over complete revolutions and compare its count and timing with the drawing. Measure at both the encoder connector and the receiving equipment when a signal looks wrong: that separates a device fault from a cable break, interference or receiver configuration. A bench waveform that looks correct still is not proof of servo compatibility; the drive must accept the signal type, levels and count per revolution, and the retrofit in the resolver-equipped servo retrofit write-up shows how that matching works in practice when old feedback meets new electronics.

The decision, stated plainly #

Nine conductors alone decide nothing. If the conductor pattern is DC supply plus complementary channel pairs and a drawing confirms the supply for your exact device, power it through a current-limited supply as a pulse encoder and read it with a differential counter. If the label or drawing names a resolver, use a resolver interface with the specified excitation instead. If no drawing can be obtained, do not energize the device: the cost of a wrong supply connection is the encoder itself, and on an obsolete motor that can be the whole axis.

Questions asked

Is a magnetic rotary encoder the same thing as a resolver?

No. Both report shaft angle and speed, but they are different devices. A resolver is an electromagnetic transducer: an AC excitation produces position-dependent analog signals that a resolver interface must excite and demodulate. A magnetic encoder senses a magnetic pattern and its internal electronics can output digital pulse channels. Wire count alone cannot tell them apart; the device label and connection drawing decide.

Can I power an unidentified encoder from a bench supply to test it?

Only after a connection drawing confirms the supply voltage, polarity and current rating. Set the supply's current limit from the device rating, connect with correct polarity, and monitor current and temperature. Rising current or unexpected heating means stop immediately and recheck the connection. Never guess supply pins on a resolver-style device or on an unconfirmed pinout.

What does the slash notation mean in encoder wire lists, as in blue/black for A/?

In the nine-wire list discussed here, the slash marks the complementary member of a channel pair: A/ is the inverted twin of A. Each pair feeds a differential receiver, which rejects interference common to both conductors. The complementary label describes the signal relationship, not the electrical ratings; confirm the output-driver type before choosing the receiving electronics.

Why does the wire color list from one motor variant not prove the wiring of another?

Because the list documents one specific encoder variant, not a family-wide standard. A different motor may carry a different feedback device with a different pinout, supply voltage or output interface. Use the other variant's list as a comparison reference while you inspect, and request the connection drawing for your exact motor and encoder identification from the manufacturer or its distributor.

Keep reading

  • How-to

    How to Identify Geared Resolver and Encoder Feedback on Old Servos

    Treat the resolver plus its geared 1:4 and 1:80 channels as one integrated coarse-and-fine, multi-turn position package: the resolver reads absolute angle within one shaft revolution, and the geared channels count revolutions above it. Identify each channel by resistance checks, ratio counting and waveform capture before choosing a replacement drive, because the resolver model number alone establishes neither commutation nor multi-turn position recovery.

    Sensors, encoders and machine vision on the machine

  • How-to

    Matching Encoder Signal Names Between Motor and Servo Drive

    Matching capability labels do not prove a motor and drive will talk. Map the sine and cosine pairs by function, then resolve index, data and clock and the commutation definition from both datasheets into a function-based cable schedule, because the connectors will not match pin for pin.

    Sensors, encoders and machine vision on the machine

  • How-to

    Commissioning a replacement servo encoder with motor ID data

    The replacement encoder must carry the exact motor's identification before the drive will run it. That write is done with the manufacturer's Motor ID writer utility, obtained with its interface through Mitsubishi Electric support or an authorized service partner; a drive parameter program such as Pnmot11 cannot do it. Confirm the fault is really an identification mismatch, not wiring, before you chase the utility.

    Sensors, encoders and machine vision on the machine