beautypg.com

2 ethernet option sel commands, Ethernet option sel commands – IAI America XSEL Ethernet User Manual

Page 41

background image

- 35 -

6.2

Ethernet Option SEL Commands








 OPEN (Channel open) [* 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

OPEN

Channel

number

Prohibited CC

[Function]

Open the channel specified in operand 1.
Transmission via the specified channel will hereafter be enabled.
Before executing this command, the end character must be set with an SCHA command and the
IP address/port address of connection destination with an IPCN command.

(Note 1)

Channel Nos. 31 through 34 can be specified in operand 1 with the Ethernet option.

Up to four channels can be opened simultaneously.

(Note 2)

Be sure to design the program in such a way that the normal completion or abnormal completion
of the return code will always be confirmed before moving on to the next process.

(Note 3)

To change the connection destination, the channel must be closed once using a CLOS command.
It may take approximately four seconds to reopen the closed channel.

Executing an OPEN command for a given channel while the channel is already open will
generate a “B1B: Ethernet socket open-without-close error.”

(Note 4)

To avoid occurrence of system trouble, it is recommended that the system be built by ensuring a
sufficient period so that the port opening order of the connected device and controller will satisfy
“server port open

 client port open.”













(Note 5)

When the controller is used as a server, the number of clients that can be connected to one
server-port channel simultaneously is 1.

(Note 6)

If a firewall (including the firewall function of virus protection software) is installed in the PC, etc.,
the port block must be canceled or the firewall function disabled before a connection can be
made.

(This is because the very purpose of firewall software is to block external connection to the
protecting device.)

(Note 7)

The client/server mode is determined upon reset via “I/O parameter No. 124: Network attribute 5,
bits 8 to 11 (CH31), bits 12 to 15 (CH32), bits 16 to 19 (CH33) or bits 20 to 23 (CH34).” The
controller cannot be used during dynamic switching between the client and server modes.

(HOST A)
OPEN 33

(1) Server open
Opens the port and waits for a
connection request from the client
(specified with an IPCN command).

(2) Client open
Opens the port and issues a connection
request to the server (specified with an
IPCN command).

(HOST B)
OPEN 31

Connection request

* The “Ethernet Option SEL Commands” are supported in the following versions:

X-SEL (Cartesian) Main Application V0.79 or later

X-SEL (IX SCARA) Main Application V0.29 or later

X-SEL PC Software Ver. 2.1.1.0 or later