10
DEVICE EXPLANATION
10.2 Internal User Devices
10.2.11 Counter (C)
10
- 36
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
10.2.11 Counter (C)
(1) Definition
A counter is a device which counts the number of input condition leading edges in
sequence programs.
When the count value matches the set value, the counter counts up and its contact
turns ON.
The counter is of an up-counting type.
(2) Counter types
There are two counter types: counters which count the number of input condition
start-ups (leading edges) in sequence programs, and counters which count the
number of interrupt factor occurrences.
(3) Count processing
(a) When OUT C instruction is executed
When and OUT C instruction is executed, the following counter processing
occurs: coil ON/OFF, current value update (count value + 1), and contact ON/OFF.
Counter current value update and contact ON/OFF processing are not performed
at END processing.
Figure 10.28 Execution and processing of OUT C instruction
X0
C0
K10
END
OUT C0
END
[Ladder example]
Sequence
program
[Processing at OUT C0 Instruction (X0: OFF to ON)]
Coil ON/OFF
Current value update
Contact ON/OFF
Processing content