User guide

Page 175
Chapter 4. Programming
[Function] Opens the channel specified in Operand 1. Channels specified after this will be able to transmit and receive
signals. An ending character must be set by the SCHA command before executing this command.
[Example] SCHA 10
OPEN 1
Designate 10 (=LF) as the ending character.
Open channel 1.
SCHA 13
LET 1 2
OPEN *1
Designate 13 (=CR) as the ending character.
Assign 2 to variable 1. Open channel 2, the value contained in variable 1.
2-8 External Input Output Command
OPEN (Open Channel)
CLOS (Close Channel)
[Function] Closes the channel specified in Operand 1. Channels specified after this will be unable to transmit and receive
signals.
[Example] CLOS 1
Close the channel.
[Example] LET 1 2
CLOS *1
Assign 2 to variable 1.
Close channel 2, the value contained in variable 1.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional OPEN Channel no.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional CLOS Channel no.