
Selecting the right position feedback for servo axes and CNC tables in harsh industrial environments is a critical engineering challenge. This article compares magnetic and optical encoders, evaluating their performance against real-world contaminants like coolant mist, oil…
Selection Comparison of Magnetic and Optical Encoders in Industrial Environments
Choose a magnetic encoder when the encoder will see coolant mist, oil, dust, condensation or sustained vibration, with ferrous swarf excluded or shielded, and when the required accuracy is within what a multipole magnetic scale can deliver. Choose an optical encoder when the environment is clean or fully sealed, when the axis needs finer native resolution and lower interpolation error per period, or when stray magnetic fields sit close to the sensing area. Most industrial decisions fall between these cases. The comparison and scaling relations below show which mechanical tolerances decide whether a magnetic design meets its accuracy target.
The Decision Engineers Face
A servo axis, robot joint or CNC rotary table needs position feedback that keeps working for years in a real machine environment. The two candidate technologies sense different physical quantities.
- An optical encoder shines light through or reflects light off a fine grating and detects the modulated intensity. Any material that scatters or absorbs light in the optical path corrupts the signal. This includes an oil film, a dust layer, a chip or a condensation droplet.
- A magnetic encoder uses Hall or magnetoresistive (MR) sensors to read the periodic field of a multipole magnetic ring, disc or strip. Oil mist, dust, moisture and non-ferrous debris do not interrupt that field. Ferrous swarf can stick to the scale and is a separate constraint.
That difference explains why magnetic scales and encoder discs are widely used in machine tools, woodworking and textile machinery, automated production lines and CNC rotary tables, where they serve as a practical replacement for optical glass scales. Magnetic encoders also bring trade-offs: coarser spatial periods, a steep dependence on air gap, and sensitivity to external magnetic fields. These have to be designed for explicitly.
Magnetic vs. Optical Encoders Compared on Industrial Criteria
The comparison axes below are the ones that decide field reliability. Magnetic-side figures for specific products are AIC Engineering's published values for MU-series precision discs and JC-F linear magnetic scales [4]. Optical-side entries are qualitative, because optical performance varies widely by vendor and design.
| Decision axis | Magnetic encoder (Hall/MR + multipole scale) | Optical encoder (grating + photodetector) | Selection implication |
|---|---|---|---|
| Sensing quantity | Spatially periodic magnetic field | Modulated light intensity | Determines which contaminants matter |
| Oil mist, coolant, dust, chips, moisture | Oil, dust, moisture and non-ferrous debris do not interrupt the field | Signal degrades or fails once the optical path is obstructed; relies on sealing | Magnetic suits open or splash-exposed axes |
| Ferromagnetic debris (steel chips, swarf) | Can accumulate on the scale and distort the field; cover strip or shielding advised | Blocks light like any other debris | Steel swarf needs cover strips or wipers in both cases |
| Spatial period | Pole pitch ≈ 1.28 / 1.5 / 2.0 mm (MU discs); 1 / 2 / 5 mm (JC-F strip, others custom) | Typically much finer grating periods | Optical gives finer native resolution; magnetic relies more on interpolation |
| Air-gap sensitivity | Fundamental amplitude decays exponentially with gap (see scaling below); MU discs specified at 0.4 mm detection gap | Depends on optical design; generally tight alignment tolerances | Magnetic gap tolerance must be budgeted against pole pitch |
| Mounting accuracy | MU disc concentricity ±0.02 mm; JC-F strip mounts without precision guides | Mounting precision depends on the optical design | JC-F needs no precision guideway; rotary accuracy still follows concentricity |
| Absolute position | Dual-track vernier (main 32–95 pole pairs + track with one fewer pair): absolute angle at power-up, no homing, no battery | Absolute via coded tracks (design-dependent) | Both can be absolute; the magnetic result is a vernier phase comparison |
| Linear accuracy | JC-F: ≤ 0.02 mm/m over −20 to 80 °C | Glass scales generally reach higher accuracy grades | Check the axis error budget before substituting |
| Operating temperature | MU discs −35 to +120 °C; SmCo available for higher temperatures; JC-F −20 to 80 °C | Set by the optic, detector and scale material | SmCo magnetic discs extend the hot-side margin of the disc |
| External magnetic fields | ≥ 1 mT degrades MU system accuracy; ≥ 20 mT permanently damages disc magnetization | Generally insensitive to magnetic fields | MU discs need spacing from brakes, motors and magnetic fixtures |
| Shock and vibration | Non-contact, no wear | Vibration can break an optical reading; glass scales are impact-sensitive | Magnetic reading tolerates vibration that disrupts optical discs |
| Long-travel linear | JC-F supplied as 50 m rolls (10 mm × 1.43 mm), cut to length on site | Length and mounting vary by vendor | Roll stock simplifies long axes and spare-length inventory |
Three Physical Models That Set the Selection Boundary
Three scaling relations set the tolerance checks for gap, vernier decoding and concentricity.
Field decay with air gap sets the usable gap window
A multipole scale with one-pole width (fundamental period ) produces a field whose fundamental harmonic decays with distance from the scale surface approximately as
This is the free-space solution of Laplace's equation above a wide, periodically magnetized surface [1][2]. Use it as a scaling law for the fundamental. Higher harmonics decay faster, and magnet thickness and sensor averaging change the prefactor. Catalog anchors stay in force: for MU discs, a surface field of 20 mT and a field amplitude of 3 mT at the 0.4 mm detection gap [4]. Insert a catalog pole pitch as only when that pitch is the one-pole width.
Field amplitude depends exponentially on the ratio of gap to pole pitch. A finer pole pitch gives more periods per revolution or per metre, and it shrinks the gap at which the sensor still receives a usable signal. Bearing runout, thermal growth and housing tolerance all consume that window. If the mechanical design cannot hold the gap close to the specified value across temperature and load, choose a coarser pitch, or a Hall/MR sensor with more amplitude margin. Optical encoders face a comparable alignment budget, but contamination tolerance is not traded against it in the same way.
Vernier phase comparison determines absolute position and its tolerance
On a dual-track disc, the main track has pole pairs and the vernier track has . At mechanical angle the unwrapped electrical angles are and . Their difference is
Sensor outputs are wrapped; the difference has to be unwrapped before this identity is used. It gives the absolute single-turn angle directly, with no reference run or battery [4]. The fine position then comes from interpolating the main track. The vernier result is only correct if it identifies the right main-track period. That requires the error in to stay below roughly .
For a 95-pole-pair main track, the combined phase error of both tracks must therefore remain below about 1.9°. A working split gives each track roughly half of that. High pole counts improve resolution but tighten the allowable phase error from gap variation, eccentricity, harmonic distortion and sensor offset. Lower pole counts from the 32–95 range give more robust absolute decoding on axes with looser mechanics.
Eccentricity produces a first-order angular error in any rotary encoder
If the scale centre is offset by from the rotation axis at read radius , the indicated angle carries a once-per-revolution error of approximately
This relationship applies to optical and magnetic discs equally. As an illustrative calculation, a concentricity of ±0.02 mm at a 30 mm read radius gives a peak error of about 0.67 mrad, or roughly 0.04°. At that radius the mounting term can exceed the sensing contribution. When magnetic and optical encoders are compared at system level, disc concentricity and hub mounting tolerance have to be specified with the sensing principle.
Recommended Design Window for Magnetic Encoders
Use the following window as a starting point for an industrial magnetic encoder, then refine it with the actual sensor IC data sheet.
- Air gap. Design to the specified detection gap. For MU discs this is 0.4 mm. Budget the total gap variation from runout, axial play and thermal expansion as a fraction of the pole pitch, since the fundamental scales with . On loose mechanics, choose a coarser pitch such as MU200 (about 2.0 mm) over MU128 (about 1.28 mm).
- Pole count. Pick the lowest main-track pole count that meets resolution after interpolation. This preserves vernier decoding margin.
- Concentricity. Hold disc-to-shaft concentricity close to the ±0.02 mm disc specification. The hub, adhesive or press fit adds to it.
- Temperature. Stay within −35 to +120 °C for standard MU discs and −20 to 80 °C for JC-F strip. Specify SmCo discs where the shaft or housing runs hotter.
- Stray field (MU discs). Keep external fields at the disc below 1 mT during operation. Keep anything that could reach 20 mT away from the disc at all times, including during assembly, storage and maintenance.
- Sensor matching. The Hall or MR IC's input range, magnet geometry, grade and magnetization pattern must match so that output stays linear and stable across the full temperature range.
Where Magnetic Encoders Fail or Should Not Be Used
The common failure modes in the field follow from the relations above.
Gap drift. Axial play, bearing wear or thermal growth can push the sensor beyond the gap where the signal amplitude supports clean interpolation. Interpolation error then rises, and vernier decoding can slip by one full main-track period. That slip is a large absolute-position error.
Stray magnetic fields. Holding brakes, motor end-windings, magnetic workholding and lifting magnets can all bring fields close to an MU disc. Above 1 mT, MU system accuracy degrades. At 20 mT and above, the magnetization pattern is permanently damaged and the disc must be replaced. A magnetic chuck or magnetic tool tray placed near a CNC rotary table is a realistic hazard and belongs in the maintenance instructions. JC-F scales are also field-sensitive; the 1 mT and 20 mT figures above are the published MU disc limits [4].
Ferromagnetic contamination. Steel swarf collects on a magnetized scale and distorts its field. Oil, dust and non-ferrous chips do not distort the field, but steel machining cells need the optional cover strip on linear scales or a guarded disc.
Over-temperature. Operating beyond the rated range reduces field amplitude and can move the sensor off its linear range. Ratings are −35 to +120 °C for MU and −20 to 80 °C for JC-F. A grade change to SmCo addresses the disc side but not the sensor electronics.
Accuracy demand beyond the scale class. Where the axis error budget is tighter than a multipole scale with interpolation can support, such as metrology-grade positioning in a controlled enclosure, an optical encoder is the appropriate choice. JC-F is specified at ≤ 0.02 mm/m [4].
Optical encoders have their own failure boundary. Once sealing is breached, or condensation forms during temperature cycling, signal quality degrades and recovery requires cleaning or replacement. If an enclosure to IEC 60529 cannot be maintained for the life of the machine, the magnetic option usually carries the lower lifecycle risk [3].
How AIC Engineering Delivers to This Design Window
The AIC Engineering team designs magnetic encoder components around the gap, pole-pitch and stray-field window described above.
The MU precision disc range spans three pole-pitch series (MU128, MU150, MU200) across 21 standard dual-track models with 32–95 main-track pole pairs and ±0.02 mm concentricity. Disc diameter, track count, poles per track and material can all be customized. Material options include NdFeB for field strength, SmCo for temperature, and bonded magnets for complex shapes, on SUS430 stainless or aluminium carriers. Single-track incremental, multi-track redundant, high-pole-count, and disc or ring geometries for hollow-shaft mounting are also supported.
For linear axes, JC-F magnetic scale is supplied in 50 m rolls with 1, 2 or 5 mm pole pitch and an optional cover strip. Other pitches can be produced on request.
Hall IC matching is handled as part of the design. Magnet geometry, grade and magnetization pattern are selected against the target IC's input range and the temperature span so the output stays linear in service.
Rapid prototyping in 3–7 days lets you check sample discs or scale segments in your own housing, including gap, runout and stray-field conditions, before committing to production.
Next Steps for Your Encoder Selection
- Map the environment of each axis: coolant, oil, dust, chip type (ferrous or non-ferrous), condensation risk and the temperature range at the encoder location.
- Build a tolerance stack for gap and concentricity. Compare it with the pole pitch using the scaling, with as one-pole width, and the vernier margin of roughly .
- Survey stray magnetic fields near an MU disc, including brakes, motors and magnetic fixtures, against the 1 mT and 20 mT thresholds.
- Visit https://www.aicmagnetics.com to contact AIC Engineering for a free consultation on custom magnetic circuit design, encoder disc and scale specification, Hall IC matching, and 3–7 day rapid prototyping for your industrial axis.
References
- Furlani, E. P. Permanent Magnet and Electromechanical Devices: Materials, Analysis, and Applications. Academic Press,
- Mallinson, J. C. "One-sided fluxes — a magnetic curiosity?" IEEE Transactions on Magnetics, vol. 9, no. 4, pp. 678–682,
- IEC
- Degrees of protection provided by enclosures (IP Code). International Electrotechnical Commission.
- AIC Engineering Ltd. Product information: MU-series precision discs and JC-F linear magnetic scales. https://www.aicmagnetics.com
