5 - 7 5 - 7
MELSEC-Q
5 BASIC USAGE
5.3 Using the Coincidence Output Function
The coincidence output function presets any count value, compares it with the present
counter value, and outputs a signal when they match. For the coincidence output, 2
points can be set for each channel.
When using external output of the coincidence signal, turn on CH
Coincidence signal
enable command (Y2, YA) beforehand.
(1) Coincidence Output Operation
The I/O numbers (X/Y) and the buffer memory addresses used in (1) are for
coincidence output point No.1.
For the I/O numbers and buffer memory addresses for coincidence output point
No.2, refer to the following.
• Section 3.3.1 (List of I/O signals)
• Section 3.4 (Buffer Memory Assignments)
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
1) 100
2)
3)
4)
1031021011009998to210
Counter input pulse
CH Count enable command
(Y4, YC)
CH Coincidence signal enable
command (Y2, YA)
CH Coincidence output point set No.1
(Un\G4, Un\G5, Un\G36, Un\37)
CH Counter value small
(point No.1) (X3, XA)
CH Counter value coincidence
(point No.1) (X2, X9)
CH Coincidence signal No.1 reset
command (Y0, Y8)
CH Counter value large (point No.1)
(X1, X8)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\35)
Number Description
1)
Write a coincidence output point setting value to CH
Coincidence output point set No.1 (Un\G4, Un\G5, Un\G36, Un\G37) of
the QD62(E/D) in 32-bit signed binary.
2)
When the count value matches the coincidence output point setting value, CH
Counter value small (point No.1) (X3, XA) turns off
and CH
Counter value coincidence (point No.1) (X2, X9) turns on.
3)
Turn on CH
Coincidence signal No.1 reset command (Y0, Y8) to reset CH Counter value coincidence (point No.1) (X2,
X9).
If CH
Counter value coincidence (point No.1) (X2, X9) remains on, the next coincidence signal cannot be output.
4)
When the counter value exceeds the coincidence output point setting value, CH
Counter value large (point No.1) (X1, X8)
turns on.