9
-
34
CHAPTER9 DEVICES
9
9.2 Int
ernal User Devices
9.2.11
Counter
(C)
9.2.11 Counter (C)
(1) Definition
The counter (C) is a device that counts the number of rises for input conditions in sequence programs.
When the count value matches the set value, the counting stops and its contact is turned on.
The counter is of an incremental type.
(2) Counter types
Counters are mainly classified into the following two types.
• Counter that counts the number of rises for input conditions in sequence programs
• Interrupt counter that counts the number of interrupts occurred
(3) Counting
(a) When the OUT C instruction is executed
The coil of the counter is turned on/off, the current value is updated (the count value + 1), and the contact is
turned on.
In the END processing, the current counter value is not updated and the contact is not turned on.
Figure 9.32 Execution and processing of the 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
Processing
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......