5
FUNCTIONS
5.3 Using the Coincidence Detection Function
5
- 12
1
OVE
R
VI
EW
2
SYS
TEM
CONFIGURA
T
ION
3
SP
ECIFI
C
A
T
IO
N
S
4
PRO
C
EDURES AND
SETT
ING
S
BEFO
RE
O
PERA
T
IO
N
5
FUNCTIONS
6
UTIL
IT
Y P
A
C
K
A
G
E
(G
X Conf
igu
rat
or-CT)
7
PROGRA
MMING
8
T
R
OUB
L
ES
HO
O
T
ING
5.3
Using the Coincidence Detection Function
When using the coincidence detection function, set any count value in advance. Then, the
QD63P6 compares the value with the present A (Un\G10 and 11)/present value B
(Un\G200 and 201) of the counter, and outputs the counter value coincidence (X02) when
they match.
The coincidence detection can be set for each channel in units of one points.
Figure 5.8 contains I/O numbers (X/Y) and buffer memory addresses for channel 1 only.
For channels 2 to 6, refer to Section 3.3.1 and Section 3.4.1.
(1) Operation of coincidence detection
Figure 5.8 Operation example of the coincidence detection function
POINT
The counter value coincidence (X02) turns ON immediately after power-ON or
reset of the programmable controller CPU since the coincidence detection point
setting (Un\G6 and 7) is 0.
Therefore, perform the following operations.
(1) Write any other than 0 into the coincidence detection point setting (Un\G6 and
7), and 1 into the coincidence detection point change request (Un\G8).
(2) Turn the coincidence signal reset command (Y01) OFF, ON and OFF again.
Note that the ON time must be 2ms or longer.
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
1) 100
3)
4)
103
102
101
100
99
98
to
2
1
0
Count enable command
(Y04)
Counter input pulse
Coincidence detection point
setting
(Un\G6 and 7)
Counter value small
(X03)
Counter value coincidence
(X02)
Coincidence signal
reset command
(Y01)
Counter value large
(X01)
Present value A
(Un\G10 and 11)
1
0
2)
Coincidence detection point
change request
(Un\G8)
0
3)
5)
t*1
104 105 106 107
When Coincidence detection point
change request (Un\G8) status
changes from 1 (Change request) to
0 (No change request), comparison
between the value (100) set in
Coincidence detection point setting
(Un\G6 and 7) and Present value A
(Un\G10 and 11) is started.
t*1
*2
*1 t 2 ms