beautypg.com

Sel language – IAI America DS-S-C1 User Manual

Page 48

background image

46

12. SEL Language

[Function]

Turns ON, OFF, or inverts from the output · flag designated in operand 1 to the output · flag designated
in operand 2.

BTXX

n

o

i

s

n

a

p

x

E

n

o

it

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

it

i

d

n

o

c

)

g

a

l

F

·

O

/I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

r

o

p

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

it

p

O

l

a

n

o

it

p

O

X

X

T

B

g

a

l

F

·

t

u

p

t

u

O

l

a

n

o

it

p

O

BTXX (Output Port

Flag Operation)

ON

...

Turns the status ON.

OF

...

Turns the status OFF.

NT

...

Inverts the status.

[Example 1]

BTON

300

Output port 300 turns ON.

[Example 2]

BTOF 300

307

Output port 300

307 turns OFF.

[Example 3]

LET

1

600

Assign 600 to variable 1.

BTNT

∗1

Invert flag 600 (content of variable 1).

[Example 4]

LET

1

600

Assign 600 to variable 1.

LET

2

607

Assign 607 to variable 2.

BTON

*1

*2

Turns flags from 600 (content of variable 1) to 607
(content of variable 2) ON.

12.7

I/O · Flag operation commands