
8. CONNECTION TO FANUC I/O Link
B–64193EN/01
216
(Operation of ladder program)
The example of the operation of ladder program is shown about matrix
DI composed of 8bits x 8commons as follows.
[1]The number of datalines where the keyinput exists is examined.
Logical add R1 of the data of all addresses is calculated. The number
of bits which are “1” in the 8bits data of R1 corresponds to the number
of datalines where the keyinput exists.
(1)When the data of R1 is corresponding to 00h, there is no bit which
is “1” in the data of R1.
Ex. State (a): R1 + (00000000)
³ There is no dataline where input exists.
(2)when the data of R1 is corresponding to the data in undermentioned
datatable 1., the number of bits which are “1” in the data of R1 is
one. Similarly, when the data of R1 is corresponding to the data in
datatable 2., the number of bits which are “1” in the data of R1 is
two.
Ex. State (b) or (c): R1 + (00000100)
³ There is one dataline where input exists.
Ex. State (d) or (e): R1 + (00010100)
³ There are two datalines where input exists.
(3)If the data of R1 is not corresponding to 00h and the both datatables,
the number of bits which are “1” in the data of R1 is three or more.
Ex. State (f): R1 + (00110100)
³ There are three datalines where input exists.
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.
00010001 00100010 01000100 10001000
[2]Judgment 1
(1)If there is no dataline where the keyinput exists.
³ Any key switch is not pushed.: Ex. State (a)
(2)When the keyinput exists in two datalines or less.
³ To [3]
(3)When the keyinput exists in three data lines or more.
³ There are three keyinputs or more.
It is invalid keyinput.: Ex. State (f)