10
DEVICE EXPLANATION
10.2 Internal User Devices
10.2.11 Counter (C)
10 - 40
9
Parameters
10
Device Explanation
11
CPU Module Processing
Time
12
Procedure for Writing
Program to CPU ModuleAppendicesIndex
(4) Interrupt counters
Note10.11
Note11
(a) Definition
Interrupt counters are devices which count the number of interrupt factor
occurrences.
(b) Count processing
1) When interrupt occurs
The interrupt counter's current value is updated when an interruption occurs. It
is not necessary to create a program which includes an interrupt counter
function.
2) Counting of interrupt counter
Interrupt counter operation requires more than the simple designation of a set
value.
To use the interrupt counter for control purposes, comparison instructions (=,
<=, etc.) must also be used to enable comparisons with the set value, with an
internal relay (M), etc., being switched ON or OFF according to the
comparison result.
Figure 10.36 shows a sample program in which M0 is switched ON after 10
interrupt inputs are performed. (In this example, "C300" is the interrupt counter
No. corresponding to I0.)
Note11
Figure 10.36 Ladder example when interrupt counter is used for control
Universal
UD
Note10.11
The Universal model QCPU dose not support interrupt counters.
Note10.11
Universal
UD
=
M0
K10 C300