Resolving Siemens 802D sl Error 26002: Encoder Parameterization
Siemens SINUMERIK 802D sl Error 26002 is a drive-side alarm raised when the controller detects that the configured number of encoder marks does not match the connected feedback device. On the 802D sl platform, the alarm commonly surfaces on the Z axis when a motor-mounted incremental encoder is present but the system has been parameterized for an external encoder on the SMC30 module, and on the spindle when MD31020 (ENC_RESOL) disagrees with the physical resolution of the spindle encoder. The official alarm description for 26002 is "Axis %1 encoder %2 parameterization error" and is published in the SINUMERIK 802D sl Diagnostics Manual (06/2009 edition). The remainder of this reference covers the alarm structure, the encoder identification workflow, the SMC30 topology, and a field-proven procedure for clearing the fault without disturbing a running machine.
1. Error 26002 Alarm Format and Channel Behavior
The 802D sl controller raises 26002 as a channel alarm with a Clear criterion: Channel not ready. The alarm text expands to identify the affected axis and the encoder number being parameterized. The two typical field strings are:
- 26002 Axis Z encoder 1 parameterization error — most often raised when the Z axis drive has been configured to look at the second encoder (encoder 2, the SMC30) but the SMC30 is either unpopulated, mis-wired, or its MD is inconsistent with the physical device.
- 26002 Axis SP encoder 1 parameterization error — the spindle's first encoder (typically the motor-integrated encoder) has a resolution value stored in MD31020 that does not agree with the drive parameterization in the SINAMICS commissioning tool.
When 26002 is active, the affected axis is not released to the position controller. The Channel not ready clear criterion means that the controller suppresses program start (NC-Start is blocked) until the alarm is acknowledged and the underlying mismatch is corrected. Per the Siemens support note on 26002, if the encoder is an absolute type, the controller also expects that any pending drive alarms that could indicate encoder problems (e.g. lost commutation, low battery, EnDat protocol warnings) be evaluated before the parameterization is changed.
2. Root Cause Analysis
Error 26002 is fundamentally a configuration-consistency fault, not a hardware failure. The NCK side (SINUMERIK) and the drive side (SINAMICS S120 / CU320-2 DP on the 802D sl) each maintain an image of the connected feedback device. If the two images disagree, the drive raises the alarm and the NC surfaces it as 26002. The four most common root causes observed in the field are:
- MD31020 (ENC_RESOL) mismatch. The number of encoder marks per revolution stored in MD31020 does not match the value configured in the SINAMICS drive parameter p0408 or p0421. In the case described in the source, MD31020 = 2048 for the Z axis and 1024 for the spindle, but the motor nameplate or the SMC30 module reports a different value.
- Wrong encoder selected in SINAMICS commissioning (IBN). During drive commissioning, the engineer selected a default encoder type (e.g. resolver, EnDat 2.1, SSI) without cross-checking the actual motor encoder fitted to the machine. The electrical drawing typically documents the SMC30 presence but not the resolution of the motor-side encoder.
- Misidentification of motor vs. external encoder. On the 802D sl Z axis, the motor-integrated encoder is normally encoder 1 on the drive. The SMC30 is intended for a second, external measuring system. If the controller has been parameterized as if an external encoder is present on the SMC30 (encoder 2) but no such device is wired, both encoder images become invalid.
- Pending absolute-encoder faults. For absolute encoders (EnDat 2.2, DRIVE-CLiQ, SSI absolute), a low backup battery, a corrupted absolute position, or a broken commutation track will also cause 26002. The Siemens support article explicitly notes that drive alarms indicating encoder problems should be evaluated for absolute encoders before changing parameterization.
3. Machine Data MD31020 (ENC_RESOL) Reference
MD31020 is the NCK-side display machine data ENC_RESOL — Encoder marks per revolution. The valid index and the value entered here must match the resolution of the physical encoder that the drive reports back. Common values encountered on 802D sl machines are listed below.
| Encoder family | Typical resolution (lines/rev) | MD31020 value (decimal) | Notes |
|---|---|---|---|
| Heidenhain ROD 426 incremental | 2000 / 2500 | 2000 or 2500 | Common on 1FK / 1FT servomotors used as feed drives. |
| Heidenhain ERN 1387 incremental | 2048 | 2048 | Default for many 1FT6 / 1FK7 motors shipped with 802D sl. |
| Heidenhain EQN 1325 EnDat 2.1 | 2048 + 4096 rev multiturn | 2048 | Absolute, EnDat 2.1 single-turn or multi-turn. |
| Heidenhain ECN 1313 EnDat 2.2 | 2048 | 2048 | Absolute, EnDat 2.2 single-turn. |
| Sick / Stegmann HIPERFACE | 1024 / 2048 | 1024 or 2048 | Common on SEW / Bosch Rexroth spindle motors. |
| Resolver (2-pole, 1FT-style) | 1 | 1 | On resolver, 31020 may be set to 1; SINAMICS computes effective resolution. |
| SSI absolute | Manufacturer-specific (often 4096 or 8192) | 4096 / 8192 | Verify against the encoder nameplate or the gearbox ratio. |
On the 802D sl, MD31020 is indexed per encoder. The axis-specific addressing follows the convention MD31020[AXn, ENCidx] where AXn is the logical axis (X, Y, Z, SP, A4, A5) and ENCidx is the encoder index (1 = motor encoder, 2 = external encoder on SMC30). The source thread shows the Z axis running MD31020[AX3,1] = 2048 and the spindle MD31020[AX4,1] = 1024, which is a normal configuration for an 802D sl with a 2048-line Heidenhain ERN-type motor encoder on the Z feed motor and a 1024-line HIPERFACE or SSI encoder on the spindle.
4. Identifying the Encoder Type and Resolution
When the electrical drawing is silent on the motor encoder, use the following diagnostic order. Each step produces a deterministic answer before any parameter is changed.
- Read the motor nameplate. The 1FK / 1FT / 2SP1 / PH / SH motor family fitted to 802D sl machines always has a part number block that decodes the encoder. For Siemens motors, the 11th–14th digit of the MLFB encodes the encoder type (e.g. 1FK7060-2AF71-1AB1 = EnDat 2048 1Vpp). For non-Siemens motors, look for a Heidenhain / Sick / Hengstler sticker on the encoder housing.
- Read p0407 / p0408 / p0421 from the drive. In the SINAMICS commissioning tool (STARTER or the integrated Sinamics IBN on the HMI), connect to the drive and read p0407 (Encoder type), p0408 (Encoder resolution in lines/rev), and p0421 (Absolute encoder resolution). These are the ground-truth values that the drive has auto-detected from the encoder.
- Cross-check the SMC30 module. If encoder 2 is in use, navigate to the topology view in the Sinamics IBN and confirm the SMC30 is online (green) and that the encoder at its X521/X522 terminal is the one the drawing specifies. SMC30 supports incremental 1Vpp, HTL, and SSI; an HTL device on an X521 input configured for 1Vpp will produce 26002.
- Check drive-side alarm history. 26002 is often a secondary symptom. Look for F3xxx encoder faults (e.g. 30001, 30002, 30003, 30101, 30200) in the SINAMICS diagnostic buffer. If any of these are present, resolve them first — 26002 will clear once the underlying drive alarm is acknowledged and the encoder is healthy.
5. SMC30 Module Configuration on the 802D sl
The SMC30 (Sensor Module Cabinet-Mounted, 6SL3055-0AA00-5CA2) is the second-encoder interface used when a machine has an external linear or rotary measuring system in addition to the motor encoder. On the 802D sl it is wired into the DRIVE-CLiQ ring of the SINAMICS S120 line-up and is commissioned as a topology node in the Sinamics IBN tool.
| SMC30 parameter | Function | Typical value for Z-axis 802D sl |
|---|---|---|
| p0407 | Encoder type | 9999 (user-defined) or specific SSI / HTL code |
| p0408 | Encoder resolution (lines/rev) | 2048 (must equal MD31020[AX,2]) |
| p0420 | Encoder configuration | Bit-coded (signal level, direction, etc.) |
| p0421 | Absolute encoder resolution (singleturn bits) | 12 (= 4096) for typical 802D sl absolute external scale |
| p0423 | Multiturn bits | 0 for incremental, 12 for typical multi-turn absolute |
| p0434 | Error threshold (signal level) | Default 1.6 V for 1Vpp |
If the machine does not actually have an external measuring system on the SMC30, the correct configuration is to leave the SMC30 topology in the project but mark encoder 2 of the Z axis as not configured. This is done by setting MD30200[AX3,2] = 0 (NUM_ENCS) or by setting MD31020[AX3,2] = 0 and MD32700[AX3,2] = 0. After that, the SINAMICS commissioning must mirror the change by setting the drive parameter p0142 of the encoder 2 module to 0 or removing the SMC30 from the topology.
6. Step-by-Step Resolution Procedure
The following procedure applies to a 802D sl with a feed axis (Z) reporting 26002 for encoder 1 and/or encoder 2, and a spindle reporting 26002 for encoder 1. Run the steps in order.
- Bring the machine to a safe state. Reset (NC-Stop), cancel all active programs, isolate the drives from the mains via the main contactor if an encoder is to be physically disconnected.
- Open the SINUMERIK HMI and acknowledge the alarm. Press the Alarm softkey, select 26002, and use CANCEL. If the alarm reappears immediately, the inconsistency is hard-coded and must be fixed at the parameter level.
- Connect Sinamics IBN to the drive. Use the HMI menu path Commissioning → Drive commissioning (Sinamics IBN) or STARTER via Ethernet on X127. Online with the drive and read the encoder parameters p0400, p0407, p0408, p0421 for both encoder 1 and encoder 2 of the affected axis.
- Compare drive values to NCK MD values. For the Z axis in the source, p0408 = 2048 must equal MD31020[AX3,1] = 2048. For the spindle, p0408 = 1024 must equal MD31020[AX4,1] = 1024. If p0408 reports 0, the drive has not auto-detected the encoder; this points to a wiring, DRIVE-CLiQ, or hardware fault rather than a parameter error.
- Set MD31020 to the verified value. In the SINUMERIK HMI menu Commissioning → Machine data, navigate to the axis-specific MD31020. If the value is correct, do not change it. If the drive reports a different number of lines, update MD31020[AXn,ENCidx] to match. The recommended procedure in the source thread is to also reduce the resolution (e.g. 512) for a suspect absolute encoder, but this is only a fallback for the case where the absolute encoder absolute-value format cannot be read and a per-revolution count of 512 is being used as a placeholder.
- Correct the encoder type if necessary. If the motor nameplate shows EnDat but the drive was commissioned as incremental (p0407 = 9999 with manual p0408 entry), reset the drive to factory defaults and re-run automatic encoder identification. On the 802D sl this is available from the IBN tool's Encoder → Identify function. Power-cycle the drive after the identification completes.
- Reconcile the SMC30 / encoder 2 image. If the machine does not have an external encoder, set MD30200[AX,2] = 0 in the NCK and remove the SMC30 topology from the SINAMICS project. If an external encoder exists, ensure its wiring (X521 for incremental 1Vpp, X531 for SSI) matches the SMC30 DIP-switch / firmware setting and that MD31020[AX,2] equals the value reported in p0408 of the SMC30.
- Save and back up the data. Issue Commissioning → Series commissioning → Save on the HMI to write the MD to the CompactFlash card. On the drive side, save with Copy RAM to ROM in STARTER or the equivalent HMI softkey.
- Power cycle the NCK and drive. A full NCK power-on (not just an alarm reset) is required for MD31020 changes to take effect, because the encoder configuration is read during NCK startup.
7. Verification
After the power cycle, perform the following checks before returning the machine to production:
- Confirm that the alarm buffer is empty and that the Alarm history does not show 26002 recurring on power-up.
- Open the Axis/Spindle service screen on the HMI. The actual position value must be stable and follow the axis within ±1 increment during a manual jog. If the position counts in the wrong direction, swap the sign in MD32100 (AX_MOT_DIR) or in p0410 (direction reversal), not in MD31020.
- Run an axis-specific reference-point approach (G74) on each feed axis. Successful referencing indicates that the encoder is electrically healthy and that the absolute or incremental reference is consistent with the controller's expectation.
- For the spindle, run a speed-controlled mode at 50, 500, and the maximum programmed RPM and verify that the actual-speed value tracks the setpoint. A discrepancy of more than 1 % indicates a scaling problem in MD31020 vs. p0408.
- Run a short NC program that includes a G01 move on the affected axis and an M03/M05 spindle start. If 26002 does not return, the parameterization is consistent.
8. Common Pitfalls and Field-Proven Cautions
- Don't conflate 26002 with 26126 / 26127. Those are position-control-loop alarms (following error / contour monitoring). 26002 is a configuration alarm that fires before the position loop is closed, often at NCK power-on or after a topology change.
- Don't set MD31020 = 0 on encoder 1 to silence the alarm. On encoder 1 this disables the position feedback entirely and will produce a different alarm (25000, 25010). If the alarm is on encoder 2, leaving the value at 0 is correct only if no external encoder is present.
- Absolute encoder reset is not the same as 26002 fix. An absolute encoder that has lost its position (e.g. after a battery change on the SMC30) requires a homing reference point approach (MD34200) or an absolute-encoder adjustment (p0441, p0442) on the drive. Setting MD31020 will not recover the absolute reference.
- Check the firmware version. 802D sl controllers shipped before SW 2.x had tighter restrictions on p0407 values. If the SINAMICS firmware has been updated independently of the NCK software, an inconsistency between the two can present as 26002. Always match the NCK SW release to the SINAMICS firmware release as documented in the 802D sl commissioning manual.
- The spindle's 1024 in the source is a common Siemens default. When the spindle encoder is a Sick / Stegmann HIPERFACE single-turn with 1024 lines, MD31020 = 1024 is correct. Do not change it to 2048 unless the encoder nameplate confirms 2048 lines.
9. Related Alarms and Diagnostic Path
When 26002 is the leading alarm, the following secondary alarms are likely to be present in the alarm history and should be examined:
| Alarm | Meaning | Relationship to 26002 |
|---|---|---|
| 25000 | Axis %1 hardware fault | Can follow 26002 if the encoder is not actually connected. |
| 25010 | Axis %1 measuring system error | Often raised in parallel with 26002 for absolute-encoder faults. |
| 30001 (drive) | Encoder fault, code %1 | Underlying SINAMICS fault that 26002 mirrors when NCK is informed. |
| 30101 (drive) | Encoder 1 fault, code %1 | Direct hardware-side cause of 26002 on encoder 1. |
| 30200 (drive) | Encoder 2 fault, code %1 | Direct hardware-side cause of 26002 on encoder 2 (SMC30). |
| 26126 | Following error | Appears only after 26002 is cleared and motion is attempted. |
Each of these alarms is documented in the SINUMERIK 802D sl Diagnostics Manual (06/2009). The official 26002 reference in the Siemens Industry Online Support database is entry 109777872.
10. Quick Reference Summary
| Item | Source case | Recommended action |
|---|---|---|
| Alarm number | 26002 | Identify axis and encoder index from the alarm text. |
| Z axis MD31020[AX3,1] | 2048 | Verify against p0408 of the drive; correct only if drive disagrees. |
| Spindle MD31020[AX4,1] | 1024 | Typical for 1024-line HIPERFACE spindle encoder; verify nameplate. |
| SMC30 / encoder 2 | Configured in the project | Either populate physically and match MD31020[AX,2] to p0408, or remove from topology. |
| Motor encoder type | Unknown from the drawing | Read from motor nameplate, then match in p0407 and p0408 of the drive. |
| Save / persist | — | Series commissioning save + drive Copy RAM to ROM + power cycle. |
What does Siemens 802D sl Error 26002 mean?
Error 26002 is a channel alarm meaning "Axis %1 encoder %2 parameterization error". The controller has detected that the number of encoder lines configured in NCK machine data MD31020 (ENC_RESOL) does not agree with the resolution reported by the SINAMICS drive in p0408 for the indicated axis and encoder index. Reference: SINUMERIK 802D sl Diagnostics Manual.
How do I set MD31020 for the Z axis and the spindle on an 802D sl?
Enter the encoder lines per revolution as decimal: MD31020[AX3,1] = 2048 for a 2048-line motor encoder (typical 1FT/1FK with Heidenhain ERN) and MD31020[AX4,1] = 1024 for a 1024-line spindle encoder (typical Sick HIPERFACE). The value must match p0408 of the corresponding SINAMICS drive encoder. Source: Siemens support article 109777872.
Why does 26002 appear on encoder 2 when there is no external encoder?
The NCK still expects a value in MD31020[AX,2] and a configured encoder in the SINAMICS topology. If the SMC30 is not fitted or not wired, set MD30200[AX,2] = 0 (no second measuring system) and remove the SMC30 from the SINAMICS topology, or set MD31020[AX,2] = 0 to indicate encoder 2 is inactive.
Do I need to power-cycle the NCK after changing MD31020?
Yes. Encoder configuration data (MD31020, MD30200, MD32700) is read during NCK startup. A soft alarm reset will not propagate the change; a full NCK power-on is required, followed by a SINAMICS save (Copy RAM to ROM) and a series-commissioning save on the HMI to persist the change to the CompactFlash card.
Can an absolute encoder problem cause 26002 on the 802D sl?
Yes. If the encoder is absolute (EnDat 2.1/2.2, SSI, HIPERFACE), a low backup battery, a corrupted absolute track, or a pending drive alarm such as F30101 will surface as 26002 once the NCK queries the encoder at startup. Per the Siemens support note, evaluate and clear the drive-side alarm first, then re-home the axis with the reference point approach (G74) before changing MD31020.