98BDevice configuration
5.6 Configuring the CPU for communication
S7-1200 Programmable controller
120
System Manual, 11/2011, A5E02486680-05
Parameter
Definition
TSAP
1
and Subnet ID:
ISO on TCP (RFC 1006) and S7 communication: Local and partner CPU
TSAPs in ASCII and hexadecimal formats
1
When configuring a connection with an S7-1200 CPU for ISO-on-TCP, use only ASCII characters in the TSAP extension
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
Description
0 … 1
block_length
UInt
Length: 64 bytes (fixed)
2 … 3
id
CONN_OUC
(Word)
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.
4
connection_type
USInt
Connection type:
17: TCP (default)
18: ISO-on-TCP
19: UDP