
6. CONNECTION OF I/O UNITS TO
MACHINE INTERFACE
B–63323EN/03
262
(3) When the keyinput exists in two datalines or less, it is examined
whether two or more keyinput exists on the same dataline.
The data of all addresses is subtracted from logical add R1 and
subtraction result R2 is obtained. There are no two or more keyinput
on the same dataline if it is R2=00h.
Ex. When there is one dataline where input exists.
State (b) : R2 = FCh State (c) : R2 = F8h
When there are two datalines where input exists.
State (d) : R2 = 00h
State (e) : R2 = FCh
(4) Judgment 2
1) In case of R2 = 00h ³ There are two or less datalines where
input exists, and there are no two or
more keyinputs on the same dataline. In
this case, the numbers of all keyinputs
are one or two. It is effective keyinput.
: Ex. State (d)
2) In case of R2 0 00h ³ There are two or less datalines where
input exists, and two or more keyinputs
exists on the same dataline. To [5].
(5) Judgment 3
When there is one dataline where input exists ³ To [6].
When there are two datalines where input exists ³ There are three
keyinputs or more It is invalid keyinput. : Ex. State (e)
(6) Subtraction result R2 is added to logical add R1. If this addition result
is 00h, the number of all keyinputs is two.
Ex. State (b) : R1 + R2 = 04h + FCh = 00h
State (c) : R1 + R2 = 04h + F8h = FCh
(7) Judgment 4
In case of R1 + R2 = 00h ³ There is one dataline where input
exists, and there are two keyinputs
on this dataline.That is, because the
numbers of all input are two keys, it
is effective input. : Ex. State (b)
In case of R1+R2 0 00h ³ There are three keyinputs or more
on the same dataline.
It is invalid keyinput. : Ex. State (c)
(8) Only when the keyinput becomes effective because of judgment 1–4,
all DI data (Xm+4–Xm+11) is used by the ladder program.