AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a servo drive connects but its absolute encoder reads nothing

Sensors, encoders and machine vision on the machine Published 7 min read By AutomateDirectUSA engineering team

Short answer

A working Python connection proves only that your computer talks to the drive. Position appears only when the clocked transaction completes: chip select wired for an SPI part, supply inside the datasheet range at the encoder pins, and the external buffer this pairing is reported to need. Then read the firmware's encoder object with its error count at zero.

On this page
  1. Why does a working Python connection prove nothing about the encoder?
  2. Which serial interface does your exact encoder part speak?
  3. What power and logic levels does the encoder need at its pins?
  4. Why does this pairing need an external buffer IC?
  5. How do you capture one transaction and read what it shows?
  6. How do you read the position in Python once transactions are valid?
  7. How do you convert the count into tip position?
  8. Can the same encoder close the motor loop later?
  9. Questions asked

Your drive answering Python over USB proves exactly one thing: the host link works. The missing position is a separate failure: the clocked serial transaction between the drive and the encoder never completes, so there is nothing for any property to return. The order of the fix is wiring, power, buffer, then code. Connect the chip-select line an SPI transaction requires, measure supply at the encoder's own pins, fit the external buffer this pairing is reported to need, and only then read the firmware's encoder object, checking its error flag on every read.

Why does a working Python connection prove nothing about the encoder? #

Because the two links are independent: USB carries your commands to the drive, while position exists only if the drive completes a select-clock-response transaction with the encoder. A drive that answers every call can still be reading a dead or unwired encoder.

The host connection runs to the drive's communication interface; the encoder runs on a clocked serial line into the drive's encoder port, read by the firmware on its own schedule. Python only displays what the firmware already collected, so the deciding quantity from here on is whether the drive completes accepted transactions with the encoder. Every check below either makes that happen or explains why it does not.

That also separates your two goals. Monitoring the tip needs the measurement path only. Controlling the motor later needs that path plus feedback configuration and the drive's documented commissioning sequence. Get the reading first; a loop cannot close on a signal that does not exist.

Which serial interface does your exact encoder part speak? #

Check the part suffix before anything else: the distributor listing for the AMT232B-V describes an SSI part with 16384 positions per revolution, while the family also ships 12-bit or 14-bit versions over SPI or RS-485, and each interface wires differently.

SSI parts use a clock line and a data line, and the first clock edge starts the frame; there is no select line to wire. SPI parts need the drive to pull a chip-select line low for every frame, and without that connection the drive still answers your computer while the encoder never sends a word. Take the interface, supply range and timing diagram from the datasheet of the exact part in your hand, not from a sibling in the family.

Then make the firmware's encoder mode match that interface. Confirm the mode list for your board revision and firmware release includes it — the verification approach in how to verify a servo drive supports EnDat 2.1 encoder feedback applies to any serial encoder protocol. A drive configured for SPI, waiting on a select line an SSI part never uses, produces exactly this symptom: full host communication, no position.

What power and logic levels does the encoder need at its pins? #

Supply inside the operating range printed in the AMT232B-V datasheet, measured at the encoder's own supply pins while transactions are running, not at the supply's output terminals, where a wiring drop hides.

Measure with the drive clocking, because the current drawn during transactions is the real load. If the pins sit below the datasheet range, fix the supply wiring or the return path before replacing anything; a poor ground return is the common culprit and costs nothing to reseat.

Logic levels are the second requirement: the encoder's output high and low voltages must satisfy the drive's input thresholds, and the drive's clock output must satisfy the encoder's input thresholds. When the two sides run different logic rails, that gap is exactly what the buffer in the next section closes; verify both threshold sets from the two datasheets instead of assuming a match.

Why does this pairing need an external buffer IC? #

This encoder-on-this-drive combination carries a reported compatibility issue: the encoder's data line does not clock into the drive reliably until an external buffer IC sits between them, so treat the buffer as required wiring.

The buffer re-drives the encoder's data into the drive's input with clean levels and fast edges, so the drive samples what the encoder actually sent. Select it as the drive's encoder documentation specifies and wire it per its own datasheet: supply pin, direction and any enable input all count. Substituting an arbitrary logic gate reintroduces the level or timing problem you are trying to remove.

The practical decision: fit the buffer before writing another line of Python. A missing buffer is a hardware gap, and no attribute name, polling rate or retry loop in code will close it.

How do you capture one transaction and read what it shows? #

Put chip select, clock and data on the same logic-analyzer or scope capture and trigger on the select line or the first clock edge; as a rule of thumb, sample at least four times the clock rate so edge positions are trustworthy.

Read the capture against three outcomes, cheapest check first:

  • No select or clock activity. The drive is not attempting transactions at all. Likely cause: the encoder mode or select-pin assignment in configuration, not wiring. Confirming check: read back the firmware's encoder mode and assigned select pin for your axis.
  • Clock bursts with a flat data line. The drive is trying and the encoder is silent. Likely causes in order: supply at the encoder pins out of range, a broken data or return conductor, the missing buffer, an interface mismatch. Confirming check: meter at the encoder's supply pins, then continuity end to end.
  • Data toggling with the error count climbing. The transaction runs but fails marginally. Likely causes: slow edges from the missing buffer, a clock rate above what the wiring carries, a level mismatch. Confirming check: compare the captured edges and setup times against the timing diagram in the encoder datasheet.

