beautypg.com

Communication – IAI America PSEL User Manual

Page 216

background image




206

Part 2 Programs

1.18 Communication


 OPEN (Open channel)

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 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

0

Specify 10 (= LF) as the end character.
Open channel 0.

Note: If “OPEN 0” is executed, communication with the teaching pendant

or PC software will be cut off.







 CLOS (Close channel)

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

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

0

Close channel 0.

LET

1

0

CLOS

*1

Assign 0 to variable 1.

Close the content of variable 1 (channel 0).