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
Function
Via the connection actively established by the CP1543-1, a count value is sent
bidirectionally 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.
In case of the SIMATIC S5 CPU being restarted, a deletion identifier is sent and
the count value is reset.
Description of the blocks
The following blocks contain the communication program of the S5-CPU.
Table 2-18
Startup OB (restart/warm start)
Startup OB (network/cold start)
User program call of FB 33 and of the HTBs
SEND/RECEIVE ALL
Time-triggered call of the send and receive
functions via S5 handling blocks (HTBs)
Handling block SEND (-All A-NR:= 0)
Handling block RECEIVE (-All A-NR:= 0)
OB21/OB22 (STARTUP OBs)
The following functions are implemented in the startup of the SIMATIC S5-CPU:
• The set interface (interface no. = 0) of the CP1430 TCP is initialized and
synchronized via the handling block "HTB_Synchron” (FB 249).
• An internal startup bit (M 180.5) and the initial count value are reset.
OB1 (cyclic OB)
The following functions are processed in the cyclic OB1 of the SIMATIC S5-CPU:
• This example scenario 4a is started by setting an enable bit (M 130.0).
• Call of the user communication block ID104_S7 (FB 30) which uses a time
trigger to call the send and receive functions via S5 handling blocks (HTBs)
and increments the count values in the data area.
• Call of the handling blocks SEND ALL and RECEIVE ALL for data transfer to
the CP1430 TCP.
FB30 (ID104_S7)
The function block FB 30 contains the time-triggered call of the send and receive
functions in which a simple simulation program demonstrates the exchange of
data.