Get state of EtherCAT network
Simulink® Real-Time™ Library for EtherCAT®
The EtherCAT Get State block returns the state of the EtherCAT network.
|1||Initialization – The system finds slave devices and initializes the communication controller.|
|2||Preoperational — The system uses the communication controller to exchange system-specific initialization data. In this state, the network cannot transmit or receive signal data.|
|4||Safe operational — The network is running and ready for full operation. The master sends input data to the slave device. The slave device output remains in a safe state.|
|8||Operational — The network is in full operation. The master sends input data to the slave device. The slave device responds with output data.|
Reception from the EtherCAT network.
A unique integer in the range
identifies the Ethernet card for an EtherCAT network.
To associate a block with an EtherCAT network, copy the Device index value from the EtherCAT Init block representing that network into the Device index for the block.
The default value of Device index is
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).