Libraries
9.4 Open user communication library
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
543
: State "Disconnect Wait"...
Wait in this state for the disconnect operation to complete.
: Call the DISCONNECT instruction with Req = FALSE to check the status of the
disconnect operation.
: 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.
: Exit Switch.
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).