5 - 11                  5 - 11 
MELSEC-Q
5   DETAILS AND SETTING OF FUNCTIONS 
 
Outline of comparison output function operation 
The following gives the outline of the comparison output function operation. (For 
CH1) 
 
Comparison signal reset request
(Y10)
Accumulating counter comparison flag
(X10)
Comparison output setting value
(Buffer memory address:2,3)
Operating condition setting 
complete flag
(X1)
OFF
ON
1)
1200
OFF
ON
1)
Count indication start
0
788
0+788
788
1100 1388
1100+288>1200
288
OFF
2)
ON
ON
OFF
Count enable
(Y18)
Sampling pulse number
(Buffer memory address:0)
Accumulating count value
(Buffer memory address:8,9)
 
 
Number Details 
1) 
Count operation is started when the count enable (Y18) is turned ON with 
the operating condition setting complete flag (X1) ON. 
2) 
When the "accumulating count value" is equal to or greater than the  
"comparison output setting value", the accumulating counter comparison 
flag (X10) turns ON. 
Since the accumulating count value is updated at intervals of the count 
cycle setting value (refer to Section 5.1.2), the accumulating counter 
comparison flag is also turned ON at the timing of the count cycle setting 
value. 
 
 
POINT 
 
The accumulating counter comparison flag (X10 to X17) is reset when the 
comparison signal reset request (Y10 to Y17) is turned ON. When the accumulating 
counter is operating as a linear counter, the accumulating counter comparison flag 
(X10 to X17) that was turned OFF once does not turn ON until the accumulating 
count value reaches the comparison output setting value again after it has been 
reset. 
If the accumulating counter is operating as a ring counter, the flag turns ON when 
the accumulating count value reaches the comparison output setting value again in 
the ring processing.