beautypg.com

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

Page 53

background image

51

[Function] Output the value of variable 99 to ourput ports or flags from operand 1 to operand 2.

Note 1: The maximum number of digits that can be output is 8 (32 bits).

Note 2: The output port • f lag used is 4 x n (number of digits).

.

[Example 1]

OUT

300

2

Write the value of variable 99 as a BCD value to output ports from 300
for 2 digits (up to 307).

[Example 2]

LET

1

300

Assign 300 to variable 1.

LET

2

2

Assign 2 to variable 2.

OUT

*1

*2

Write the value of variable 99 as a BCD value to output ports from 300
(content of variable 1) for 2 digits (content of variable 2) (up to 15).

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

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

B

T

U

O

g

a

l

F

·

O

/I

s

t

i

g

i

d

D

C

B

f

o

.

o

N

85

• • • • • • • • • • • • • • • •

Variable 99

r

e

p

p

U

r

e

w

o

L

1

0

0

0

0

1

0

1

• • •

Binary number

ò

12. SEL Language

OUTB (BCD Output)

• • •

Output port Number

ON

OFF

OFF

OFF

OFF

OFF

ON

ON

307

306

305

304

303

302

301

300

т