Debugging SSI: Waveforms, Bit Errors and Dropped Frames
Bit width, code format and clock frequency are all set, and the reading is still wrong. That is the moment to stop changing parameters and put a scope on the two wires. SSI only fails in a few ways, and four of them separate cleanly on a screen: no communication, communication with dead data, data that moves but is misaligned, and occasional large jumps. Most stalled sessions are stuck because nobody knows which of those four they are in.
SSI is point-to-point and one-directional, clocked by the master: it sends a burst, the sensor shifts out the absolute position. No node address, no protocol stack. Reading it is therefore simpler than reading a bus — two lines, one clock and one data, and nothing else to look at. The four steps of a frame are covered in SSI frame structure; this article is about separating the failures on a screen.
Hooking up two channels
- CH1 on clock, CH2 on data.A differential probe is preferable; a single-ended probe on one side of the pair still shows shape and bit order, but it cannot reveal common-mode noise. Use the differential probe for setup and hold judgement.
- Trigger on the first falling edge of the clock.The sensor latches on that edge, so triggering there puts the entire frame from latch to last bit on one screen.
- Set the time base to the clock period.At 1000 kBd a bit is about 1 µs, so 25 bits need at least a 25 µs window; at 500 kBd it is 2 µs per bit and 50 µs. Too wide a base squeezes the bits together and hides the misalignment.
- Confirm the clock is running first.Without a clock nothing downstream matters: check that the master is actually outputting pulses, then whether the sensor answers.
Count the clocks first: that number is the configured bit width
Counting the bit length is the easiest step and the one most often skipped. Count the clock pulses in one frame.The total must equal the bit count the sensor was built with — the data-length field of the order code (1 = 25 bits, 2 = 24; see reading the order code).
If the count disagrees with the order, stop looking at waveforms and fix the master setting. The signature is consistent: one clock too many and the extra bit is padding, so the value doubles; one clock short and the LSB is lost, so the reading is half. Neither is intermittent — both are a steady factor of two, which is why they get blamed on the stroke or the resolution.
Four waveform shapes, four directions
| What you see | What it means | Where to look |
|---|---|---|
| Clock pulses present, data line dead | The sensor is not answering | Data pair polarity, broken data wire, sensor supply, magnet outside the active stroke |
| Neither clock nor data | The master is not running or not wired | SSI channel enabled, clock output pins, supply present |
| Data moves but its edges sit on the clock edges | Setup or hold time is short | Cable too long for the clock rate (table below), screen and termination, running alongside power cables |
| No gap between frames | Monoflop time is short | Read interval under 48 µs, master scan set too fast |
The fourth row is the quietest failure: the data looks right and every so often a whole frame is wrong. SSI requires a minimum 48 µs monoflop interval after the burst before the interface returns to idle and accepts the next read. Poll faster than that and the sensor is asked again before it has reset, so the reply may be the tail of the previous frame.
A reading of half or double is not a signal problem
Clean waveform, correct bit order, right number of clocks — and the value comes out exactly half, or exactly double. Stop looking at the screen.That belongs to "bit width does not match the order", it is settled by counting clocks in the previous section, and the criteria are in the two width settings.
Keep that apart from irregular jumping, which is not a fixed factor of two. Irregular means waveform or wiring — read on.
Large jumps: lower the clock first, then check termination, then suspect the code
The order matters; doing it backwards wastes a day.
- Lower the clock rate.The length limit is hard, and running above the table produces random bit errors. Dropping one step is the fastest test.
- Then check screen and termination.Twist each pair, ground the screen at the controller end only; grounding both ends creates a loop and invites the noise in. Whether the far end needs a termination resistor depends on the master's channel.
- Only then suspect the code format.Gray read as binary produces a sawtooth that folds back, not random jumps. Test: run the piston slowly through the full stroke and watch whether the trace regularly turns back. If it does, the format is wrong; if not, it is not.
Cable length and data rate (identical for 162 and 192)
| Cable length | Maximum data rate |
|---|---|
| < 3 m | 1000 kBd |
| < 50 m | 400 kBd |
| < 100 m | 300 kBd |
| < 200 m | 200 kBd |
| < 400 m | 100 kBd |
Minimum clock interval 48 µs. The 162 and the 192 share these numbers — see 162 versus 192. Lowering the rate on a long run is covered in SSI long cable: reduce the clock.
A commissioning sequence you can follow
- Measure the supply.+24 V and 0 V present, then read the LEDs: green on and red off is normal, both on means no magnet detected.
- Look for the clock.Pulses present, amplitude and period sane.
- Count the bits.Clocks per frame against the ordered 25 or 24.
- Check the data edges.Stable near the rising clock edges, not sitting on them.
- Check the frame gap.At least 48 µs between reads.
- Confirm the code format.Slow full stroke, watch for a sawtooth fold-back.
- Drop the clock rate and retest.If the first six pass and jumps persist, one step down.
After these seven, either the fault is located or it is demonstrably not on the SSI link — at which point the mechanics or the supply deserve the attention, not the parameters. Aligning the three settings is in 192 SSI configuration; why the SSI ground reference cannot simply be converted to analog is in output ground and conversion limits. The 192 series is the common choice for this kind of work.
Frequently Asked Questions
Q: Can I judge SSI communication without a scope
You can tell whether the link works, not whether the bits are right. Data arriving and changing with the piston means the link is alive; misalignment, dropped frames and short monoflop intervals are invisible without a trace. A logic analyser suits this better than a scope — it decodes by bit and lists all 25 at once.
Q: Is a differential probe mandatory
No. A single-ended probe on one side of the pair shows shape, bit order and frame gap; common-mode noise and setup/hold margins need the differential probe. Use single-ended to find the direction, then switch for numbers.
Q: The reading is steadily half or exactly double — is that signal quality
No. A steady factor of two almost always means the master's bit count disagrees with the sensor. One clock short drops the LSB and halves the value; one too many reads padding and doubles it. Count the clocks in a frame to settle it.
Q: Data looks right but every so often a whole frame is wrong
Check the interval between reads first. SSI needs at least 48 µs of monoflop time after the burst; poll faster and the sensor is re-asked before it resets, so the reply can carry the previous frame's tail. Widen the master scan to 100 µs or more.
Debugging SSI comes down to stroke, mounting style and output interface.magnetostrictive displacement sensorThe product range lists every series by stroke, mounting style and output interface, and is the practical starting point for selection.
← Back to News







