Siemens S7-1500 Operating Instructions Manual page 45

Simatic net
Hide thumbs Also See for S7-1500:
Table of Contents

Advertisement

● 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
manually in the declaration table of block instead of selecting an entry from the "Data type"
drop-down list. The corresponding SDT is then created with its parameters.
CP 1543-1
Operating Instructions, 05/2017, C79000-G8976-C289-07
Configuration, programming
4.6 Program blocks for OUC
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp 1543-1

Table of Contents