ECAT_STOP_COM¶
Available as of PLC runtime system | V2.4.3 and above |
Available as of AB version | V1.2 and above |
Available as of CM579-EthCAT version | V4.0.0 and above |
Included in library | EtherCAT_EXT_AC500_V25.lib |
Type | Function Block with historical values. |
ECAT_STOP_COM can be used to start communication of the ETHERCAT master. That means the communication state of the master is changed from ‘Operate’ to ‘Stop’. If execution of the Function Block fails the master stays in the communication state ‘Operate’.
Note
The user is responsible for resetting ETHERCAT related part of the PLC application when the bus communication is restarted. At least the internal variables of the sync task have to be reset.
The following figure demonstrates execution of ECAT_STOP_COM:
With execution start the bus communication is disabled. Communication state of the Master is checked and it’s waited until the communication state is ‘Stop’. If the master is in communication state ‘Stop’ and the input RESET_IO is TRUE the IOs will be reset.
Execution of the Function Block was successful if the master was changed to the communication state ‘Stop’ and no error occurred during IO reset. If the master is not in the communication state ‘Stop’ within the specified timeout, the execution of the Function Block is failed.
Note
The IO reset function of ECAT_STOP_COM is not synchronized. That means there is no notification when the reset is finished. ECAT_STOP_COM has an internal waiting time of 1000 ms to ensure the IOs have been reset. If this time is not sufficient it has to be waited an additional time before the communication is re-started with the FB ECAT_START_COM.