EtherCAT state machine
Before communication via EtherCAT is possible, the fieldbus scans the EtherCAT state machine when booting. The following illustration shows the possible state change from the point of view of an EtherCAT slave:
Fig. 1: EtherCAT state machine
|
State
|
Description
|
|
Init
|
–
Initialization phase
–
No SDO/PDO communication with the slaves
–
Device can be detected by fieldbus scan
|
|
Pre-operational
|
–
The fieldbus is active.
–
SDO communication (mailbox communication) is possible.
–
No PDO communication
|
|
Safe-operational
|
–
SDO communication (mailbox communication) is possible.
–
PDO communication:
– The input data in the process image is updated. – The output data from the process image is not transferred to the slaves. |
|
Operational
|
Normal operation
–
SDO communication
–
PDO communication
–
Fieldbus synchronization has been successful (if used)
|
A fieldbus scan is possible in any EtherCAT state.
The SDO communication via the EtherCAT bus is only possible if at least the "Pre-Operational" state has been reached.
AL status code
Possible errors during transitions between states are entered in the EtherCAT register of the concerned slave in AL Status Code (address 0x0134:0x0135).
|
Often indicated AL status code [hex]
|
Description
|
|
0x0000
|
No error
|
|
0x0011
|
Invalid status change requested
|
|
0x0012
|
Unknown status requested
|
|
0x0013
|
Bootstrap status is not supported
|
|
0x0016
|
Invalid mailbox configuration Pre-Operational
|
|
0x001A
|
Synchronization error
|
|
0x001B
|
Sync manager watchdog
|
|
0x001D
|
Invalid output data configuration
|
|
0x001E
|
Invalid input data configuration
|
|
0x002B
|
Invalid input and output data
|
|
0x0030
|
Invalid configuration of DC synchronization
|
|
0x9001
|
Firmware watchdog error
|
|
0x9002
|
Mapping error
|