Manual
49
[Function] Reads the BCD value from the designated input port, then stores this value in variable register 99.
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·tuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpOBNItroptupnI
fo.oN
stigidDCB
Note 2: The I/O Port • Flag used is 4 x n (number of digits).
[Example 1] INB 8 2 Read input port from 8 for 2 digits (up to 15) as a binary number
to variable 99.
[Example 2 ] LET 1 8 Assign 8 to variable 1.
LET 2 2 Assign 2 to variable 2.
IN *1 *2 Read from input port 8 (content of variable 1) for 2 digits
(content of variable 2)(up to 15) as a BCD value to variable 99.
12. SEL Language
● INB (BCD Read I/O • Flag)
14 13
12 11
10 9
8
15
ON OFF
OFF OFF
OFF
ON
OFF
ON
Upper digits
Lower digits
Note 1: The maximum number of digits that can be input is 8 (32 bits).
⇓⇓
⇓⇓
⇓
••• Input port No.
133
• • • • • • • • • Variable 99