Siemens SIMATIC S5 Manual page 55

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

Advertisement

2 Engineering
Description of the blocks
The following blocks contain the communication program of the S5-CPU.
Table 2-15
Block
OB 21
OB 22
OB 1
FB 32
FB244
FB245
FB249
DB 85
DB 80
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 191.5) resets the initial count value.
OB1 (cyclic OB)
The following functions are processed in the cyclic OB1 of the SIMATIC S5-CPU:
This example scenario 3 is started via the enable bit (M 130.2).
Call of the user communication block ID7_S7 (FB 32) which calls 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.
FB32 (ID7_S7)
The function block FB 32 contains the time-triggered call of the send and receive
functions in which a simple simulation program demonstrates the exchange of
data.
Communication is initiated via the startup bit M 191.5 (OB21/22) and the
enable bit (M 130.2).
Every second (clock memory bit), a count value (DB85) is sent to the S7-1500
CP1543-1 via the ISO-on-TCP connection.
After the data have been received, this count value is checked in the S7-1500,
incremented by +1 and sent back to the SIMATIC S5 at the next send trigger of
the S7-1500. The data received by the SIMATIC S5 are transferred to DB101.
A simple error analysis regarding the connection status is done by storing the
indicator words and parameter error bytes.
HTB_SEND block: ANZW: MW85 PAFE: MB89
HTB_RECEIVE block: ANZW: MW80 PAFE: MB84
Ethernet Communication (ISO on TCP) between SIMATIC S5 and
SIMATIC S7-1500 Controllers
Entry-ID: 109482475,
V1.2,
Symbol
Startup_OB21
Startup_OB22
Main
ID7_S7
HTB_SEND
HTB_RECEIVE
HTB_SYNCHRON
-
-
07/2019
Description
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).
Increase of count value in the data
Handling block SEND (-All A-NR:= 0)
Handling block RECEIVE (-All A-NR:= 0)
Handling block SYNCHRON
Data area for sending
Data area for receiving
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500Cp1543-1Cp1430 tcp

Table of Contents