beautypg.com

Chapter 4. programming – IAI America S-SEL-E User Manual

Page 143

background image

Page 138

Chapter 4. Programming

OUTB (BCD Output)

E x p a n s i o n

c o n d i t i o n

( A N D · O R )

I n p u t

c o n d i t i o n

( I / O · F l a g )

C o m m a n d

P o s t

( O u t p u t p o r t · F l a g )

C o m m a n d

O p e r a n d 1

O p e r a n d 2

O p t i o n a l

O p t i o n a l

O U T B

S t a r t o u t p u t

p o r t · F l a g

N o . o f B C D

d i g i t s

[Function]

Outputs the value in variable register 99 as a BCD value to the designated output port or flag.

* The BCD value is read as 4 x n. (Every four input ports are read as one set) (n: no. of digits in Operand 2)
* The maximum number of digits that can be read is 8 but this requires a consecutive 32 point output port.

[Example]

OUTB

316

2

From output port 316, output 4 x 2.

85

Variable 99

ß

Output port No.

Output port

323

322

321

320

319

318

317

316

ON

OFF

OFF

OFF

OFF

ON

OFF

ON

т

This manual is related to the following products: