Signal types and levels, input compatibility, and angle measurement with resolvers and synchros
Indicative levels. The threshold of a 24 V digital input depends on its IEC 61131-2 type (the 1 level starts somewhere between about 11 and 15 V); always check the data sheets of the encoder and the input card.
The sign shows whether the winding voltage is in phase or in antiphase with the excitation. Synchro connections and the positive direction of rotation vary between manufacturers; a common convention is used here.
An encoder converts the position of a shaft into electrical signals. By measuring principle they can be optical (a slotted disc with a light emitter and receiver; the most accurate), magnetic (a magnet and Hall or magnetoresistive sensors; tough against dust, oil and shocks) or capacitive. By the information they give they are incremental, which emit pulses when moving that must be counted (see counting inputs), or absolute, which deliver the position directly.
| Output | Levels | Cable | Use |
|---|---|---|---|
| Differential TTL (RS-422, line driver) | Complementary A and /A, about 2–3 V apart; 5 V supply | Long, twisted pairs, 120 Ω termination | Drives, CNC controls, counter cards |
| HTL push-pull | 0 V and nearly the supply (10–30 V) | Medium; also exists in differential form | Fast 24 V PLC inputs |
| HTL line driver | A, /A, B, /B, Z, /Z from 0 V to nearly the supply (10–30 V) | Long, twisted pairs | Drives and cards with a differential HTL input; also 24 V PLC inputs using only A, B and Z |
| Universal line driver | Differential at supply level: TTL at 5 V, HTL at 10–30 V | Long, twisted pairs | One encoder model for RS-422 or HTL inputs |
| NPN open collector | Pulls to 0 V; a pull-up sets the high level | Short; slow rising edges | Simple equipment and counters |
| PNP open collector | Pulls to the supply; the load sets the low level | Short; slow falling edges | PLC inputs for PNP sensors |
| Sin/cos 1 Vpp | 1 V peak-to-peak sine waves around 2.5 V, differential | Shielded, not too long | Servos and high-resolution scales with interpolation |
| Absolute serial (SSI, BiSS and others) | RS-422 differential clock and data | Long, depending on clock speed | Single-turn and multi-turn absolute encoders |
A "line driver" is the output stage that drives the line with each signal and its complement (A and /A, B and /B, Z and /Z), with enough current to drive long cables. It comes at TTL level to RS-422, supplied at 5 V; at HTL level, with 10 to 30 V push-pull outputs; and in a universal version that accepts roughly 5 to 30 V and outputs the signal at its supply level. When choosing an encoder, check both things: whether the output is differential (line driver) and at what level it works.
A differential output sends each signal and its inverse on a twisted pair; the receiver looks at the difference between the two wires, so noise reaching both equally cancels out. It is the preferred choice for long cables and environments with drives. With open-collector outputs the speed is limited by the pull-up resistor together with the cable capacitance: the longer the cable and the higher the frequency, the lower the resistor must be, and the more current it draws. Sin/cos signals are interpolated electronically, dividing each period into hundreds or thousands of steps.
A resolver is a rotary transformer: the rotor receives a sine excitation, typically a few volts at 2 to 10 kHz, and the stator has two windings at 90°. The voltage induced in each one is the excitation multiplied by the sine and by the cosine of the shaft angle. It has no electronics or optical parts, so it withstands high temperatures, vibration and radiation; that is why it is used in servo motors, electric vehicles and aerospace. A resolver-to-digital converter (RDC) demodulates both signals and computes the angle.
Because it uses the ratio of the two voltages, the angle does not depend on the excitation amplitude or on temperature. The sum of the squares must be constant; if it changes a lot, it points to a faulty winding, cable or connection, and converters use it to detect faults.
A synchro is the forerunner of the resolver: the rotor is also excited with AC, but the stator has three windings at 120° (S1, S2 and S3). They were used in transmitter–receiver pairs to repeat a shaft position at a distance, and are still found in naval, military and aviation equipment. The three line-to-line voltages follow the sine of the angle shifted by 120°; a Scott transformer converts them into the sine and cosine format of a resolver so the same converter can be used.
See also: Pulse counting inputs, 24 V inputs to a microcontroller, Logic level shifting and Servo motors.