Siemens SIMATIC S5 Manual page 53

Ethernet communication (iso on tcp) between controllers
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

2 Engineering
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
Note
(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
Block
OB 100
OB 1
F B7
DB 35
DB 25
DB 3
DB 4
DB 100
DB 200
DB 110
DB 210
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.
Ethernet Communication (ISO on TCP) between SIMATIC S5 and
SIMATIC S7-1500 Controllers
Entry-ID: 109482475,
V1.2,
Symbol
Startup
Main
ConnManagerProgID7
InstConnManagerProgID7
ConnectParamID7
InstTRCV_CID7
InstTSENDID7
ParaDbID7_TSEND
ParaDbID7_TRCV_C
DataTSEND
DataTRCV_C
07/2019
Description
Startup OB
Cyclic OB
Management TRCV_C ID 7
Instance DB of FB 4
Connect parameter ID 7
Instance DB TRCV ID 7
Instance DB TSEND ID7
Parameter DB TSEND
Parameter DB TRCV
Send data area
Receive data area
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500Cp1543-1Cp1430 tcp

Table of Contents