
9. CONNECTION TO FANUC I/O Link
B–63523EN/03
354
(3)When there are two or less data lines where keys are entered, whether
multiple keys are entered on a data line is checked.
The data of all addresses are subtracted from the OR (R1) to obtain
result R2. When R2 = 00h, there is no data line where multiple keys
are entered.
Example) When there is one data line where a key is entered
State (b): R2 = FCh
State (c): R2 = F8h
When there are two data lines where keys are entered
State (d): R2 = 00h
State (e): R2 = FCh
(4)Decision 2
1 When R2 = 00h
³ There are two or less data lines where keys are entered, and no
multiple keys are entered on a data line. In this case, the total
number of keys entered is 1 or 2, thus representing valid key
input.
Example) State (d)
2 When R2 0 00h
³ There are two or less data lines where keys are entered, and
multiple keys are entered on a data line. Go to (5).
(5)Decision 3
1 When there is one data line where keys are entered ³ Go to (6).
2 When there are two data lines where keys are entered
³ Three or more keys are entered, thus representing invalid key
input.
Example) State (e)
(6)The result of subtraction (R2) is added to the OR (R1). When the result
of addition is 00h, the total number of keys entered is 2.
Example) State (b): R1 + R2 = 04h + FCh = 00h
State (c): R1 + R2 = 04h + F8h = FCh
(7)Decision 4
1 When R1 + R2 = 00h
³ There is one data line where keys are entered, and two keys are
entered on the data line. This means that the total number of
keys entered is 2, representing valid key input.
Example) State (b)
2 R1 + R2 0 00h
³ Three or more keys are entered on a data line, thus representing
invalid key input.
Example) State (c)
(8)Only when valid key input is confirmed by decisions 1 through 4, all
DI data (Xm+4 to Xm+11) is used by the ladder program.