7 i/o, flag operation – IAI America XSEL-KX User Manual

Page 111

Advertising
background image




95

Part 4 Commands

1.7 I/O, Flag Operation


 BTXX (Output port, flag operation)

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

BTXX

Output, flag

(Output,

flag)

CP

[Function]

Reverse the ON/OFF status of the output ports or flags from the one specified in operand 1
through the other specified in operand 2.

(Note)

Dedicated outputs (system outputs) other than general-purpose outputs cannot be specified
in either operand 1 or 2.


BTXX

ON

Switch the status to ON.

OF

Switch the status to OFF.

NT

Reverse the status.


[Example 1]

BTON

300

Turn ON output port 300.

[Example 2]

BTOF

300

307

Turn OFF output ports 300 through 307.

[Example 3]

LET

1

600

Assign 600 to variable 1.

BTNT

*1

Reverse the content of variable 1 (flag 600).

[Example 4]

LET

1

600

Assign 600 to variable 1.

LET

2

607

Assign 607 to variable 2.

BTON

*1

*2

Turn ON the flags from the content of variable 1 (flag
600) through the content of variable 2 (flag 607).

Advertising
This manual is related to the following products: