2-65
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Timer and Counter Instructions
2
2) Clock Pulse
The desired execution condition can be combined with a clock pulse to mimic the clock pulse (0.1 s, 0.2
s, or 1.0 s).
Timer reset method
There are two methods for resetting a timer instruction.
1. Turn OFF the execution condition for the timer instruction.
The timer will be reset when its execution condition turns OFF.
The timer will start timing again when its execution condition turns ON.
With this method, a timer cannot be reset and then restarted within the same cycle.
2. Use the RESET TIMER/COUNTER instruction.
The specified instruction will be reset when the RESET TIMER/COUNTER instruction (CNR/CNRX) is
executed.
0.00
1s
A
A,B=0.5s
B
0.00 100.06
100.06
P. 1s (1-s clock pulse)
LD
OUT
AND
Instruction
1s
100.06
0.00
Operands
The internal clock pulse (0.1 s, 0.2 s, 1 s) can be
used to easily program a flicker circuit.
TIM
0010
#100
0.01
When CIO 0.01 turns ON, the timer starts timing.
When CIO 0.01 turns OFF, the timer is reset.
ON
OFF
ON
OFF
Timer input
CIO 0.01
Timer PV
T0010
Completion
Flag
T0010
The timer cannot be reset and then
restarted within the same cycle.