Bu formu kullanarak benimle iletişime geçebilirsiniz.
Content
- 1 What Is a Double Code Magnetic Encoder?
- 2 How the Dual-Track Magnetic Coding Principle Works
- 3 Key Components Inside a Double Code Magnetic Encoder
- 4 Double Code vs. Single Code Magnetic Encoders: A Direct Comparison
- 5 Resolution and Accuracy: What the Numbers Actually Mean
- 6 Advantages of Double Code Magnetic Encoders Over Optical Alternatives
- 7 Typical Applications Where Double Code Magnetic Encoders Excel
- 8 Output Signal Formats and Communication Interfaces
- 9 Installation Best Practices for Double Code Magnetic Encoders
- 10 Troubleshooting Common Double Code Magnetic Encoder Problems
- 11 Selecting the Right Double Code Magnetic Encoder for Your Application
- 12 Emerging Trends in Magnetic Encoder Technology
What Is a Double Code Magnetic Encoder?
A double code magnetic encoder is a position-sensing device that uses two independent magnetic code tracks — typically arranged on a single magnetic ring or strip — to generate two simultaneous signal channels for motion feedback. Unlike single-track encoders, the double code configuration provides redundant or complementary output signals, enabling higher resolution, improved noise immunity, and fault-detection capability within one compact unit. These encoders are widely used in servo motors, robotics, industrial automation, and medical equipment where precise angular or linear position data is non-negotiable.
In practical terms, a double code magnetic encoder works by magnetizing a ferromagnetic ring or tape with two separate pole patterns. A pair of Hall-effect sensors or magnetoresistive (MR) sensor elements reads both tracks simultaneously, producing two offset quadrature signals (typically 90° phase-shifted) or one incremental and one absolute channel. The signal processing IC then interprets these combined outputs to calculate speed, direction, and exact position — often achieving resolutions from 256 to over 4096 pulses per revolution (PPR) in a footprint no larger than a standard single-track unit.
How the Dual-Track Magnetic Coding Principle Works
The core operating principle of a double code magnetic encoder revolves around two magnetically patterned tracks that are physically offset from each other. Each track carries an alternating north-south pole pattern, but the pole spacing or phase of the two tracks differs by a precisely controlled amount — commonly a quarter-pole pitch, equivalent to a 90° electrical phase difference.
Magnetic Track Layout
Track A carries the primary incremental pattern, while Track B is offset by 90° electrical degrees. When the encoder ring rotates, both sensor elements output sinusoidal or square wave signals. The phase relationship between A and B signals lets the electronics determine:
- Rotation direction (clockwise or counterclockwise)
- Incremental position count (rising and falling edges from both channels)
- Speed derived from pulse frequency
- Fault detection when A and B signals become inconsistent
Absolute and Incremental Dual-Channel Variants
Some double code magnetic encoders combine an incremental track with an absolute track rather than two incremental tracks. The incremental track generates high-frequency pulses for fine resolution, while the absolute track — carrying a unique binary or Gray code pattern across its full circumference — provides a reference position without requiring a homing cycle after power-up. This hybrid design is increasingly popular in collaborative robot joints and CNC rotary axes, where losing position during an e-stop or power cut is unacceptable.
The signal conditioning ASIC inside the encoder head interpolates the analog sine-cosine outputs from both tracks, often achieving electrical resolutions 16× to 1024× higher than the raw pole-pair count on the magnetic ring. A 64-pole-pair ring, for example, can deliver over 65,000 counts per revolution after 1024× interpolation.
Key Components Inside a Double Code Magnetic Encoder
Understanding what makes up a double code magnetic encoder helps engineers select the right model and troubleshoot in the field. The assembly is deceptively simple in appearance but relies on tightly controlled manufacturing tolerances across every layer.
| Component | Material / Type | Function | Typical Spec |
|---|---|---|---|
| Magnetic Ring / Strip | Rubber ferrite or sintered NdFeB | Carries two magnetized pole patterns | 32–512 pole pairs, OD 20–200 mm |
| Sensor Array | Hall-effect or AMR/GMR elements | Reads A and B track signals simultaneously | Air gap 0.3–1.5 mm |
| Signal Conditioning ASIC | Custom mixed-signal IC | Interpolation, error detection, output formatting | Up to 1024× interpolation |
| Output Interface | RS-422, TTL, SPI, SSI, BiSS-C | Transmits position/speed data to controller | Up to 10 Mbit/s (BiSS-C) |
| Housing / Bearing | Stainless steel or aluminium alloy | Mechanical alignment and sealing | IP65–IP67 typical |
The sensor-to-ring air gap is a critical parameter. Most double code magnetic encoders specify an optimal gap of 0.5 ± 0.2 mm. Exceeding 1.5 mm causes signal amplitude to drop below the ASIC's threshold, producing missed counts or erratic direction detection. Conversely, reducing the gap below 0.2 mm risks mechanical contact and ring wear, especially on high-speed spindles running above 10,000 RPM.
Double Code vs. Single Code Magnetic Encoders: A Direct Comparison
Engineers frequently ask whether the added complexity of a double code magnetic encoder justifies the cost premium over a conventional single-track unit. The answer depends heavily on application requirements — but in demanding environments, the differences are substantial.
| Feature | Single Code Magnetic Encoder | Double Code Magnetic Encoder |
|---|---|---|
| Output Channels | 1 (A only) | 2 (A + B, 90° offset) |
| Direction Detection | Not possible | Standard feature |
| Effective Resolution (same ring) | N pulses/rev | 4N pulses/rev (quadrature decoding) |
| Fault Detection | Limited | Cross-channel comparison built-in |
| Noise Immunity | Moderate | High (differential signaling between channels) |
| Cost | Lower | 10–30% higher typical |
| Typical Application | Simple speed sensing, fan control | Servo drives, robotics, precision CNC |
The quadrature decoding advantage deserves emphasis. With both A and B channels active, the controller can decode all four signal transitions per electrical cycle — rising edge of A, rising edge of B, falling edge of A, and falling edge of B. This multiplies effective resolution by 4× without changing the physical ring. A ring magnetized with 512 pole pairs yields 1,024 raw pulses per revolution from a single track, but 4,096 counts per revolution when both channels are quadrature-decoded — matching or exceeding many optical encoders at a fraction of the cost and with far better contamination resistance.
Resolution and Accuracy: What the Numbers Actually Mean
Resolution and accuracy are related but distinct parameters for a double code magnetic encoder, and confusing them leads to poor system design choices.
Resolution
Resolution is the smallest position increment the encoder can distinguish. For a double code magnetic encoder with 256 pole pairs and 4× quadrature decoding, resolution is:
360° ÷ (256 × 2 × 4) = 0.176° per count
Add 256× internal interpolation by the ASIC and that drops to approximately 0.00069° per count — well into the territory of high-end optical systems.
Accuracy
Accuracy is how closely the reported position matches the true physical position. This is governed by:
- Pole-pair uniformity — variation in magnetization pitch across the ring introduces periodic position error, typically ±0.1° to ±0.5° for standard rubber-ferrite rings
- Eccentricity error — off-center mounting adds a once-per-revolution sinusoidal error; ±0.05 mm radial runout at a 30 mm ring radius introduces roughly ±0.1° peak position error
- Interpolation nonlinearity — imperfect sine wave shape from the sensor introduces sub-division error, commonly ±1 LSB for quality ASICs
- Temperature drift — magnetic remanence of ferrite drops roughly 0.19%/°C, shifting signal amplitude over temperature; the ASIC's AGC (automatic gain control) compensates for most of this
Premium double code magnetic encoders targeting servo applications achieve overall system accuracy of ±0.05° or better, while economy grades for conveyor drives may sit at ±0.5°. Always check the datasheet for both resolution and accuracy specs — they are rarely the same number.
Advantages of Double Code Magnetic Encoders Over Optical Alternatives
Optical encoders have long dominated precision motion control, but double code magnetic encoders have closed the performance gap significantly while retaining inherent environmental advantages that optical designs cannot match.
Contamination Resistance
Optical encoders use a glass or plastic code disk that fails immediately when contaminated with cutting fluid, grease, or metal swarf. A magnetic encoder ring has no optical path to obstruct. Coolant and dust that would destroy an optical disk simply have no effect on the magnetic pole pattern. In machine tool spindles where flood coolant is standard, magnetic encoders can outlast optical units by 5× or more in mean time between failures.
Mechanical Robustness
Glass code disks shatter under shock loads above 50–100 g. Rubber-ferrite magnetic rings tolerate shock loads exceeding 300 g (11 ms half-sine) without damage, making double code magnetic encoders the default choice in construction equipment, agricultural machinery, and any application subject to hard knocks during operation or transport.
Non-Contact Air-Gap Operation
The sensor head never touches the magnetic ring. This means zero wear on the sensing element regardless of shaft speed or cycle count. An optical encoder's LED source degrades over time — typically losing 50% luminous flux after 50,000–100,000 hours, reducing signal margin in high-resolution applications. A magnetic encoder has no such wear-out mechanism in the sensing element itself.
Wide Temperature Range
Double code magnetic encoders routinely operate from -40°C to +125°C. Optical encoders with plastic code disks are typically limited to -20°C to +85°C due to thermal expansion mismatch between the disk substrate and hub materials. In automotive under-hood and outdoor energy applications, this 40°C advantage in upper operating temperature is decisive.
Compact Ring Form Factor
Because the magnetic ring can be bonded directly onto the motor shaft or rotor hub with no additional bearing, double code magnetic encoders achieve axial lengths as short as 8–12 mm for the complete sensing system. Equivalent hollow-shaft optical encoders typically need 20–40 mm of axial space, making the magnetic solution valuable in compact servo motor designs where every millimeter of shaft length is contested.
Typical Applications Where Double Code Magnetic Encoders Excel
The combination of dual-channel quadrature output, ruggedness, and wide environmental tolerance makes double code magnetic encoders the preferred feedback device across a diverse range of industries.
Servo Motor Feedback
Brushless DC servo motors for CNC machining centers, pick-and-place robots, and semiconductor handling equipment use double code magnetic encoders as primary position feedback. The two-channel output interfaces directly with standard servo drives expecting quadrature (A/B) incremental signals plus an index pulse (Z channel). Resolutions of 4,096 to 32,768 counts per revolution are standard in this segment, with some high-end motor encoders pushing to 131,072 CPR using high-pole-count rings and deep interpolation.
Collaborative and Industrial Robots
Each joint in a six-axis collaborative robot arm requires compact, reliable position feedback. Double code magnetic encoders fit inside the joint housing with minimal axial space consumption and tolerate the vibration and occasional mechanical shock inevitable in robot operation. The cross-channel fault detection capability of the dual-track design supports the IEC 61800-5-2 SIL 2 safety requirements increasingly mandated for collaborative robots operating alongside humans.
Wind Turbine Pitch and Yaw Control
Wind turbines operate in environments ranging from arctic cold to desert heat with constant vibration from blade rotation. Optical encoders degrade rapidly in these conditions. Double code magnetic encoders on pitch drives and yaw systems can run maintenance-free for over 20 years under typical wind farm duty cycles — a critical factor given the cost of tower access for maintenance.
Medical and Laboratory Equipment
MRI-compatible versions of double code magnetic encoders use non-ferrous housings and specially formulated magnetic materials to minimize interference with the scanner's magnetic field. Surgical robots and radiotherapy positioning tables use these encoders for joint feedback where the combination of cleanliness, compact size, and dual-channel reliability is essential.
Elevator and Crane Hoisting Systems
Safety standards for passenger elevators and overhead cranes require redundant speed and position monitoring. A double code magnetic encoder provides two independent speed signals from a single physical unit, reducing installation cost compared to mounting two separate encoders while meeting EN 81-20 and ISO 4301 redundancy requirements.
Output Signal Formats and Communication Interfaces
A double code magnetic encoder's value to a system designer depends heavily on how its two-channel signal is formatted and transmitted. Different applications call for different interface standards, and most modern encoders offer multiple output options.
- TTL/RS-422 Quadrature (A, /A, B, /B, Z, /Z): The most universal incremental output format. Differential line drivers reject common-mode noise on cable runs up to 50 meters at frequencies up to 1 MHz. Compatible with virtually all motion controllers and PLCs.
- Sin/Cos Analog (1 Vpp): Outputs raw sine and cosine signals from both tracks without onboard interpolation, allowing the drive or controller to perform high-resolution interpolation (up to 65,536×) in its DSP. Common in premium servo systems from Siemens, Heidenhain, and Fanuc.
- SSI (Synchronous Serial Interface): Transmits absolute position as a Gray-coded or binary serial word, typically 13–25 bits wide. A clock from the controller clocks out the data — simple, reliable, and deterministic with cycle times under 10 µs.
- BiSS-C: An open-standard bidirectional serial interface running at up to 10 Mbit/s. Transmits position, speed, temperature, and diagnostic data simultaneously. The encoder also receives configuration commands from the drive — allowing real-time calibration and parameter adjustment without physical access.
- EnDat 2.2: Heidenhain's proprietary serial protocol, widely used in European machine tool and robot applications. Supports absolute position plus diagnostic flags, with cycle times as short as 1.6 µs for high-speed control loops.
- Hiperface DSL: A single-cable interface that combines power supply and data on two wires — simplifying cable routing in motor designs where space in the connector zone is minimal.
When selecting the interface for a double code magnetic encoder, consider latency requirements. A servo loop running at 20 kHz needs position data delivered and processed within 50 µs per cycle. BiSS-C and EnDat 2.2 both meet this easily; legacy SSI at slow clock speeds may not without careful configuration.
Installation Best Practices for Double Code Magnetic Encoders
Even the best double code magnetic encoder delivers poor results if installed incorrectly. The following guidelines reflect common failure modes seen in field installations.
Air Gap Setting
Use a non-magnetic feeler gauge to set the air gap between the sensor head face and the magnetic ring surface. Most manufacturers specify 0.5 mm ± 0.2 mm. Check the gap at multiple angular positions to detect ring runout. If total indicated runout exceeds 0.3 mm, the ring mounting interface or shaft needs correction before proceeding.
Magnetic Interference
Strong external magnetic fields from permanent magnet motors, solenoids, or inductive brakes can corrupt the encoder signal. Maintain a minimum separation of 20 mm between the encoder ring and any permanent magnet assembly. If installation geometry makes this impossible, use an encoder housing with an integrated magnetic shield (typically a soft iron or mu-metal shroud).
Ring Magnetization Orientation
Double code magnetic encoder rings are magnetized with the dual-track pattern on a specific face — usually the face closest to the sensor head mounting surface. Installing the ring backwards (wrong face toward the sensor) produces either no output or a corrupted single-channel signal. Mark the sensing face clearly during assembly and document it in the installation procedure.
Cable Shielding and Grounding
Route encoder cables away from power cables carrying motor drive PWM currents. If parallel routing is unavoidable, maintain at least 100 mm separation and use individually shielded twisted pairs for A/B/Z channels. Ground the cable shield at the controller end only — grounding at both ends creates a ground loop that can introduce more noise than it eliminates.
Thermal Considerations During Break-In
After installation, bring the machine to operating temperature before recording the final calibration offset or homing position. Steel motor housings and aluminium ring hubs expand at different rates — in a motor that runs at 80°C steady-state, the air gap can shift by ±0.05–0.1 mm from cold to hot. For systems requiring absolute accuracy better than ±0.1°, perform final calibration at operating temperature.
Troubleshooting Common Double Code Magnetic Encoder Problems
When a double code magnetic encoder malfunctions, the two-channel architecture actually simplifies diagnosis because the relationship between A and B signals carries diagnostic information.
- Count direction reversal: If the controller reports position moving in the wrong direction, the A and B channel wires are swapped, or the ring is spinning in the direction defined as reverse in the drive configuration. Swap A and B at the connector or invert the direction parameter in the drive — never rearrange internal encoder wiring.
- Erratic counts at low speed: Usually caused by excessive air gap allowing the signal to drop near the ASIC's detection threshold. Vibration causes the gap to fluctuate and the sensor to intermittently lose track. Reduce the air gap to the nominal value and recheck.
- Position error growing with speed: Indicates the encoder's maximum output frequency is being exceeded. A 1,024 PPR encoder with 4× decoding produces 4,096 pulses per revolution. At 3,000 RPM, that is 204,800 Hz — within TTL/RS-422 limits. At 30,000 RPM, it becomes 2,048,000 Hz, which exceeds many driver ICs. Switch to a serial absolute interface (BiSS-C or EnDat) for high-speed applications.
- Periodic position error (once per revolution): Classic symptom of ring eccentricity or a damaged pole pair. Plot the position error across one full revolution — a sinusoidal error indicates mechanical eccentricity; a localized spike indicates a demagnetized or damaged section of the ring. The ring must be replaced if a pole is damaged.
- Encoder fault flag active on the drive: Many drives connected to BiSS-C or EnDat encoders display a fault when the encoder's internal diagnostics detect a problem. Check the encoder's status register via the serial interface before assuming the drive or cable is at fault.
Selecting the Right Double Code Magnetic Encoder for Your Application
With dozens of manufacturers and hundreds of variants available, narrowing down the right double code magnetic encoder requires a structured evaluation process. Work through these parameters in order:
- Shaft diameter and ring bore: The ring must fit the shaft with an interference fit or adhesive bond. Standard bore sizes range from 6 mm to 120 mm; custom bores are available from most manufacturers for volumes above 500 units/year.
- Required resolution: Calculate the minimum counts per revolution needed from your position accuracy target and gear ratio. Add a safety margin of at least 4× to allow the control loop to work comfortably without quantization noise dominating the feedback signal.
- Maximum speed: Verify the encoder's maximum shaft speed and maximum output frequency both accommodate your application's peak speed with margin.
- Operating environment: Identify temperature range, contamination exposure (IP rating requirement), vibration level, and presence of strong external magnetic fields. These define whether a standard industrial or ruggedized variant is needed.
- Interface compatibility: Confirm the encoder's output signal matches your drive or controller's input — voltage levels, line driver type, and protocol. Mismatches at this stage are the most common source of integration delays.
- Safety requirements: If the application falls under functional safety regulations (machinery directive, ISO 13849, IEC 61508), confirm the encoder's SIL or PL rating and whether its dual-channel output architecture is certified for use in a safety-related control function.
Leading manufacturers of double code magnetic encoders include RLS (Renishaw subsidiary), Sensitec, Bourns, Posital-Fraba, Heidenhain (Acuro series), and Kübler. Each publishes detailed selection guides and, increasingly, online configurators that filter their catalog by the parameters above — use these tools to generate a shortlist, then request samples for bench validation before committing to a production design.
Emerging Trends in Magnetic Encoder Technology
The double code magnetic encoder field is not static. Several technology directions are actively pushing the performance envelope beyond what was achievable even five years ago.
Giant Magnetoresistance (GMR) Sensors
Traditional Hall-effect sensors have largely given way to anisotropic magnetoresistance (AMR) sensors in high-end double code magnetic encoders. The next generation uses GMR sensors, which offer sensitivity 10–20× higher than AMR and can operate at larger air gaps or with lower-flux magnetic rings — enabling thinner ring designs and wider manufacturing tolerances without sacrificing signal quality.
Integrated Motor-Encoder-Drive Packages
Motor manufacturers are integrating the double code magnetic encoder ring directly onto the rotor lamination stack during motor assembly, with the sensor head embedded in the end cap. The result is a complete feedback loop inside the motor can — eliminating external encoder housings, separate cabling, and alignment steps. These integrated servo motors with built-in magnetic encoders are 25–40% shorter axially than conventional motor-plus-external-encoder assemblies.
On-Chip Condition Monitoring
Modern signal conditioning ASICs in double code magnetic encoders now embed temperature sensors, vibration monitors (MEMS accelerometers), and signal-quality metrics that are transmitted alongside position data via BiSS-C or industrial Ethernet protocols. This makes the encoder a node in the machine's predictive maintenance system, flagging bearing wear, misalignment growth, and contamination ingress weeks before failure — rather than at the moment of breakdown.
Multi-Turn Absolute Without Battery
Conventional multi-turn absolute encoders use a battery-backed counter or a mechanical gear train to track shaft position across power cycles. A new generation of double code magnetic encoders uses energy harvesting from the rotating magnetic ring to power a low-energy counter chip during power-off periods — eliminating the battery entirely. These batteryless multi-turn absolute encoders are entering production with multi-turn ranges of up to 4,096 revolutions and are positioned to replace battery-backed designs in applications where battery maintenance is impractical.



English
Français
Español
+86 19941472007