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-11
23.5 Structure of the Address Information for the Remote
Partner with UDP
Overview
With FB 67 "TUSEND", at the parameter ADDR you transfer the address of the
receiver. This address information must have structure specified below.
With FB 68 "TURCV", in the parameter ADDR you get the address of the sender of
the data that were received. This address information must have structure specified
below.
Data Block for the Address Information of the Remote Partner
You have to create an DB that contains one or more data structures as per UDT 66
"TADDR_PAR".
In parameter ADDR of FB 67 "TUSEND" you transfer and in parameter ADDR of
FB 68 "TURCV" you receive a pointer to the address of the associated remote
partner (e.g. P#DB100.DBX0.0 byte 8).
Structure of the Address Information for the Remote Partner (UDT 66)
Byte Parameter Data
Type
Start Value Description
0 to 3 rem_ip_addr ARRAY
[1..4] of
BYTE
B#16#00 ... IP address of the remote partner, e.g.
192.168.002.003:
rem_ip_addr[1] = B#16#C0 (192)
rem_ip_addr[2] = B#16#A8 (168)
rem_ip_addr[3] = B#16#02 (002)
rem_ip_addr[4] = B#16#03 (003)
4 to 5 rem_port_nr ARRAY
[1..2] of
BYTE
B#16#00 ... remote port no. (possible values: 2000 to 5000)
rem_port_nr[1] = high byte of port no. in
hexadecimal representation
rem_port_nr[2] = low byte of port no. in
hexadecimal representation
6 to 7 spare ARRAY
[1..2] of
BYTE
B#16#00 ... irrelevant
See also:
Examples of Parameters for Communications Connections