Troubleshooting
Why a CoE drive axis shows 152 degrees per motor turn
Short answer
One hand turn showing 152 degrees instead of a full revolution means the counts-to-units conversion is wrong at one layer, not a modulo fault. Record the drive position and the controller position over one full turn, correct the layer that is wrong — drive feedback data, the EtherCAT position object, or the axis increments and gearing — and read every CoE write back, because a live connection does not prove a parameter took effect.

On this page
One hand turn of the motor shaft that reads 152 degrees instead of 360 on a CODESYS axis means the counts-to-angle conversion is wrong at one layer. It is not a modulo problem, and the encoder is almost certainly fine. The reading is about 0.42 of the expected travel, so exactly one layer between motor feedback and displayed axis units carries the wrong scale: the drive's motor and feedback data, the EtherCAT position object the axis reads, or the controller axis increments and gearing. The repair order is fixed: measure the drive position over one full turn, identify the layer, correct that one layer, and only then set the modulo range. A working EtherCAT connection proves process data exchange and nothing about CoE parameterization, so every CoE write gets read back.
Find the layer that carries the wrong scale #
Do this measurement before changing any scale:
- Put the machine in a safe state with the drive disabled, so the shaft turns freely by hand and cannot produce torque.
- Record the drive position value and the controller axis position. Use the same position representation on both reads; a modulo-wrapped value can hide a full revolution.
- Turn the shaft exactly one full turn by hand and record both values again.
The two deltas decide where the fault lives:
- The drive delta represents one motor revolution correctly, but the axis shows the low reading: the feedback chain is working and the fault is in the controller layer — axis increments per revolution, unit conversion, or a transmission ratio in the project. Fix the controller, not the drive.
- The drive's own delta does not represent one revolution: the fault is upstream. Compare the configured motor and feedback data against the motor documentation and the motor encoder data memory, and confirm the drive position unit the drive actually uses.
- The value jumps, reverses, or wraps during the turn: you are reading the wrong object or a wrapped one. Identify whether the position object is absolute, relative, or modulo before using it for scaling.
The 23-bit count holds only for raw encoder counts #
A 23-bit resolution gives 2^23 = 8,388,608 counts per revolution, and that number is valid in the axis configuration only if the value arriving at the controller is one count per encoder increment. Many drives convert feedback into their own position units before it enters the EtherCAT process data, so the controller may never see raw encoder counts at all. Do not use the low reading to invent a replacement encoder resolution: a scale error in the axis produces a plausible-looking angle while the encoder itself runs perfectly.
One hand turn showing 152 degrees from an 8,388,608-count setting #
Inputs:
- Configured axis increments per motor revolution: the 23-bit count, taken from the encoder resolution (the reported setup).
- Measured: one hand turn reads 152 degrees at the axis (the reported symptom).
- Expected: one full revolution in the configured axis unit.
Rule, in words: the displayed angle equals one full revolution times the counts actually delivered per turn, divided by the increments per revolution configured in the axis.
Arithmetic:
- ratio = 152 / 360 = 0.422
- implied counts delivered per turn = 8,388,608 × 0.422 ≈ 3,541,857
- the configured count therefore exceeds the delivered count by about 2.37 times (the inverse of the ratio).
Result: the controller receives roughly 3.54 million counts per turn, not the configured 23-bit count. A hand turn is accurate only to a few percent, so the implied count is a diagnostic, never a setting.
Decision, with its threshold — read the drive position object across the same turn:
- Drive delta equal to the 23-bit count: the drive sends raw counts and a gearing or unit conversion near that 2.37 factor sits in the project. Correct the controller layer.
- Drive delta close to the implied count: the position object is in drive position units, not raw encoder counts. Set the axis increments per revolution to the value the drive documentation states for that object, and verify the drive's motor and feedback configuration before touching the axis scale.
- Drive delta not stable across the turn: the object is wrong or wrapped. Switch to the documented linear position object and repeat the measurement.
Prove the CoE write took effect #
Enabling CoE in the project does not configure any motor, scaling, or modulo value in the drive, and a drive at operational state with motion still faulting is a different failure — see why a CoE servo drive powers up but motion reports an error. For each parameter you set:
- Identify the object in the drive documentation and the device description: its data type, unit, access rights, and whether it is written through an SDO or another documented path.
- Read the current value before writing anything.
- Issue the documented write, then read the value back and inspect the drive diagnostics for a rejection or a state restriction.
- Confirm from the documentation whether the change is live immediately or needs a separate activation, and follow that step.
Two documented constraints shape the work. The IndraDrive EtherCAT configuration provides a scaling strategy named COE_CALC_CONTROL, and it supports only the position mode, so it will not correct scaling in any other operating mode. If the write fails with a type mismatch on the SDO path, the object mapping is the fault, not the scaling — the failure pattern in troubleshooting ctrlX Data Layer CoE SDO type errors. The same read-back discipline is what finds a write that silently never arrives, as in fix missing setpoint and control word writes to a PROFIBUS drive. If the controller cannot read or write the required object at all, stop changing axis scaling and resolve the mapping and access path first.
Set modulo after the conversion is right #
Modulo defines how a position is represented across a repeating range; it cannot repair a wrong counts-to-angle conversion. Once the one-turn test reads correctly in both layers, set the modulo range to one revolution (360 degrees) through the documented parameterization path, then read the setting back like any other CoE write. Keep the increments per revolution an integer number of drive counts: a physical resolution that is not an integer in drive increments per turn is a known source of position drift on a modulo axis. Then repeat the same hand turn in both directions — the displayed change should be equal in magnitude and opposite in sign. Record the original values of everything you changed so any step can be reversed, and validate the final project and drive settings together before returning the axis to normal operation.
Questions asked
Why not enter the measured count as the axis increments per revolution?
A hand turn is only accurate to a few percent, so the implied count is a diagnostic, not a setting. It tells you which layer carries the wrong scale; the drive documentation supplies the exact position unit for the object the axis reads. Entering a hand-measured count bakes a permanent error into every move and into modulo tracking.
Does a CoE parameter write need a drive restart to take effect?
It depends on the object. The drive documentation states whether a value takes effect immediately or needs a separate activation, a save step, or a restart. Follow the documented step and then read the value back. Do not cycle power as a substitute for confirming the write landed and was accepted.
How do you confirm direction after fixing the scale?
Repeat the same hand turn in the opposite direction. The displayed angle should change by the same magnitude with the opposite sign. If the two directions read differently, suspect a non-integer conversion or a gearing entry in the project rather than the encoder, and recheck the increments per revolution before returning the axis to service.


