beautypg.com

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

Page 35

background image

33

[Function]

Clears the variables from the variable in operand 1 to the variable in operand 2.
The contents of the cleared variables becomes 0.
When 0 is assigned to the variable in operand 1, the output turns ON.

[Example 1]

CLR

1

5

Clear variables from 1 to 5.

[Example 2]

LET

1

10

Assign 10 to variable 1.

LET

2

20

Assign 20 to variable 2.

CLR

*1

*2

Clear variables from 10 (content of variable 1)
to 20 (content of variable 2).

12. SEL Language

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

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

i

t

p

O

l

a

n

o

i

t

p

O

R

L

C

.

o

N

e

l

b

a

i

r

a

V

.

o

N

e

l

b

a

i

r

a

V

R

Z

CLEAR (Clear Variables)