Troubleshooting
Why an SSI encoder position stays at zero on an EtherCAT module
Short answer
A position value frozen at zero while the shaft turns means the EtherCAT module is not decoding the SSI frame. The even/odd status reply proves the cyclic data path works, so the fix is matching the encoder's frame length, code and clock rate in the module's startup configuration object, not sweeping the control word.

On this page
An absolute encoder's SSI position word that sits at 0 while the shaft turns is not reporting the shaft. It is reporting that the module is not decoding the frame. In the case this article works through, an SSI input module on EtherCAT held Input_process_data.SSI_Position at zero through every rotation, and writing the control word only changed the status word. The fix was the module's SSI startup configuration: frame length, code and clock rate matched to the encoder datasheet through startup configuration object 0x0080, described in the S20-SSI-AO module datasheet. Below is what each symptom establishes, the arithmetic that pins the fault to configuration, and the steps that correct it.
What each observed symptom establishes #
Separate what you saw from what it proves, cheapest check first:
- Position jumped from 63 to 0 the moment the encoder was connected. The input image changed when the encoder attached, so the module noticed the data line. It does not prove a frame was ever decoded.
- The green 24 V supply indicator on the module is active. That LED reports the module-side supply. It does not verify voltage at the encoder terminals, and it says nothing about the clock and data lines.
- Even control values between 0 and 255 give status 0; odd values give status 512. A repeatable, single-value response tied to the control word's least significant bit. It does not tell you what that bit means — bit meanings come from the module documentation, not from the number.
- Input_process_data.SSI_Position stays at zero during rotation. The decode never produces a valid position. Zero is the delivered process value, not the shaft's physical position.
Decoding the status reply in the reported case #
This example uses the reported installation: an absolute encoder on an S20 SSI input module over EtherCAT.
Inputs, all from the reported case:
- Control values tried: every whole number from 0 to 255, written to Output_process_data.SSI_Control.
- Status read back on Input_process_data.SSI_Status: 0 for every even control value, 512 for every odd one.
- The status is a binary word, with bit 0 the least significant bit.
Rule, in words: a status response that is exactly one power of two is produced by a single bit — two raised to that bit's position. A response that splits cleanly between even and odd control values follows the control word's least significant bit, bit 0.
Arithmetic:
- 2^9 = 512, so the response is status bit 9.
- 2^0 = 1, so the even/odd split is control bit 0.
Result: flipping control bit 0 flips status bit 9, repeatably, across the EtherCAT cyclic exchange.
Decision: the control write reaches the module and the status change returns, so the process-data path works in both directions. Wiring, bus traffic and the exchange are alive; a decode or configuration fault is the only remaining explanation for the frozen position. From this point, stop testing control values. The next and last check is the SSI startup configuration, and any case with this same repeatable bit-for-bit control-to-status response goes straight there.
Why the module needs the encoder's frame description #
An SSI master clocks the encoder and the encoder shifts out one serial frame per read. A usable position requires agreement on five things: the frame length in bits; the code, binary or Gray; any extra bits such as parity or an error flag; the clock frequency; and the gap, often a monoflop timeout, between frames.
The numbers an engineer checks against are documented, not guessed. One controller vendor's engineering documentation shows configured frame examples of a 25-bit binary frame and a 34-bit Gray-coded frame — frame lengths differ by encoder, so the encoder datasheet is the source. One documented encoder interface offers clock rates of 125 kHz, 250 kHz as the default, 500 kHz and 1 MHz, while one encoder family refreshes its internal position register every 0.15 ms regardless of the master's clock; your encoder's permitted range is in its datasheet. For multiturn encoders the frame also carries the turn count — see how a 13-bit multiturn frame splits into 8192 steps and 8192 turns.
Set the frame too long and the module shifts in idle-line bits after the real data ends. Set it too short and the most significant position bits are cut off. Set the code wrong and Gray read as binary produces unrelated values — see reading a Gray code absolute encoder into a PLC for what that looks like on the inputs. Clock above the encoder's limit and every frame is corrupt. In this case the module held zero throughout: the decode never yielded a frame it would accept, so configuration, not interpretation of a bad value, is the fault.
The fix: the SSI startup configuration in object 0x0080 #
The correction in the reported case was a startup configuration payload matching the encoder, applied through the EtherCAT master's startup transfer of process-data objects. The layout — field sizes, order, permitted values and byte representation — is defined in the S20-SSI-AO module datasheet for object 0x0080; build the byte stream from that layout, not from another module's or another encoder's.
- From the encoder datasheet, record the frame length in bits, the code, the permitted clock range, the timeout between frames, and any parity or error bit the module must handle.
- Back up the current startup entries and cyclic mapping before editing, including whatever your configuration tool already wrote, so the old state can be compared.
- Build the payload for object 0x0080 field by field against the datasheet layout.
- Apply it through the startup mechanism and read the master's startup-transfer result and the module diagnostics for rejected or incomplete writes.
- Set Output_process_data.SSI_Control once, from its documented bit definitions — never from a numeric sweep.
- Leave the analog output alone. The object covers the SSI interface only; the AO function has its own setup.
The transfer works the same way as capturing serial absolute encoder data at machine startup: the master writes startup objects at state transition, so a payload that lives only in an engineering session is lost at the next power cycle. Put it in the startup list.
Proving the position value before the machine uses it #
A changing number is necessary, not sufficient. Accept the fix only after:
- With the machine's energy isolated under your lockout practice, turn the shaft slowly by hand in both directions and record position and status together; movement must produce coherent counts, not zeros or jumps.
- Return to a known mechanical reference and confirm repeatability, direction and scaling against a measured movement.
- Check rollover at the encoder's documented range boundary.
- Confirm the PLC variable mapping matches the configured process-data layout in width and interpretation.
- Power-cycle and verify the startup list re-applies the configuration and valid readings return; if position works only after an engineering-tool session, the configuration never entered the startup list.
The decision, case by case: repeatable bit-for-bit control-to-status response with a frozen position — configure the frame through the startup object. Status responds to nothing at all — check supply at the encoder terminals and the clock and data lines before touching configuration. Position changes but is wrong after a known movement — the frame length or code field, not the clock, is the mismatch.
Questions asked
Why did the position read 63 before the encoder was connected?
63 is six ones in binary (2^6 minus 1). With no encoder driving the data line, the module latched the idle-high line across a six-bit read. An idle value like that is a useful hint that the configured frame length does not match the real encoder frame.
Does the green supply LED prove the encoder is powered?
No. It reports the module-side supply, not the voltage at the encoder terminals or the condition of the clock and data lines. Measure at the encoder terminals under power; a supply that collapses under load freezes the frame while the indicator stays green.
Will the fix survive a power cycle?
Only if the configuration payload sits in the EtherCAT master's startup list, which transfers it at every startup. If position works after an engineering-tool session but returns to zero after a power cycle, the write reached the module's RAM only; add the configuration object to the startup list and power-cycle again to confirm.
Can the clock rate alone freeze the position at zero?
Yes. Clocking faster than the encoder permits corrupts every frame, and a module that never sees a valid frame can hold zero. As a scale check, a 25-bit frame takes 100 microseconds to clock out at 250 kHz. If the encoder datasheet limit is below the module's setting, drop to the next documented rate, for example 125 kHz.