Libraries
9.4 Open user communication library
S7-200 SMART
532 System Manual, V2.3, 07/2017, A5E03822230-AF
: Call the TCP_RECV instruction to get any messages that the CPU has
received.
: If Done is TRUE, the instruction received new data, so go to the "Receive
Check" state.
If Busy is TRUE, stay in the "Receive" state until you reach the receive timeout value. If you
time out in this state, disconnect the device and then reconnect it.
If Error is TRUE, check the error code to determine what to do next.
: State "RecvCheck"...
Process the data returned from the passive device.
: This program only checks the returned data to ensure that you received the
same amount of data as was sent and that the first word matches the "Fill Pattern". Log
whether the response was good or bad, and then go to the "Idle" state to wait to send the
next message.