How do you read the position in Python once transactions are valid? #

Read three values together from the firmware's encoder object — the raw count, its error flag and the counts-per-revolution setting — and accept the count only when the flag shows the last transaction was accepted.

Illustrative code with declared types; the three function names are mine, not any firmware's API, so replace them with the documented reads for your board and firmware release:

# Illustrative names only: substitute your firmware's documented calls.
counts = read_encoder_counts()       # int, for example 4096
error_count = read_encoder_errors()  # int, must stay at 0
ready = read_encoder_ready()         # bool, must be True

if ready and error_count == 0:
    print(counts)

The test that proves it: with motor power off and the axis disabled, turn the shaft a quarter turn by hand. The printed count must move by about one quarter of the counts per revolution, in one direction, while the error count stays at zero. A Python attribute error means the object name does not match your firmware release's interface; look it up in the documentation for your exact board revision. A readable value that never changes means transactions are not running, so return to the capture. And treat a changing number as necessary, not sufficient: serial position data does not prove a serial encoder interface shows why the error flag must ride along with every count.

How do you convert the count into tip position? #

Divide by the counts per revolution and multiply by 360: a 14-bit single-turn part resolves 360 degrees into 16384 counts, so each count is about 0.022 degree of shaft rotation.

A calculated example for those inputs, not a measured result. Take the counts per revolution above and a raw reading of 4096 counts:

  • Shaft angle = 4096 ÷ 16384 × 360° = 0.25 × 360° = 90.0°.
  • Resolution = 360° ÷ 16384 = 0.02197°, about 0.022° per count.

A single-turn count wraps every revolution, so the angle is modulo one turn. Tip travel is not in those numbers: the linkage between shaft and tip converts rotation into millimetres, so measure the tip at two known shaft angles and scale between those endpoints — wire draw absolute encoder scaling by measured endpoints works the same way for a draw-wire sensor. Until you have those two measurements you have shaft angle, not tip height.

Can the same encoder close the motor loop later? #

Yes, but only after the monitoring path is proven and the encoder measures the shaft your control mode expects: a pickup after gearing or linkage compliance can track the tip yet be wrong as motor feedback.

The decision for each case:

  • Tip monitoring only. Proceed once the error count stays at zero through a full slow hand rotation and the count maps to tip position by your two measured endpoints. That is the whole requirement.
  • Motor feedback as well. Add two conditions: the encoder must sit on the motor shaft directly, or the gearing between encoder and motor must be stiff and backlash-free enough for your control mode; and the drive's documented commissioning sequence — feedback configuration first, motor setup second — must run to completion. An encoder after compliant linkage that is fine for watching a tip makes a poor feedback source.

Validate everything by hand with motor power off or the axis disabled, because an enabled drive can torque the mechanism the moment a feedback fault clears.

Questions asked

Can I bench-test the encoder without the drive?

Yes. Clock the encoder from any microcontroller development board using the timing diagram in the part's datasheet: pull select low for an SPI part or simply issue the first clock edge for an SSI part, read the full frame and check it against the shaft angle. If the encoder answers a simple microcontroller but stays silent on the drive, the fault is in the drive's wiring, configuration or missing buffer, and the encoder itself is good.

Is the 12-bit version good enough to monitor the tip?

For monitoring, usually yes. A 12-bit single-turn part gives 4096 counts per revolution, about 0.088 degree per count, against roughly 0.022 degree for the 14-bit part. Choose the finer one only when the tip linkage needs better than a tenth of a degree of shaft resolution; the wiring, buffer and transaction checks are identical either way.

What happens if I skip the external buffer?

The drive may read positions for a while and then start flagging encoder errors, because the data edges reach its input too slowly or at levels it cannot guarantee. The failure is marginal, so it looks like a software bug and moves with cable length, clock rate and temperature. Fit the buffer first; it is one small part and it removes the entire class of intermittent errors.

Does the board revision or firmware release change the fix?

The wiring, power and buffer checks do not change, but the connector pinouts, encoder modes and object names do. Locate the encoder object and pin assignments in the documentation for your exact board revision and firmware release, because a guide written for another generation can point you at a connector or property your hardware does not have.

Keep reading

  • Explainer

    How a CN1 pulse train absolute position reading works

    A CN1-style absolute transfer sends the multi-turn count and the within-turn count as two separate pulse bursts at power-up, then switches to ordinary incremental pulses. Arm hardware counters before the drive transmits, decode both fields per the drive manual, compute initial position as multi-turn turns times counts per revolution plus the within-turn count, and hand off to pulse counting at a latched boundary.

    Sensors, encoders and machine vision on the machine

  • Explainer

    Are Servo Motor Absolute Encoders Really Battery-Backed

    Most servo motors sold as absolute use incremental feedback whose multi-turn count lives in battery-backed memory. The battery feeds a microamp retention circuit, not the operating draw, which is why the hold runs about two years powered down. Change the battery with the control powered so the count survives.

    Sensors, encoders and machine vision on the machine

  • Troubleshooting

    Clearing an Absolute System Down Alarm on a Servo Drive

    An absolute system down alarm means the drive lost the absolute encoder's stored position because encoder power dropped entirely. Measure the backup battery first: the common serial-encoder interface trips at 3.1 V on a 3.6 V cell. Fix the battery, run the drive's absolute encoder clear, then re-establish machine position before automatic operation.

    Sensors, encoders and machine vision on the machine