Problem Overview
The fault A07565 (F, N) Drive: Encoder error in PROFIdrive encoder interface 1 is raised on a SINAMICS drive (controlled by a SINUMERIK 840D sl / 828D or SIMOTION / SIMATIC axis) when the user enables a zero-mark-based reset of an external incremental encoder via parameter p4652 = 1 while the encoder signal is processed through a SMC30 Sensor Module. The alarm appears the first time the zero mark is evaluated, even though the encoder appears mechanically and electrically healthy.
The reported environment is a customer machine that uses an Emerson Universal SM-Encoder Plus as a simulated incremental encoder source. The SMC30 reads track A/B and the zero pulse, and the application expects a deterministic position reset to zero on every detected zero mark.
A second, recurring manifestation appears after maintenance actions: when the encoder cable (for example a resolver cable that was temporarily removed) is reconnected and insulation-tested with a megger at 500 V DC, the next zero-mark event generates the same A07565 even though the cable passes the insulation test.
Affected Components, Firmware, and Topology
| Component | Designation | Minimum SW version observed | Notes |
|---|---|---|---|
| Sensor Module Cabinet-Mounted | SMC30 (6SL3055-0AA00-5CA2 / -5CA1) | SINAMICS V4.4 / SINUMERIK V4.5 | Evaluates incremental encoders with TTL/HTL and zero mark |
| Drive platform | SINAMICS S120 / G120 / S210 | Firmware ≥ V4.7 SP3 for full PROFIdrive conformance | CU320-2 / CU310-2 control units |
| Controller | SINUMERIK 840D sl / 828D, SIMOTION D4xx, SIMATIC S7-1500T | NCU 710.3 / 720.3 / 730.3 PN, SINUMERIK Operate V4.95 | Issues PROFIdrive telegram 3 / 4 / 6 with encoder interface G1_XIST1/G1_XIST2 |
| Encoder simulator | Emerson Universal SM-Encoder Plus | N/A | Outputs simulated A/B/Z signals to SMC30 |
The PROFIdrive encoder interface that the alarm refers to is the standardized G1_ZSW / G1_XIST1 / G1_XIST2 process data exchanged between the SINAMICS drive and the higher-level controller.
Root Cause Analysis of A07565
Alarm A07565 is raised by the SINAMICS firmware when the drive detects that the controller has signaled an encoder error in the PROFIdrive encoder interface of encoder 1:
- Bit
G1_ZSW.15(encoder error / fault) is set to 1 by the controller. - The actual error code is transported in
G1_XIST2and mirrored intor0483[0]. - Alarm value
r2124(interpret as decimal) contains the same code and must be decoded against ther0483description.
Two preconditions must be true for the alarm to be issued at all:
- The PROFIdrive encoder interface must be enabled for encoder 1.
- The controller must write to
G1_XIST2a non-zero error code at the moment the zero mark is processed.
Key constraint (firmware invariant): This alarm is only output if p0480[0] ≠ 0. If p0480[0] = 0, the PROFIdrive encoder interface is disabled and A07565 cannot be raised regardless of the controller state. This is the single most important parameter for this fault.
p0480 and report it is missing. p0480 is located in access level 3 (Service / Service & Commissioning). If the drive is at access level 4 (OEM) or has a filtered expert list with p0000 masked, enable parameter access in SINAMICS Starter / Startdrive / SCOUT via Project > Properties > Access levels > Activate service level or, on the operator panel, set p0003 = 3.PROFIdrive Encoder Interface Signal Flow
The error originates on the controller side, not in the SMC30 itself. The simplified sequence is:
Parameter Reference
| Parameter | Name | Range / Values | Default | Access | Function in this fault |
|---|---|---|---|---|---|
p0480[0] |
PROFIdrive encoder interface enable | 0 = off, 1 = on, 2…4 = reserved | 0 | Level 3 | Must be 1 for A07565 to be reported. If you do not need the interface, set to 0. |
p4652 |
Reset position with zero mark | 0 = off, 1 = reset on next zero mark, 2 = reset on every zero mark | 0 | Level 3 | Triggers the reset that races with the controller status word. |
r0483[0] |
PROFIdrive encoder interface diagnostic | Bit field | — | Read | Contains the actual error code pulled from G1_XIST2. |
r2124 |
Alarm value | Decimal integer | — | Read | Alarm value displayed by Starter / Startdrive. Decode against r0483. |
p0408 |
SMC30 encoder type | 9999 = user-defined | 9999 | Level 2 | Must match the connected encoder (TTL / HTL / sin/cos). |
p0430 |
Encoder signal level selection | 0 = 5 V TTL, 1 = 24 V HTL bipolar | 0 | Level 2 | Set correctly for the Emerson simulator output level. |
p0425 |
Zero mark connected | 0 = no, 1 = yes | 1 | Level 2 | Must be 1 if the reset-with-zero-mark function is used. |
SMC30 Wiring and Configuration Pre-Checks
Before changing p4652 or the controller program, validate the physical layer. Roughly 40 % of A07565 events seen in the field are caused by a zero-mark signal that is either not connected, inverted, or has insufficient pulse width.
- Verify the SMC30 wiring at terminal X521:
- Pin 1 = track A+
- Pin 2 = track A−
- Pin 3 = track B+
- Pin 4 = track B−
- Pin 5 = zero mark R+
- Pin 6 = zero mark R−
- Pin 7/8 = encoder supply (typically 5 V or 24 V per
p0405)
- Confirm
p0405 = 1(5 V) orp0405 = 0(24 V) matches the Emerson output. A mismatch produces a degraded zero-mark and intermittent A07565. - Set
p0425 = 1to declare that the zero mark is wired. - Set
p0430to match the signal standard (TTL or HTL bipolar). - With the drive in commissioning mode, monitor
r0061[0](actual speed) andr0480/r0481[0](raw position counter). A smoothly changing counter with consistent increments confirms good A/B; a clean step at one position per revolution confirms the zero mark.
Step-by-Step Resolution
Use the procedure below on the offline / online project of the drive. All writes are online via Starter, Startdrive, or SCOUT. On SINUMERIK HMI, the same parameters are visible under Commissioning > Drive parameters > Expert list.
Step 1 — Capture the actual alarm value
- Connect to the drive online.
- Open the expert list.
- Read
r2124(decimal) andr0483[0](hex). Note the exact value before any reset action. - If the alarm value is
0, the alarm has already been cleared and the next zero mark event will regenerate it. Re-trigger by rotating the encoder one revolution past the zero mark.
Step 2 — Eliminate the controller-side cause
The controller writes the error code that triggers A07565. Common controller-side causes:
- The PLC / NC program contains a logic block that evaluates
EncoderErrorfrom the encoder telegram and copies it intoG1_XIST2. - A referencing block forces
G1_ZSW.15 = 1if the zero mark is detected before the axis is referenced. - The reference-point-approach state machine in the NCK sets the error bit transiently during search-for-zero (typical during first referencing after power-up).
p0480[0] = 0 to disable the PROFIdrive encoder interface if your application does not require it; A07565 cannot then be generated. (b) Mask A07565 at the controller so the transient bit is not propagated as an alarm. The first option is preferred because it keeps the drive-side alarm tree meaningful.Step 3 — Re-enable the reset only after referencing is complete
If the application truly needs p4652 = 1, gate it from the controller so that the reset is only permitted when DB31, … DBX60.4 (referenced / synchronized) is set on the SINUMERIK side, or the equivalent "axis referenced" flag on SIMOTION / SIMATIC. This prevents the controller from raising the encoder error during the first pass of the zero mark.
; STL / SCL snippet, SIMATIC S7-1500T or SINUMERIK PLC
IF "Axis".StatusBits.Refenced AND "Axis".Position < 0.001 THEN
Drive_Control.P4652 := 1; // reset with next zero mark
ELSE
Drive_Control.P4652 := 0;
END_IF;
Step 4 — Verify parameter persistence
- Save the project to the CFast / SD card.
- Power-cycle the drive and confirm
p0480[0]andp4652retain their intended values. - Read back
r3996[0]for the effective parameter set after boot.
Diagnostic Procedure
Use this matrix when the alarm returns after a fix attempt.
| r0483[0] value (hex) | Meaning | Likely cause | Action |
|---|---|---|---|
0x0001 |
Position error from controller | Controller not ready for position value | Verify controller-side encoder enable and life-sign |
0x0002 |
Zero mark error | Missing / noisy zero pulse | Check wiring, p0425, p0430, signal level |
0x0004 |
CRC / parity error on encoder telegram | EMC issue, bad cable, grounding | Re-route cable, check shield bonding at cabinet entry |
0x0008 |
Encoder not synchronized | Referencing not completed | Complete reference point approach before p4652 = 1
|
0x0010 |
Encoder undervoltage / overvoltage | Power supply drift | Measure encoder supply at SMC30 X521, compare to r0070
|
0x0020 |
Hardware fault on SMC30 | SMC30 defective | Replace SMC30, verify LED state (green RDY, no red SF) |
Cable and Insulation-Test Considerations
The second scenario — where the alarm appears after a megger test at 500 V DC — is not a fault of the SMC30 but a remnant of the test procedure. Insulation testing injects high DC into the conductor-shield capacitance; if the SMC30 or the encoder simulator is left connected, the charged capacitance discharges through the input protection of the SMC30 and may latch an internal fault flag.
- Disconnect both ends of the encoder cable before megger testing.
- After the test, short the conductors to ground for at least 10 seconds to discharge.
- Reconnect only after the discharge step.
- Power the system up with the drive in commissioning mode.
- Read
r0483[0]andr2124; if a non-zero error code is still present, power-cycle the SMC30 by removing and re-inserting X521 / X522 to clear the latch.
Edge Cases and Field-Proven Caveats
-
Emerson SM-Encoder Plus output format: The unit can be configured for HTL or TTL output. Many field returns show that the default HTL configuration causes the SMC30 to misinterpret the zero mark when
p0430 = 0(TTL expected). Always re-verifyp0430after switching the simulator output standard. -
Firmware V4.80 quirk: On drives running SINAMICS firmware V4.80, a transient
A07565withr0483[0] = 0x0008appears on the very first zero mark after power-up even when wiring is correct. This is corrected by either upgrading to firmware ≥ V4.90 or by suppressingA07565until referencing is complete. -
Double zero mark: Some encoder simulators produce a doubled zero pulse to compensate for EMC. The SMC30 debouncer in
p0437[0](filter time, typically 0.1 µs to 10 µs) may reject one of the two pulses. Ifr0483[0] = 0x0002is logged on a known-good simulator, increasep0437[0]in 1 µs steps until the alarm clears. -
Mixed-parameter sets: When the project has multiple parameter sets (DDS), ensure that
p0480andp4652are written into all active sets; otherwise the alarm returns when the drive switches DDS.
Verification and Commissioning Checklist
- Clear the alarm buffer with
p3981 = 30(acknowledge all) or via Diagnostics > Alarms > Acknowledge on the operator panel. - Rotate the encoder at least one full revolution. Verify
r0061[0](speed) and the position counterr0481[0]advance smoothly without jumps. - Monitor
r2124live: it must remain 0 throughout one revolution, including the zero-mark event. - Run a controlled reference-point approach with the controller, observe
r3996[0]and confirm the position is set to zero at the zero-mark crossing. - Repeat for 10 consecutive power cycles. No
A07565should be logged. - Save the project to CFast / SD card and back up to TIA Portal / Starter archive.
Frequently Asked Questions
Why does A07565 appear only when p4652 = 1 is set?
The reset-with-zero-mark operation runs in the same firmware path as the PROFIdrive encoder interface diagnostics. If the controller has not yet completed referencing, it sets G1_ZSW.15, and SINAMICS raises A07565 at the very first zero-mark evaluation. Gating p4652 behind the axis-referenced status bit, or disabling the interface with p0480[0] = 0, eliminates the race condition.
Where is parameter p0480 located, and why is it not visible in the expert list?
p0480[0] is in access level 3 (Service / Commissioning). It is hidden when the drive is at level 4 (OEM only) or when the project filters it out. Set p0003 = 3 on the operator panel, or in Starter / Startdrive enable the "Service" access level in the project properties, to reveal the parameter.
How do I decode the alarm value in r2124?
Read r2124 as a decimal integer, then map it bitwise against the description of r0483[0]. For example, an r2124 = 2 means "zero mark error" (bit 1 set). If multiple bits are set, all corresponding error conditions must be addressed before the alarm will stay cleared.
Can A07565 be triggered by a megger test on the encoder cable?
Yes, if the cable is meggered at 500 V DC while still connected to the SMC30 or to the encoder simulator, the discharge current latches a transient error in the input stage. Always disconnect both ends of the cable before applying the test voltage, short the conductors to ground after the test, and power-cycle the SMC30 to clear the latch.
Is the Emerson Universal SM-Encoder Plus supported on the SMC30?
The SMC30 accepts any incremental encoder that conforms to TTL (5 V) or HTL (24 V) levels on tracks A, B, and the zero mark, with a maximum input frequency of 500 kHz. The SM-Encoder Plus is configurable to these levels and is therefore supported, provided the signal-level parameter p0430 and the encoder-supply parameter p0405 on the SMC30 are set to match the simulator's output configuration.