Omron C200HE ユーザーズマニュアル

ページ / 564
169
tween when the Completion Flag for TIM 001 goes ON and TIM 001 is reset by
its Completion Flag). TIM 001 is also reset by the Completion Flag for CNT 002
so that the extended timer would not start again until CNT 002 was reset by
00001, which serves as the reset for the entire extended timer.
Because in this example the SV for TIM 001 is 5.0 seconds and the SV for CNT
002 is 100, the Completion Flag for CNT 002 turns ON when 5 seconds x 100
times, i.e., 500 seconds (or 8 minutes and 20 seconds) have expired. This would
result in 00201 being turned ON.
00000 TIM 001
CNT 002
TIM 001
00001
CNT 002
00201
CP
R
005.0 s
CNT
002
#0100
TIM 001
#0050
Address
Instruction
Operands
00000
LD
00000
00001
AND NOT
TIM
001
00002
AND NOT
CNT
002
00003
TIM
001
#
0050
00004
LD
TIM
001
00005
LD
00001
00006
CNT
002
#
0100
00007
LD
CNT
002
00008
OUT
00201
In the following example, CNT 001 counts the number of times the 1-second
clock pulse bit (25502) goes from OFF to ON. Here again, 00000 is used to con-
trol the times when CNT is operating.
Because in this example the SV for CNT 001 is 700, the Completion Flag for
CNT 002 turns ON when 1 second x 700 times, or 11 minutes and 40 seconds
have expired. This would result in 00202 being turned ON.
CP
R
CNT
001
#0700
00000 25502
00001
CNT 001
0202
Address
Instruction
Operands
00000
LD
00000
00001
AND
25502
00002
LD NOT
00001
00003
CNT
001
#
0700
00004
LD
CNT
001
00005
OUT
00202
Note The shorter clock pulses will not necessarily produce accurate timers because
their short ON times might not be read accurately during longer cycles. In partic-
ular, the 0.02-second and 0.1-second clock pulses should not be used to create
timers with CNT instructions.
5-14-5 REVERSIBLE COUNTER – CNTR(12)
N: TC number
# (000 through 511)
Ladder Symbol
Definer Values
SV: Set value (word, BCD)
IR, AR, DM, HR, LR, #
Operand Data Areas
II
DI
CNTR(12) 
N
SV
R
Timer and Counter Instructions
Section 5-14