98BDevice configuration
5.6 Configuring the CPU for communication
Byte
Parameter and data type
34 ... 39
rem_staddr
40 ... 55
rem_tsap_id
56 ... 61
next_staddr
62 ... 63
spare
122
Description
Array [1..6] of
TCP and ISO-on-TCP only: IP address of the partner end point.
USInt
(Not relevant for passive connections.) For example, IP address
192.168.002.003 is stored in the following elements of the array:
rem_staddr[1] = 192
rem_staddr[2] = 168
rem_staddr[3] = 002
rem_staddr[4] = 003
rem_staddr[5-6]= irrelevant
Array [1..16] of
Partner address component of connection
Byte
TCP: partner port number. Range: 1 to 49151; Recommended
values: 2000 to 5000):
–
–
–
ISO-on-TCP: partner TSAP-ID:
–
–
–
UDP: This parameter is not used.
Array [1..6] of
This parameter is not used.
Byte
Word
Reserved: W#16#0000
rem_tsap_id[1] = high byte of the port number in
hexadecimal notation
rem_tsap_id[2] = low byte of the port number in
hexadecimal notation;
rem_tsap_id[3-16] = irrelevant
rem_tsap_id[1] = B#16#E0
rem_tsap_id[2] = rack and slot of partner end point (bits 0 to
4: Slot number, bits 5 to 7: rack number)
rem_tsap_id[3-16] = TSAP extension, optional
System Manual, 11/2011, A5E02486680-05
S7-1200 Programmable controller