Troubleshooting
Why the S7-1500 axis position differs from the encoder count
Short answer
Decimals in the axis position and a double rollover on a 1000-degree move are both correct: the technology object converts each encoder count into engineering units, and the move spans 2.78 revolutions of a single-turn encoder. The fault is the missing reference state — create it with absolute encoder adjustment and the absolute positions become repeatable.

On this page
Neither symptom is a fault. The PositionAxis technology object on an S7-1500 shows position in engineering units, so a degree axis displays fractions of a degree, and a 1000-degree move covers 2.78 revolutions of a single-turn encoder: the raw count rolls through zero twice and finishes near 50,972, which is exactly what the PROFIdrive telegram should carry at that endpoint. If the axis control panel reads about the commanded value when the move ends, your scaling is already correct. What is not correct is the reference state: the axis is not homed, so its absolute position has no defined relationship to the machine. Create that relationship with absolute encoder adjustment and the positioning becomes repeatable.
What the axis position represents #
The positioning axis technology object calculates position setpoints with the encoder settings taken into account and outputs speed setpoints to the drive; on the feedback path it converts the encoder's raw position into the configured mechanical unit. The decimals come from that conversion. With the unit set to degrees and one encoder revolution equal to one axis revolution, a single count is worth 360 / 65,536 = 0.0054931640625 degrees, and almost no real position lands on a whole number. This is the same raw-count-to-engineering-unit conversion you make when you scale engineering units to raw counts on an AC500 analog output, run in the opposite direction. The telegram value that looks right and the axis value that looks wrong are one measurement in two representations.
The arithmetic of the move #
Take the case as reported: the unit is degrees, the encoder drives the axis one-to-one, and both the axis coordinate and the encoder stand at zero when the move begins.
degrees per count 360 / 65536 = 0.0054931640625
revolutions 1000 / 360 = 2.7778
complete wraps 2 (720 degrees)
remainder 1000 - 720 = 280 degrees
remainder in counts 280 x 65536 / 360 = 50972.4 -> about 50972 counts
The encoder passes through zero twice and stops at roughly 50,972, the within-turn position of the 280-degree remainder, which is 0.7778 revolution. When the axis display reaches the commanded value at that moment, the whole scaling chain — encoder resolution, telegram interpretation, mechanical conversion — is working. The actual value reaches the controller inside the cyclic exchange described when you control a PROFINET servo drive with cyclic telegram data; nothing in that transport rescales the count.
Why the single-turn count wraps #
A single-turn absolute encoder reports the shaft angle within one revolution. Its raw value repeats after every full turn and cannot distinguish one revolution from the next by itself; the technology object tracks the rollovers, which is why the axis reads beyond one turn while the telegram shows a within-turn value. PROFIdrive leaves the interpretation of the position word to the configured encoder data format, so compare raw counts only after confirming that the format set in the drive and the encoder configuration agree.
The fault: the axis has no valid reference #
Homing creates the relationship between the position in the technology object and the mechanical position of the machine. Until it exists, a displayed target value is measured against an arbitrary origin, and an absolute move cannot be trusted to land on the same physical spot every time. The deciding check is the technology object's status: in the setup described here it reports the axis as not homed, and that — not the decimals, not the rollover — is the defect.
The repair is the documented one. In the axis control panel, run homing in absolute encoder adjustment mode with the mechanism standing at a known mechanical position, so the axis coordinate is assigned to that physical spot. From then on the tracked turns plus the absolute within-turn angle give a repeatable position.
Checks before you change any scaling #
- Read the configured position unit. Degrees is expected for this axis; if it says something else, every number above changes meaning.
- Read the configured encoder resolution and confirm it equals the encoder's rated steps per revolution. A mismatch rescales every reading.
- Confirm the feedback source. The encoder feeding the positioning axis must be the one whose count you are watching in the telegram.
- Run the one-revolution test. Mark the shaft, jog exactly one encoder turn, and expect the axis position to change by 360 degrees while the raw count returns to its value. Keep the jog slow and the travel clear: until the reference exists, the coordinate is not trustworthy.
- Run the direction test. A positive command must increase the axis position and advance the count through the rollover in the expected direction.
- Run the end-of-move test. Command the full move and compare the commanded position, the axis actual position and the physical stop together.
If the one-revolution test fails #
When one encoder turn does not change the axis position by one full turn, the decimals were hiding a real ratio error, and the correction belongs in the mechanical conversion: set it the way you would when setting gear ratio for degree moves on a rotary servo axis, entering the actual coupling between encoder shaft and load, and invert the direction there if the sign is wrong. Do not patch a wrong ratio with a position offset. The error then grows with travel, and an offset hides it at exactly one point.
Reading the symptoms #
| What you observe | What it means | What to do |
|---|---|---|
| Decimals in the axis position | Raw counts converted to degrees; the display steps in fractions of a degree | Nothing; correct behavior |
| The count wraps twice during the full move | The travel spans 2.78 revolutions of a single-turn encoder | Nothing; correct behavior |
| The axis reaches the command but the machine sits in the wrong place | No valid reference; the coordinate is not tied to the machine | Absolute encoder adjustment at a known position |
| The status reports the axis not homed | The reference relationship was never created | Same repair, then re-test |
| One encoder turn moves the axis position by the wrong amount | Mechanical conversion or resolution configured wrong | Correct the ratio, never with an offset |
The decision #
Keep the scaling untouched when the end-of-move reading matches the command and the one-revolution test passes: the decimals and the double rollover are the conversion doing its job. Perform absolute encoder adjustment whenever the status reports not homed — that is the repair this case needs, and the only one. Change the mechanical conversion only when the one-revolution test fails, and keep the axis non-modulo, because the travel accumulates across revolutions instead of repeating within one. After referencing, command the full move once more: the telegram should end at the within-turn remainder you calculated, the axis at the command, on the same physical spot every time.
Questions asked
Why does the axis show 999.9976 degrees when I command 1000?
The position grid is the encoder resolution. The nearest count to the commanded end point is 182,044 counts from zero, and 182,044 times 360 divided by 65,536 evaluates to 999.9976 degrees; one count higher lands at about 1000.003. The axis reports the nearest achievable position, so a fraction of a degree at the target is quantization, not a tuning problem.
Would a multiturn version of the encoder remove the rollover?
The multiturn version of the same PROFINET encoder family detects up to 16,384 revolutions in addition to its per-turn resolution, so its telegram distinguishes revolutions by itself and the controller does not need to track rollovers. With the single-turn version you have, the technology object does that tracking, which is exactly why the reference state decides whether absolute positions repeat.
The encoder is absolute, so why is an adjustment still needed?
Absolute means the within-turn shaft angle is reported correctly the moment power is applied. It does not tell the technology object where that angle sits in your machine coordinate. Absolute encoder adjustment assigns the coordinate to a known mechanical position once; without that assignment the status stays not homed and absolute moves are not referenced to the machine.
I use DSC. Does the encoder order in the telegram matter?
Yes. With DSC the motor encoder, meaning the first encoder in the telegram, must also be configured as the first encoder of the technology object. A load encoder mounted elsewhere cannot occupy that slot, so check the telegram structure before you trust the position the axis displays.
When should this axis be modulo instead?
Choose a modulo axis only if the machine coordinate repeats every revolution, for example a rotary index table where a command of 370 degrees means 10 degrees; the position then wraps into a fixed range. Keep the non-modulo configuration while travel accumulates across turns, as it does on this move, because a modulo axis would fold the display back and change how every command is interpreted.


