IAI America XSEL Ethernet User Manual
Page 48
![background image](/manuals/350340/48/background.png)
- 42 -
IPCN (IP address/port number settings of connection destination) [* When the Ethernet option is used]
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional IPCN
Channel
number
Integer variable
number
CP
[Function]
Set the storage areas of IP address/port number for the connection destination of the user-open
TCP/IP channel. The connection destination information stored in the five consecutive integer
variables, beginning with the integer variable number specified in operand 2, is defined as the
connection destination of the user-open TCP/IP channel specified in operand 1.
This command must always be executed before an OPEN command.
(Note 1)
Channel Nos. 31 through 34 can be specified in operand 1 with the Ethernet option.
(Note 2)
Executing this command while a channel or channels are already open will specify settings for the
next OPEN command.
[Example]
LET
90
192
IP address of connection destination (H) = 192
LET
91
168
IP address of connection destination (MH) = 168
LET
92
72
IP address of connection destination (ML) = 72
LET
93
101
IP address of connection destination (L) = 101
LET
94
64514
Port number of connection destination = 64514
IPCN
31
90
Declare the IP address/port number storage area for the
connection destination of channel 31 = Local integer
variable between 90 and 94.
In the above example, IP address 192.168.72.101 and
port number 64514 are set as the connection destination
of user-open TCP/IP channel No. 31.
Variable
number
n
n + 1
n + 2
n + 3
n + 4
Variable that stores IP address of connection destination (H)
Variable that stores IP address of connection destination (MH)
Variable that stores IP address of connection destination (ML)
Variable that stores IP address of connection destination (L)
Variable that stores port number of connection destination
Variable number
specified in operand 2