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-9
23.4 Assigning Parameters for the Local Communications
Access Point with UDP
Data Block for Assigning Parameters for the Local Communications Access
Point
To assign parameters for the local communications access point, 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 between the
user program and the communications level of the operating system.
The CONNECT parameter of FB 65 "TCON" contains a reference to the address of
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 this connection between the user
program and the communications level of the
operating system (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#13: UDP
5 active_est BOOL FALSE ID for the way the connection is established: You
must assign FALSE to this parameter since the
communications access point can be used to both
send and receive data.
6 local_device_id BYTE B#16#02
B#16#02: communication via the integrated IE-
interface for CPU 317-2 PN/DP
B#16#03: communication via the integrated IE-
interface for CPU 319-3 PN/DP
7 local_tsap_id_len BYTE B#16#02 Length of parameter local_tsap_id used; possible
value: 2
8 rem_subnet_id_len BYTE B#16#00 This parameter is currently not used. You must
assign B#16#00 to it.
9 rem_staddr_len BYTE B#16#00 This parameter is currently not used. You must
assign B#16#00 to it.
10 rem_tsap_id_len BYTE B#16#00 This parameter is currently not used. You must
assign B#16#00 to it.
11 next_staddr_len BYTE B#16#00 This parameter is currently not used. You must
assign B#16#00 to it.