17 communication – IAI America XSEL-KX User Manual
Page 212
![background image](/manuals/350295/212/background.png)
196
Part 4 Commands
1.17 Communication
OPEN (Open channel)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1
Operand 2
Optional
Optional
OPEN
Channel
number
Prohibited
CP
[Function]
Open the channel specified in operand 1.
The specified channel will be enabled to send/receive hereafter.
Prior to executing this command, a SCHA command must be used to set an end character.
[Example]
SCHA
10
OPEN
1
Specify 10 (= LF) as the end character.
Open channel 1.
Note: If “OPEN 1” is executed, the teaching connector (D-sub, 25-pin) will
be disconnected. (This is because channel 1 is shared by the
teaching pendant/PC software.)
CLOS (Close channel)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1
Operand 2
Optional
Optional
CLOS
Channel
number
Prohibited
CP
[Function]
Close the channel specified in operand 1.
The specified channel will be disabled to send/receive hereafter.
[Example]
CLOS
1
Close channel 1.
LET
1
2
CLOS
*1
Assign 2 to variable 1.
Close the content of variable 1 (channel 2).