2 Engineering
2.2.3
Communication program SIMATIC S5
Overview
The following blocks contain the communication program of the S5-CPU. In this
scenario, the S5 takes over the active part of the communication.
OB 21
Startup
OB 22
Startup
OB 1
Main
Function
Via an active WRITE connection, a count value is sent cyclically from the SIMATIC
S5 to the S7-1500 every second and then is requested again by the S7-1500 via a
FETCH connection.
Description of the blocks
The following blocks contain the communication program of the S5-CPU.
Table 2-7
Block
OB 21
OB 22
OB 1
FB 40
FB 99
FB244
FB245
FB246
FB249
Ethernet Communication (ISO on TCP) between SIMATIC S5 and
SIMATIC S7-1500 Controllers
Entry-ID: 109482475,
V1.2,
FB40
FB 99
Takt
SEND_ALL
User
blocks
Symbol
Startup_OB21
Startup_OB22
Main
FET_WRI
Clock (1 sec)
HTB_SEND
HTB_RECEIVE
HTB_FETCH
HTB_SYNCHRON
07/2019
HTB
SYNCHRON
HTB FETCH
HTB SEND
HTB
HTB
RECV_ALL
Handling
Data blocks
blocks
Description
Startup OB (restart/warm start)
Startup OB (network/cold start)
User program for FETCH/WRITE function
Time-triggered call of the FETCH and WRITE
functions via S5 handling blocks (HTBs)
Clock generation 1 sec
Handling block SEND (-All A-NR:= 0)
Handling block RECEIVE (-All A-NR:= 0)
Handling block FETCH
Handling block SYNCHRON
COM_FETCH
_DB
COM_WRITE
_DB
DB 70
FET_WRI
21