Technical data

Table Of Contents
Open Communication via Industrial Ethernet
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
23-5
23.3 Assigning Parameters for Communications
Connections with TCP native and ISO on TCP
Data Block for Assigning Parameters
To be able to assign parameters for TCP native and ISO on TSP for
communications connections, create a DB that contains the data structure from the
UDT 65 "TCON_PAR". This data structure contains the parameters necessary for
configuring the connection. You will need such a data structure for every
connection. You can assemble this structure in a global DB.
The CONNECT connection parameter address of FB 65 "TCON" contains a
reference to the associated connection description (e.g. P#DB100.DBX0.0 byte
64).
Structure of the Connection Description (UDT 65)
Byte Parameter Data
Type
Start Value Description
0 to 1 block_length WORD W#16#40 Length of UDT 65: 64 Bytes (fixed)
2 to 3 id WORD W#16#0000 Reference to the connection (range of values:
W#16#0001 to W#16#0FFF)
You must specify the value of the parameter in the
respective block with the ID.
4 connection_type BYTE B#16#01 Connection type:
B#16#11: TCP/IP native
B#16#12: ISO on TCP
B#16#01: TCP/IP native (compatibility mode)
5 active_est BOOL FALSE ID for the way the connection is established:
FALSE: passive establishment
TRUE: active establishment
6 local_device_id BYTE B#16#02
B#16#00: communication via CP
B#16#02: communication via the integrated IE
interface for CPUs 315-2 PN/DP and 317-2
PN/DP
B#16#03: communication via the integrated IE
interface for CPU 319-3 PN/DP
No. of the configured IE interface with WinAC
RTX 2005 (possible values: B#16#01 to
B#16#04)
7 local_tsap_id_len BYTE B#16#02 Length of parameter local_tsap_id used; possible
values:
0 or 2, if connection type = B#16#01 or
B#16#11
For the active side, only the value B#16#00 is
permitted.
2 to 16, if connection type = B#16#12
8 rem_subnet_id_len BYTE B#16#00 This parameter is currently not used. You must
assign B#16#00 to it.