How-to
Capturing Serial Absolute Encoder Data at Machine Startup
Short answer
A terminal board cannot read an absolute encoder's startup position until the amplifier's own interface document pins down the levels, the master, the request/reply timing and the framing. Verify those, decode one axis, validate it against a known move, then replicate the channel to all four axes.

On this page
- Separate the capture from the coordinate restore
- What ASCII, parity and stop bits do not tell you
- Read the timing diagram before buying anything
- Worked example: turning the annotation into a bit-rate decision
- Verify the interface, then choose the capture hardware
- Prove one axis, then four
- Initialize the controller and the software from one reference
- Questions asked
No terminal board captures an absolute encoder's startup position by itself. The position leaves a servo amplifier only through the transaction the amplifier's own interface document defines: the electrical levels, which device initiates, the request-and-reply timing, and the character framing. Get those on paper, build one capture channel, decode one axis, prove it against a known move, then replicate it to four. Two details already mislead buyers here: ASCII with parity and stop bits describes character framing, not voltage levels or who talks first; and a microsecond-scale annotation on a timing diagram carries a meaning that depends on what it labels — not a streaming update rate you can poll.
Separate the capture from the coordinate restore #
Getting a number onto a computer and restoring a machine coordinate are different jobs. The first needs a compatible receiver and a valid transaction. The second also needs axis assignment, scaling, a reference offset and controller synchronization: a macro that writes a value into a displayed coordinate field does not initialize the motion controller's position state.
Many of these encoders run in either incremental or absolute mode, and the selected mode plus its wiring decide whether startup data exists on the connector at all. Confirm the mode setting before designing the capture. What the encoder reports at power-up is only as good as its backup — battery-backed designs, or stored-energy designs that keep recording turns through a power loss — and whether servo motor absolute encoders are really battery-backed settles that side of the question.
What ASCII, parity and stop bits do not tell you #
ASCII is a character code; parity and stop bits are character-framing settings. Neither states voltage levels, single-ended versus differential signaling, pin assignments, or which device initiates. Absolute encoder interfaces differ exactly there: SSI is a synchronous protocol with separate clock and data connections, SPI and RS-485 links are common alternatives, some encoder-to-drive serial links run on four wires, and on bus-style protocols the host is the master that polls each device. Character-layer details narrow none of that.
A signal name does not establish a function either. A line called SEN on the amplifier's encoder connector may carry the data, or it may only control a transfer with the data on other pins. Reading the pin table against the timing diagram is the same discipline as matching encoder signal names between motor and servo drive, and it comes before any receiver is chosen.
Read the timing diagram before buying anything #
The symbol µs means microseconds; the reported figure of 40 µs equals 0.000040 s, and this is the one place that value is stated. What matters is what the annotation labels. A delay means you wait it out. A bit interval fixes the line rate. The period of a complete transfer would make the output a stream rather than a transaction, and streams and transactions need different receivers.
| What the document states | What it decides |
|---|---|
| Direction and function of the SEN line | Whether you need a control output as well as a receiver |
| What the microsecond annotation labels | Whether any bit rate follows from it at all |
| Character framing: data bits, parity, stop bits | The receiver's serial settings |
| Message structure | How software recognizes a complete position: fields, sign, status, integrity check |
| Absolute or incremental mode selection | Whether startup data exists on this connection |
Write down one complete transaction before any hardware decision: trigger, required delay, response path, message format, completion condition. Never fill a missing timing value with a terminal program's default; take the figure from the document or from the manufacturer, and leave it unresolved until you have it.
Worked example: turning the annotation into a bit-rate decision #
Inputs, with sources:
- The timing annotation given above, as marked on the amplifier's absolute-data timing diagram (the installer's reported figure).
- The unit relation: bit rate = 1 / bit time.
- The standard serial rates that bracket the result: 19,200 and 38,400 baud.
- The channel count for this machine: 4.
Rule in words: if the annotation marks one bit interval, the line rate is one divided by that interval, and the two nearest standard rates show how far a fixed-baud receiver lands from it.
Arithmetic:
- The annotated interval, converted: 0.000040 s
- 1 / 0.000040 s = 25,000 bits per second, i.e. 25 kbaud
- At 19,200 baud, the bit time is 1 / 19,200 s = 52.1 µs — about 30% longer than the annotated interval
- At 38,400 baud, the bit time is 1 / 38,400 s = 26.0 µs — about 35% shorter
- If the annotation were instead the period of one complete position message: 25,000 messages/s on one axis, and 25,000 × 4 = 100,000 messages/s across the machine
This is a calculated example for these inputs, not a measured line rate.
Decision: a UART keeps its mid-bit sampling only when sender and receiver rates match to a few percent — a common rule of thumb is 2%. Both standard rates miss by 30 to 35%, an order of magnitude past any tolerance. So if the annotation marks a bit interval, the capture hardware needs a programmable bit rate: a microcontroller or FPGA front end, not a fixed-baud USB serial adapter. If it marks a delay or pulse width inside a request-and-reply transaction, no bit rate follows from it at all, and startup means reading one completed reply from each axis rather than polling 100,000 messages a second. Read what the annotation labels before buying hardware either way.
Verify the interface, then choose the capture hardware #
- Record the motor, encoder and amplifier models from their nameplates and pull the matching wiring and absolute-position interface documents.
- From the pin table, establish the SEN line's direction and electrical characteristics and the pins that actually carry data; confirm both against the timing diagram.
- Write the complete transaction — trigger, delay, reply path, frame, completion condition — and fill it only with documented values.
- Check whether the installed motion controller already supports absolute initialization for this encoder family; if it does, use that path. Acquisition inside the motion system beats a bolt-on reader.
- If it does not, the capture device needs receivers matched to the documented levels, any request outputs the transaction requires, timing that meets the diagram, and a host interface your software can call — with four independent channels, or a documented switching arrangement that preserves axis identity.
- Confirm the drive manufacturer permits monitoring taps on those lines and check receiver loading; the servo's own feedback connection stays untouched.
Prove one axis, then four #
- Inhibit axis motion and follow the machine's lockout practice while wiring and testing the capture channel.
- Wire one channel to the identified interface and configure the documented framing and request sequence.
- Capture the complete reply, status fields and delimiters included, and reject anything truncated.
- Decode with the documented field order, sign convention and units; repeat the read with the axis stationary until it returns repeatable values.
- Move the axis a known, measured distance, stop, read again, and check the change and its sign against the measured move.
- Replicate to the remaining axes only after step 5 passes, and run the same known-move test on each channel independently — identical hardware does not prevent swapped wiring or reversed assignments.
Readable digits are not validation. A truncated frame or an inverted sign still produces a plausible number, which is why the known-move test is the gate for every channel.
Initialize the controller and the software from one reference #
Convert the decoded count with one expression:
machine position = direction sign × (absolute count − reference count) / counts for each machine unit
Take the counts for each machine unit from the feedback resolution multiplied by the mechanical ratio between encoder and axis, and take the reference count at the same mechanical datum you will re-establish at every startup. Load the motion controller's position state first, then let the display software adopt the number. On a gantry, both axes must adopt references consistent with the frame's mechanical squareness — aligning a gantry at startup with absolute encoders covers that check. Keep automatic absolute initialization disabled until the channel passes its known-move validation; until then, use the machine's established referencing procedure if it remains serviceable.
Questions asked
Can a USB-to-serial adapter read the encoder line?
Only if its electrical interface matches the documented output: the voltage levels, single-ended or differential signaling, and the direction of the request line. ASCII, parity and stop bits describe character framing, not electricity. An adapter built for a different interface returns nothing or garbage characters, and no terminal application fixes that.
What does µs mean, and how do I use such a small figure?
µs is the symbol for microseconds: one millionth of a second, so one millisecond is 1,000 µs. The size matters less than the label it carries on the diagram: the same annotation read as a delay, a pulse width or a bit interval leads to three different receiver configurations.
Does an absolute encoder remove the need to home after power-up?
It removes the homing move only while the whole chain holds: backup intact, travel inside the encoder's multi-turn range, and a startup read that passes the known-move validation. An axis that rotates without limit can pass the multi-turn limit and lose its absolute reference, so keep the wrap limit configured and revalidate after any battery change.
Which should adopt the restored position first, the controller or the display software?
The motion controller first, then the display. If the display shows a number the controller has not internalized, the first commanded move runs from an unreferenced controller. Both must use the same reference count, direction sign and counts for each machine unit, or the mismatch appears as a following error on the first move.
