State Machine
States
State |
Description |
|---|---|
SETUP |
Initialization of OPC-UA server and EtherCAT master (reading/parsing of ENI file, initialization of link layer) |
FAILED SETUP |
Setup failed. OPC-UA server might be reachable, but EtherCAT master is not instantiated. Usually caused by misconfiguration. |
READY |
OPC-UA server is running and EtherCAT master is activated (but no active communication yet). Waiting for user input (request master state). |
STARTING |
EtherCAT communication is initiated. Master transitions through states INIT, PREOP or SAFEOP (depending on requested state). |
ACTIVE |
EtherCAT master is in state OPERATIONAL. |
ERROR TRANSITION |
An error ocurred in ACTIVE state. The master will try to keep EtherCAT communication active for a configured time period before transitioning to ERROR state. |
ERROR |
An error ocurred in ACTIVE state and the transition timeout is expired. EtherCAT master is in SAFEOP or lower (depending on requested state). |
STOPPING |
Transitional state before STOPPED state. The EtherCAT master is being deactivated. |
STOPPED |
Error state in which no EtherCAT communication is possible. The EtherCAT master is deactivated. |
SHUTDOWN |
The EtherCAT master application is shutting down (including OPC-UA server). |
FINAL |
Final state while the process is being terminated. |
State Chart
Transitions
Transition |
Conditions |
|---|---|
|
HasError |
|
IsMasterActive |
|
IsRestartRequested |
|
HasError or not IsMasterActive |
|
IsMasterStateRequested or IsMasterOperational |
|
HasError or not IsMasterActive |
|
IsMasterOperational |
|
HasError or not IsMasterActive |
|
not IsMasterOperational |
|
not IsMasterActive |
|
not IsErrorTimerActive |
|
IsContinueRequested |
|
not IsMasterActive or IsRestartRequested |
|
IsContinueRequested |
|
not IsMasterActive |
|
IsRestartRequested |
|
not IsMasterActive |
|
IsShutdownRequested |
Conditions
Condition |
Description |
|---|---|
IsMasterActive |
The EtherCAT master is active, i.e. correctly initialised. EtherCAT communication does not need to be initiated. |
IsMasterStateRequested |
An EtherCAT master state was requested by the user application (INIT, PREOP, SAFEOP or OP). |
IsMasterOperational |
EtherCAT master is in state OPERATIONAL (‘OP’). |
HasError |
An error has occurred. |
IsErrorTimerActive |
In ERROR TRANSITION state: the timer for the transition period is still active (not expired). |
IsContinueRequested |
The user app requested ‘Continue’ in error state. |
IsRestartRequested |
The user app requested ‘Restart’. |
IsShutdownRequested |
Shutdown was requested by the operating system. |