Parameters For The Profinet Connection - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

98BDevice configuration
5.6 Configuring the CPU for communication
Parameter
TSAP
1
When configuring a connection with an S7-1200 CPU for ISO-on-TCP, use only ASCII characters in the TSAP extension
1
for the passive communication partners.
Transport Service Access Points (TSAPs)
Using TSAPs, ISO on TCP protocol and S7 communication allows multiple connections to a
single IP address (up to 64K connections). TSAPs uniquely identify these communication
end point connections to an IP address.
In the "Address Details" section of the Connection Parameters dialog, you define the TSAPs
to be used. The TSAP of a connection in the CPU is entered in the "Local TSAP" field. The
TSAP assigned for the connection in your partner CPU is entered under the "Partner TSAP"
field.
Port Numbers
With TCP and UDP protocols, the connection parameter configuration of the Local (active)
connection CPU must specify the remote IP address and port number of the Partner
(passive) connection CPU.
In the "Address Details" section of the Connection Parameters dialog, you define the ports to
be used. The port of a connection in the CPU is entered in the "Local Port" field. The port
assigned for the connection in your partner CPU is entered under the "Partner Port" field.
5.6.3

Parameters for the PROFINET connection

The TSEND_C, TRCV_C and TCON instructions require that connection-related parameters
be specified in order to connect to the partner device. These parameters are specified by the
TCON_Param structure for the TCP, ISO-on-TCP and UDP protocols. Typically, you use the
"Configuration" tab of the "Properties" (Page 118) of the instruction to specify these
parameters. If the "Configuration" tab is not accessible, then you must specify the
TCON_Param structure programmatically.
Table 5- 7
Structure of the connection description (TCON_Param)
Byte
Parameter and data type
0 ... 1
block_length
2 ... 3
id
4
connection_type
120
Definition
and Subnet ID:
ISO on TCP (RFC 1006) and S7 communication: Local and partner CPU
TSAPs in ASCII and hexadecimal formats
UInt
CONN_OUC
(Word)
USInt
Description
Length: 64 bytes (fixed)
Reference to this connection: Range of values: 1 (default) to 4095.
Specify the value of this parameter for the TSEND_C, TRCV_C or
TCON instruction under ID.
Connection type:
17: TCP (default)
18: ISO-on-TCP
19: UDP
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents