10
DEVICE EXPLANATION
10.2 Internal User Devices
10.2.11 Counter (C)
10
- 40
9
P
a
ra
met
e
rs
10
Device
Exp
la
n
at
ion
11
CP
U
M
odu
le
P
ro
cessi
ng
Ti
m
e
12
P
roc
e
d
ure
f
or W
rit
in
g
P
rog
ra
m t
o CP
U Mo
du
le
A
p
pe
nd
ic
e
s
In
de
x
(4) Interrupt counters
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.
Universal
UD
=
M0
K10
C300
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......