Siemens SIMATIC NET S7-1500 Operating Instructions Manual page 69

Industrial ethernet
Hide thumbs Also See for SIMATIC NET S7-1500:
Table of Contents

Advertisement

Supported program blocks for OUC
The following instructions in the specified minimum version are available for programming
Open User Communication:
● TSEND_C V3.1 / TRCV_C V3.1
Compact blocks for connection establishment/termination and for sending and receiving
data
or
● TCON V4.0 / TDISCON V2.1
Connection establishment / connection termination
● TUSEND V4.0 / TURCV V4.0
Sending and receiving data via UDP
● TSEND V4.0 / TRCV V4.0
Sending and receiving data via TCP or ISOonTCP
● TMAIL_C V4.0
Sending e-mails
Note the description of TMAIL_C as of version V4.0 in the STEP 7 information system.
Connection establishment and termination
Connections are established using the program block TCON. Note that a separate program
block TCON must be called for each connection.
A separate connection must be established for each communications partner even if
identical blocks of data are being sent.
After a successful transfer of the data, a connection can be terminated. A connection is also
terminated by calling TDISCON.
Note
Connection abort
If an existing connection is aborted by the communications partner or due to disturbances on
the network, the connection must also be terminated by calling TDISCON. Make sure that
you take this into account in your programming.
Connection descriptions in system data types (SDTs)
For the connection description, the blocks listed above use the parameter CONNECT (or
MAIL_ADDR_PARAM with TMAIL_C). The connection description is stored in a data block
whose structure is specified by the system data type (SDT).
Creating an SDT for the data blocks
You create the SDT required for every connection description as a data block. You generate
the SDT type in STEP 7 by entering the name (e.g. "TCON_IP_V4") in the "Data type" box
CP 1543-1
Operating Instructions, 12/2019, C79000-G8976-C289-08
Configuration, programming
4.9 Program blocks for OUC
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 1543-1

Table of Contents