Ethernet Communication (ISO on TCP) between SIMATIC S5 and
SIMATIC S7-1500 Controllers
Entry-ID: 109482475, V1.2, 07/2019
The data are sent and received bidirectionally via the OUC blocks TSEND and
TRCV. The data are sent every 0.5 seconds (via clock memory bit). To detect the
ongoing data communication in the S7-1500, a count value is received by the
SIMATIC S5, mirrored and sent back. For visualization, the received count value is
transferred to the output area AB0.
Description of the blocks
OB 100 (startup OB)
After having restarted the S7-1500 CPU, a start identifier is set for automatically
establishing a connection to the SIMATIC S5.
OB 1 (cyclic OB)
Via the enable input "E 0.1” (abortReq), the OB1 calls FB 4 which manages the
OUC communication.
FB 4 (TSEND/TRCV management)
In FB4, the data are received by the SIMATIC S5 via the cyclically processed OUC
block TRCV. To visualize the ongoing communication, a count value is copied to
an output area (AB 0) of the S7-1500.
The count value received by the SIMATIC S5 is located in the instance data block
of FB4 in the static tag "statRcvData” and is copied to the send area of the instance
data block "statSendData” for sending. Via a send enable "E0.1” (abortReq), these
data are mirrored and sent back to the SIMATIC S5 every 500 ms.
In addition, the received data are checked.
- The data are cyclically checked for a deletion identifier ("A1A1”) being
available. In case of a match, the count value is reset.
- The ongoing communication of the OUC communication is visualized via the
output area of the S7-1500.