Ethernet Communication (ISO on TCP) between SIMATIC S5 and
SIMATIC S7-1500 Controllers
Entry-ID: 109482475, V1.2, 07/2019
© Siemens AG
2019 All rights reserved
Via the connection, data are sent bidirectionally with a count value from the
SIMATIC S5 to the S7-1500 every second. From there, this count value is mirrored
and sent back. After the data have been received, this count value is increased by
+1 and sent again.
The mixed variant of the OUC blocks TRCV_C (compact instruction) and TSEND
(single instruction) used in this example scenario is recommended, if only one
connection ID shall be used for sending and receiving the data.
Further details and information concerning this mixed operation are given in the
following entry (109479564).
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 7 which manages the
OUC communication.
FB 7 (TSEND/TRCV_C management)
In FB7, the data are received by the SIMATIC S5 via the cyclically processed OUC
block TRCV_C. 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 written into DB210 "DataTRCV_C”
and copied into DB110 (DataTSEND) to be sent again. Via a send enable "E0.1”
(abortReq), these data are mirrored and sent back to the SIMATIC S5 every
500 ms.