Using The Coincidence Detection Function - Mitsubishi Electric qd63p6 User Manual

Programmable
Hide thumbs Also See for qd63p6:
Table of Contents

Advertisement

5
FUNCTIONS
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
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.
Figure 5.8 Operation example of the coincidence detection function
POINT
ON
Count enable command
(Y04)
OFF
Counter input pulse
1
Coincidence detection point
0
change request
(Un\G8)
Coincidence detection point
0
setting
(Un\G6 and 7)
ON
Counter value small
2)
(X03)
OFF
ON
Counter value coincidence
*2
(X02)
OFF
ON
Coincidence signal
OFF
reset command
(Y01)
ON
Counter value large
(X01)
OFF
Present value A
(Un\G10 and 11)
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.
5.3 Using the Coincidence Detection Function
1) 100
t*1
0
1
2
to
98
99
3)
3)
5)
t*1
4)
100
101
102
103
104 105 106 107
*1 t
5
1
2
3
4
5
6
2 ms
7
8
- 12

Advertisement

Table of Contents
loading

Table of Contents