EasyManuals Logo

Siemens SIMATIC NET S7-400 User Manual

Siemens SIMATIC NET S7-400
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #57 background imageLoading...
Page #57 background image
Configuration and operation
6.9 Interface in the user program
CP 443-1 (EX30)
Manual, 03/2019, C79000-G8976-C255-05
57
6.9.5
Open TCP/IP communication
Use
To allow the user program to exchange data with other TCP/IPcompliant communication
partners, STEP 7 provides a UDT for the connection parameter assignment and four
program blocks (FBs):
UDT 65 "TCON_PAR" with the data structure for connection parameter assignment
FB65 "TCON" for connection establishment
FB66 "TDISCON" for connection termination
FB63 "TSEND" for sending data
FB64 "TRCV" for receiving data
TCP/IP communication is connectionoriented. Data can be transmitted only when a
connection has been established to the communications partner. The CPU can use several
connections to a communications partner at the same time.
The following protocol variants are supported:
ISO on TCP according to RFC 1006
Programming
Make the following parameter settings in the connection description (UDT 65):
local_tsap_id: Byte 1 = 0xE0 (value mandatory for correct functionality)
local_tsap_id: Byte 2 = rack/slot number
remote_tsap_id: Byte 1 = 0xE0 (value mandatory for correct functionality)
remote_tsap_id: Byte 2 = rack/slot number
Note: The TSAPs can be 2-16 bytes long. The first two bytes must be occupied as
described, you can use the other bytes to suit your task.
Note
Note that the number of dynamically established connections also depends on the number of
configured, statically established connections.
You will receive corresponding condition codes on the call interface of the FBs.
Refer to the documentation of the program blocks in the online help and in the
documentation for STEP 7. There, you will also find examples of parameter assignment!

Table of Contents

Other manuals for Siemens SIMATIC NET S7-400

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC NET S7-400 and is the answer not in the manual?

Siemens SIMATIC NET S7-400 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC NET S7-400
CategoryConference System
LanguageEnglish

Related product manuals