
B–63523EN/03
9. CONNECTION TO FANUC I/O Link
353
(Ladder operation)
The following provides examples of ladder operation based on the DI
matrix of 8 (bits) 8 (common), indicated on the next page.
(1)The number of data lines where keys are entered is checked.
The OR (R1) of the data of all the addresses is found. Among the eight
bits of the R1 data, the number of bits set to 1 represents the number
of data lines where keys are entered.
1 The R1 data is compared with 00h. If a match is found, the number
of R1 data bits set to 1 is 0.
Example) State (a): R1 = (00000000) ³
The number of data lines where keys are entered is 0.
2 The R1 data is compared with the data tables below. If the R1 data
matches the data in data table 1, the number of R1 data bits set to
1 is 1. Similarly, if the R1 data matches the data in data table 2, the
number of R1 data bits set to 1 is 2.
Example) State (b) or (c): R1 = (00000100) ³
The number of data lines where keys are entered is 1.
Example) State (d) or (e): R1 = (00010100) ³
The number of lines where keys are entered is 2.
3 If the R1 data is not 00h, and does not match the data of either data
table, the number of R1 data bits set to 1 is 3 or more.
Example) State (f): R1 = (00110100) ³
The number of lines where keys are entered is 3.
00000001 00000010
00000100 00001000
00010000 00100000
01000000 10000000
00000011 00000110 00001100 00011000
00110000 01100000 11000000 10000001
00000101 00001010 00010100 00101000
01010000 10100000 01000001 10000010
00001001 00010010 00100100 01001000
10010000 00100001 01000010 10000100
Data table 1 Data table 2
(2)Decision 1
1 When there is no line where keys are entered
³ No key switch is pressed.
Example) State (a)
2 When there are two or less lines where keys are entered
³ Go to (3)
3 When there are three or more lines where keys are entered
³ Three or more keys are entered. This case is invalid.
Example) State (f)