ECAT_STOP_COM

../_images/882c4367e48d753d0a317f34755c3358
General Information
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’.

../_images/d9f445c53ba43e5e0a3313900131a81c

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:

../_images/d32398b73ba4373d0a33139001a491fe

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.