Beckhoff TwinCAT 3 (XAR/XAE) with EtherCAT warning WcState: Working counter error (WcState = 1, FrmXWcState ≠ 0)

Beckhoff TwinCAT 3 (XAR/XAE) with EtherCATwarningTwinCAT 3.1; ADS Basics 2.6.2, EtherCAT System Manual 6.1.0, NC Errors 2.5.1

Each slave that processes a datagram increments its working counter; the master knows the expected value. If it comes back wrong, the master cannot trust the data and discards all input data of that datagram: every slave in it shows WcState = 1 (invalid real-time communication) and FrmXWcState sets the bit of that command. Because one datagram serves several slaves, WcState does not say which slave failed; the slave State variable does.

Diagnose this with AI

Upload a keypad photo, the fault history or a parameter export from your Beckhoff TwinCAT 3 (XAR/XAE) with EtherCAT. InduQT compares the evidence and suggests the next useful checks.

Try Free PLC Fault Diagnostic

When it happens

Likely causes and checks

1A slave not in OP (INIT/PREOP/SAFEOP) or not present

Points to it
One slave’s State shows 0x__1/0x__2/0x__4 or 0x0100 "slave not present"; DevState bits 8–11 set.
Check
Read the State of every slave in the online view and start with the first one not in OP.

2Frames corrupted or lost on the line (cable, connector, shielding, EMC)

Points to it
CRC / frame error counters rising on one port; LostFrames on the master.
Check
Read CRC counters per port and follow them to the first port that counts; check cable, connectors and shield per ETG.1600.

3Power loss or reset of a device or segment

Points to it
Lost link counters incremented; slave State shows link errors (0x0200/0x0400).
Check
Check the supply of the coupler or device and the lost link counters.

Telling it apart

Relevant parameters

ParameterNameWhy it matters
DevStateMaster device stateShould be 0 in operation; bits 8–11 slaves in INIT/PREOP/SAFEOP/error, bit 12 DC not in sync.
FrmXWcStateFrame working counter stateOne bit per command in cyclic frame X; should be 0.

Evidence to collect

Work on fuel trains, burners, pressure vessels and electrical equipment must be done by qualified personnel following the manufacturer’s documentation and local codes. Never bypass a safety device or interlock.

Related