Manual
48
133 • • • • • • • • • • • Variable 99
[Function] Reads the value from the designated I/O port or flag as a binary number, then stores this
value in variable register 99.
= 133 in decimal notation
• • • Binary Number
• • • Input Port No.
noisnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·tuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpONIgalF·tropO/IgalF·tropO/I
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
3222120291817161
NOFFOFFOFFOFFONOFFONO
Note: The maximum input limit for the port is 31 consecutive bits.
[Example 1] IN 8 15 Read input ports 8 ~15 as a binary number in variable 99.
ò
Binary number
ò
12. SEL Language
● IN (Binary Number Read I/O • Flag)
[Example 2] LET 1 8 Assign 8 to variable 1.
LET 2 15 Assign 15 to variable 2.
IN *1 *2 Read port 8(content of variable 1) to port 15
(content of variable 2) as a binary number to variable 99.
0010010
1
2
7
+ 0 + 0 + 0 + 0 + 2
2
+ 0 + 2
0
28 + 0 + 0 + 0 + 0 + 4 + 0 + 2