Checkerrors Subroutine - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Network 23: State "Disconnect Wait"...
Wait in this state for the disconnect operation to complete.
Network 24: Call the DISCONNECT instruction with Req = FALSE to check the status of the
disconnect operation.
Network 25: If Done is TRUE, this means that the disconnect is complete, so try to reconnect
on the next scan.
If Busy is TRUE (this would be normal), stay in the "Disconnect Wait" state.
If there is an error, check the reason, and you may need to change state based upon the
error code.
Network 26: Exit Switch.
9.4.4.5

CheckErrors subroutine

The CheckErrors subroutine (Page 535) checks the Open User Communication error codes
and determines if the program requires a state change. You use the same CheckErrors
subroutine for both the Active partner (client) and Passive partner (server).
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
9.4 Open user communication library
Libraries
543

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents