civil-and-structural-engineering
Encoder Interface Protocols: Understanding Ssi, Biss, Endat, and Other Communication Standards
Table of Contents
The Role of Encoder Interface Protocols in Motion Control
In any automated system that requires precise positioning or velocity control, the encoder acts as the feedback device that tells the controller exactly where the motor shaft or linear axis is. The interface protocol is the language that governs how this position data, along with diagnostic information, is transmitted reliably and quickly. Choosing the wrong protocol can lead to communication errors, poor synchronization, or even system instability. Understanding the underlying principles of each standard allows engineers to match the protocol’s capabilities—such as data rate, robustness, and feature set—with the application’s demands. This article provides a deep dive into the most common encoder interface protocols, including SSI, BiSS, EnDat, and several others, covering their architecture, timing, error handling, and typical use cases.
Serial Synchronous Interface (SSI)
SSI is one of the oldest and most widely deployed encoder interfaces in industrial automation. It was originally developed by Baumer and Heinrich as a simple, low-cost way to transmit absolute position data over a single pair of data wires. Its synchronous nature means that the controller provides a clock signal, and the encoder responds with position data on each clock pulse. This simplicity has made SSI the default choice for countless applications, from packaging machinery to robotics.
SSI Architecture and Operation
An SSI link consists of four conductors: two for power (typically 5–30 VDC) and two for data (a twisted-pair differential signal). Many implementations also include a fifth wire for a common ground. The controller generates a continuous clock signal; after a pause longer than the bit time, the encoder sends a serial data stream. The data frame typically contains a fixed number of bits (commonly 24, 25, or 32) that encode the absolute position, plus optional status and error bits. The clock rate can range from 100 kHz to 2 MHz, with typical values around 1–2 MHz.
SSI Data Frame Structure
The most common SSI data frame for a 25-bit encoder is: 1 start bit (always 0, used for synchronization), 24 data bits (position information in Gray code or binary), and 1 parity or alarm bit (often inverted to indicate a fault). Some encoders use a 12-bit or 13-bit position followed by 8 or more bits of diagnostic information. The controller latches the position after the entire frame has been received. The data is transmitted in Gray code to minimize errors during transitions, though binary formats are also used. The maximum cable length depends on the clock rate: at 1 MHz, cables up to 100 meters are common when using differential line drivers (RS-422).
Advantages and Limitations of SSI
Advantages: SSI is extremely robust against electrical noise due to differential signaling. Its simple two-wire data bus reduces wiring costs. Many controllers have built-in SSI interfaces, making integration straightforward. The protocol also supports daisy‑chaining multiple encoders when using a single master clock.
Limitations: SSI is a unidirectional protocol—data flows only from encoder to controller. It does not allow writing configuration parameters or reading extended diagnostics without additional manufacturer-specific extensions. The data rate is limited compared to newer protocols, and the fixed frame size can waste bandwidth if fewer bits are needed.
Common Applications for SSI
- Linear actuators and screw jacks
- Conveyor systems and material handling
- General-purpose machine tools
- Automated guided vehicles (AGVs) with absolute position feedback
Bidirectional Serial Synchronous (BiSS)
BiSS is an open protocol developed by iC-Haus and supported by a large number of encoder manufacturers. It addresses many of the limitations of SSI by providing a bidirectional communication channel over the same physical wires, enabling the controller not only to read position data but also to send commands, configure the encoder, and retrieve diagnostics. BiSS has become especially popular in servo drives and high‑performance motion control systems.
BiSS C and BiSS B Modes
BiSS C (continuous) is the most common mode. In BiSS C, the master continuously clocks the encoder, and the encoder sends position data in a cycle‑synchronous manner, similar to SSI. However, after the position frame, a configurable number of bits (called “post‑frame”) can be used for bidirectional data exchange. The master can write or read registers during these post‑frame slots. BiSS B (burst) mode is simpler and used less frequently; it transmits data in bursts after a pause, more akin to SSI but still allowing bidirectional communication.
BiSS Data Transmission and Timing
The clock frequency in BiSS C can exceed 10 MHz (typically up to 10 or 20 MHz for short cables). The basic frame includes a start bit, the position data (up to 32 bits), an error bit, a warning bit, and then a variable‑length post‑frame (0–31 bits) where register reads and writes occur. The bidirectional protocol uses a “register‑based” structure: the master addresses a register, the encoder returns its content in the next cycle. This allows real‑time parameter adjustments, such as changing resolution or setting a new zero position, without physically accessing the encoder.
BiSS also incorporates a CRC (Cyclic Redundancy Check) for error detection. The encoder can be configured to send a CRC over the entire frame, and the master verifies it, providing very high data integrity even in electrically noisy environments.
Benefits and Use Cases of BiSS
- High data rate – Suitable for high‑speed axes and multi‑axis synchronization.
- Diagnostic capabilities – Read internal temperature, warning flags, or signal quality.
- Configuration on the fly – Change counting direction, preset values, or set up multispeed modes via software.
- Interoperability – Open standard, many vendors, and free licensing.
BiSS is widely used in CNC machine tools, high‑end packaging lines, printing presses, and robotic joints where both speed and diagnostic access are critical.
Heidenhain EnDat Protocol
EnDat (Encoder Data) is a proprietary digital interface developed by Heidenhain specifically for its high‑precision encoders. It has evolved through versions 2.1 and 2.2 and is now one of the most feature‑rich encoder protocols available. EnDat offers extremely high resolution, robust error handling, and fast data transfer, making it the standard in premium machine tools, linear motors, and high‑precision positioning stages.
EnDat 2.1 vs. EnDat 2.2
EnDat 2.1 is the earlier version, supporting clock rates up to 2 MHz and a data frame of up to 32 bits for position, plus an additional 8 bits for diagnostic information (such as temperature, signal amplitude, and operating status). EnDat 2.2 is backward‑compatible but introduced higher clock rates (up to 16 MHz with short cables) and a longer data frame that can contain up to 64 bits of position data, plus extended diagnostics and parameter data. EnDat 2.2 also supports a “cyclic” mode where velocity and current control loops can be synchronized with the encoder data.
EnDat Data Frame and Error Handling
The EnDat frame begins with a start bit, followed by the position data in binary or Gray code. After the position, a configurable block of additional bits carries the incremental track data (for interpolation), status bits, and optional manufacturer‑specific information. A CRC is included at the end of the frame to detect transmission errors. If a CRC mismatch occurs, the controller can request a retransmission without disturbing the absolute position reading. Additionally, the encoder can signal an error condition (e.g., light source failure, over‑temperature) via dedicated alarm bits, and the controller can read detailed fault codes using register commands.
High-Resolution Position Feedback
EnDat encoders can achieve resolutions down to the nanometer range, thanks to the combination of absolute position tracks and highly interpolated incremental signals. The interface supports both single‑turn and multi‑turn absolute encoders, with multiturn counts reaching 4096 revolutions or more. The high data rate and low latency make EnDat ideal for direct drives and axes with high dynamic demands.
Applications and Integration
EnDat is predominant in the machine tool industry (lathes, milling machines, grinders) from Heidenhain, but also used with other manufacturers’ controllers who license the protocol. It is also common in semiconductor manufacturing equipment, metrology, and any application requiring sub‑micron accuracy. The Heidenhain website provides extensive technical resources, including detailed specifications for EnDat 2.2.
Other Communication Standards
While SSI, BiSS, and EnDat dominate the point‑to‑point encoder space, many industrial automation systems integrate encoder data into fieldbuses and networks. The following standards are also important.
HIPERFACE
Developed by SICK Stegmann, HIPERFACE (High Performance Interface) is a serial protocol that transmits absolute position and velocity over a two‑wire bus while also providing voltage to the encoder. It uses a combination of sinusoidal incremental signals (A, B) and RS‑485 for serial data. The protocol supports encoder configuration and diagnostics, and is common in servo drives from several European manufacturers. Its primary advantage is the reduction of cable count to four wires (power and data combined).
DRIVE-CLiQ
DRIVE-CLiQ is Siemens’ proprietary interface for connecting encoders, motors, and other components to Sinamics drives. It is based on Ethernet physical layer (100 Mbps) and uses a ring or star topology. DRIVE‑CLiQ supports very high data rates, real‑time behavior, and plug‑and‑play identification of connected devices. It is mandatory for all Siemens high‑performance drives and is widely used in automotive production lines and heavy machinery.
PROFIBUS and CANopen
These are fieldbus protocols where the encoder acts as a slave on the network. PROFIBUS uses RS‑485 at up to 12 Mbps, while CANopen uses CAN bus at 1 Mbps. Both allow multiple devices to share the same cable, but they add latency due to bus arbitration and message scheduling. They are typically used in applications where many encoders need to be monitored over long distances, such as in material handling systems or large assembly lines. The PROFIBUS User Organization provides detailed documentation on encoder profiles.
EtherCAT and IO-Link
EtherCAT is a high‑speed industrial Ethernet protocol that can integrate encoder data as part of a distributed network. Special EtherCAT encoders exist that stream position data directly onto the EtherCAT network segment, achieving cycle times as low as 31.25 µs. IO‑Link is a point‑to‑point standard primarily used for sensors and actuators, but some encoders implement IO‑Link for parameterization and diagnostics, though data rates (230 kbps) are far lower than dedicated encoder protocols.
Comparing Encoder Protocols: Key Selection Criteria
When choosing an encoder interface, engineers must evaluate several factors:
- Required data rate and update time – High‑speed axes demand protocols like BiSS C, EnDat 2.2, or DRIVE‑CLiQ. For slow‑moving mechanisms, SSI or CANopen may suffice.
- Diagnostic and configuration need – If you need to read temperature, set zero, or adjust parameters remotely, choose BiSS or EnDat. SSI offers minimal diagnostics.
- Cable length and topology – SSI and BiSS can go over 100 m at moderate clock rates. EtherCAT and DRIVE‑CLiQ are limited to ≈100 m per segment. Fieldbuses like PROFIBUS can extend many kilometers with repeaters.
- System compatibility – Many controllers have dedicated hardware for EnDat (Heidenhain) or BiSS. If your existing drive ecosystem uses Siemens, DRIVE‑CLiQ is natural. For simple PLCs, SSI or IO‑Link might be easiest.
- Cost – SSI encoders are the least expensive; BiSS and EnDat add a premium for the extra features. Fieldbus encoders require a bus coupler or specialized controller interface.
- openness and future-proofing – BiSS is open and vendor-neutral, while EnDat and DRIVE‑CLiQ are proprietary to specific drives. However, many drive manufacturers offer multiple interface options.
Troubleshooting Common Encoder Interface Issues
Even with a well‑chosen protocol, communication problems can arise. Here are typical issues and solutions:
- No data or erratic readings – Check power supply voltage and current. a long cable may cause voltage drop at the encoder. Use a differential line driver (RS‑422) for long runs. Verify termination resistors (120 Ω) on the data line.
- CRC or parity errors – Electrical noise is the most common culprit. route cables away from motor power cables, use shielded twisted‑pair (STP), and ensure the shield is grounded at one endpoint. Add ferrite cores if needed. Reduce clock frequency if possible.
- Intermittent faults during acceleration – The encoder may be losing synchronization due to electrical or mechanical disturbances. Check the mechanical coupling—backlash or vibration can cause transient errors. Some protocols (e.g., BiSS) allow reporting of “signal amplitude” diagnostics to detect a weakening light source in optical encoders.
- Configuration not retained after power‑off – Some protocols (like BiSS) require non‑volatile memory in the encoder. Ensure the encoder type supports permanent storage of parameters. For SSI, there are no configuration registers.
- Update time too slow – If the controller’s clock speed is capped (e.g., 500 kHz on some PLCs), the encoder’s maximum data rate cannot be achieved. Consider switching to a protocol with higher native speed, or reduce the number of bits transmitted if the controller allows variable frame length.
Conclusion
Encoder interface protocols form the backbone of precision motion control. SSI remains a reliable workhorse for simple absolute feedback, while BiSS and EnDat bring advanced features like bidirectional communication, high speed, and comprehensive diagnostics. Other standards such as HIPERFACE, DRIVE‑CLiQ, and fieldbus protocols extend the reach of encoder data into complex networked systems. By understanding the strengths and limitations of each protocol, system designers can select the most appropriate interface to meet the demands of accuracy, speed, maintainability, and total cost of ownership. As industrial automation continues to evolve, these communication standards will keep adapting to provide even higher performance and deeper integration.