Imagine a motor turning the screw that drives a machine table. The screw turns once. Has the table moved 5mm? A sensor on the screw can confirm the turn. A sensor alongside the table can tell you how far the table actually traveled. The distinction matters when the motor reverses and the screw starts turning before the table begins to move.
What do encoders do? They turn physical motion into an electrical signal a controller can use to track position and calculate speed. Rotary and linear describe the motion an encoder measures. Magnetic describes how it senses that motion. That is why both a shaft and a sliding table can use a magnetic encoder.
Rotary encoders measure how far a shaft turns
Mount an incremental optical encoder on the end of the screw. A patterned disc turns with the shaft. As its slots pass between a light source and a detector, they alternately let light through and block it. The electronics turn that changing light into pulses. Counting pulses from a known starting point gives the change in angle. Counting them over a known time interval gives the average shaft speed. With two channels, usually labeled A and B, the controller can also tell which way the shaft is turning by which signal leads.

Suppose the encoder produces 1,000 pulses on channel A for each full turn of the screw. If the controller counts the rising edge of each pulse, 250 counts in one direction correspond to a quarter turn. To convert that to table travel, you need the screw’s lead, the distance the nut advances in one full turn. THK lists a 5mm lead in the “Lead(mm)” field of its BNK 1205 specifications. Using that lead in our example, the controller would infer 1.25mm of table travel for a quarter turn, or 5mm for a full turn. The encoder has measured the shaft angle. The distance comes from the calculation.
Linear encoders measure how far the table moves
To measure the table directly, fix a scale along the guide and attach a readhead to the table. As the table moves, the readhead travels along the scale. In an optical linear encoder, it senses graduations laid out in a straight line. The scale supplies the distance reference, so the controller can measure displacement independently of the screw lead. Figure 2 on page 2 of HEIDENHAIN’s technical note shows the shaft encoder in the upper diagram and the added linear scale in the lower one.
Now reverse the drive. If there is clearance between the screw and the nut, the screw can turn a little before it takes up that clearance and pushes the nut in the opposite direction. This lost motion on reversal is called backlash. During that interval, the rotary count can change while the linear reading stays steady. Taken together, the readings show when the screw started turning and when the table followed. Increasing the rotary encoder’s pulse count lets it resolve smaller shaft movements, but the mechanical clearance is still there. Thomson describes this delay in its “Backlash” entry on page 79.

Magnetic encoders read position from a magnetic field
Return to the screw shaft and replace the optical disc with a ring carrying a pattern of magnetic poles. As the ring rotates, a stationary readhead senses the changing field. Its signal lets the controller track angular movement. This arrangement is a magnetic rotary encoder. Lay a magnetized strip along the table guide instead, and let the readhead travel over it with the table. The pattern now runs along a straight path, so the signal tracks linear displacement. This is a magnetic linear encoder.

RLS lists straight magnetic scales and rotary magnetic rings together under “System parts” on the LM10 product page. On our machine, an LM10 readhead facing a ring on the screw could report the turn. A readhead facing a scale along the table could report the travel, including the moment the table starts moving again after a reversal.
When reading a machine specification, look first for the part you need to track. If the question is “Did the screw turn once?”, look for feedback from the shaft. If it is “Did the table move 5mm?”, look for feedback from the table. On the drawing, a magnetic linear encoder beside the table answers that second question. Its straight scale follows the travel axis, and its readhead senses a magnetic pattern.