PNIO_CNTL_STOP_COM

../_images/9146fd72cfe6a1030a317f34567c6391
General Information
Available as of PLC runtime system V2.6.2 and above
Available as of AB version V2.1 and above
Available as of CM579-PNIO version V2.8.4.20 and above
Included in library Profinet_Ext2_AC500_V26.lib
Type Function Block with historical values.

The Function Block PNIO_CNTL_STOP_COM can be used to stop the communication of the PROFINET IO Controller. That means the communication state is changed from Operate to Stop.

../_images/ad0df628d435ad7a0a317f34466c3091

Note

The user is responsible for resetting of the PROFINET IO related part of the PLC application when the bus communication is re-started

The next figure shows the flowchart of the execution of the Function Block PNIO_CNTL_STOP_COM.:

../_images/6f7b1b47d435a5fb0a317f3438fa71ab

When the execution is started the bus communication will be disabled. After that the communication state is checked and it’s waited until the communication state is Stop.

If the PROFINET IO Controller is in communication Stop and the input RESET_IO is TRUE the IOs will be reset.

The execution of the FB was successful if the communication state was changed to Stop and no error is occurred during resetting the IOs. If the PROFINET IO Controller is not in the communication state Stop within the specified timeout the execution of the FB is failed.

Note

The IO reset functionality of the FB PNIO_CNTL_STOP_COM is not synchronized. That means there is no notification when the reset is finished.

The FB PNIO_CNTL_STOP_COM has an internal waiting time of 1000ms to be sure the IOs were reset. If this time is not sufficient it has to be waited an additional time before the communication is re-started with the FB PNIO_CNTL_START_COM.