Chapter 4. programming – IAI America S-SEL-E User Manual
Page 142
![background image](/manuals/350298/142/background.png)
Page 137
OUT (Binary Number Output)
[Function] Output the value in variable register 99 as a binary number to the designated output port or flag (range).
Chapter 4. Programming
[Function]
Reads the BCD value from the designated input port, then stores this value in variable register 99.
* The maximum output limit for the port is 31 consecutive bits.
[Example]
OUT
316
323
Output the value of variable register 99 as a binary number to output ports 316 ~ 323.
INB (BCD Read Input/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
I N B
I n p u t p o r t
N o . o f B C D
d i g i t s
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
S t a r t o u t p u t
p o r t · F l a g
F i n i s h o u t p u t
p o r t · F l a g
* 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 input port.
[Example]
INB
16
2
From input port 16, read 4 x 2.
ß
Input port No.
ß
85, in decimal notation
85
Variable 99
U p p e r d ig it s
L o w e r d ig it s
2 3
2 2
2 1
2 0
1 9
1 8
1 7
1 6
O N
O F F
O F F
O F F
O F F
O N
O F F
O N
8
5
ò
133
Variable 99
ß
Output port No.
Output port
323
322
321
320
319
318
317
316
ON
OFF
OFF
OFF
OFF
ON
OFF
ON
Upper
Lower
1
0
0
0
0
1
0
1
ò
Binary number
т