Omron SYSMAC C200HS Operation Manual page 158

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Timer and Counter Instructions
00000 TIM 001
CNT 002
TIM 001
00001
CNT 002
00000 25502
00001
CNT 001
!
Caution
The shorter clock pulses will not necessarily produce accurate timers because their short ON
times might not be read accurately during longer cycles. In particular, 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)
148
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.
TIM 001
CP
CNT
002
#0100
R
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
Ladder Symbol
II
CNTR(12)
DI
R
Address
00000
#0050
005.0 s
00001
00002
00003
00004
00005
00201
00006
00007
00008
Address Instruction
CNT
00000
LD
001
00001
AND
#0700
00002
LD NOT
00003
CNT
0202
00004
LD
00005
OUT
N
Operand Data Areas
SV
SV: Set value (word, BCD)
Section 5-14
Instruction
Operands
LD
00000
AND NOT
TIM
AND NOT
CNT
TIM
#
0050
LD
TIM
LD
00001
CNT
#
0100
LD
CNT
OUT
00201
Operands
00000
25502
00001
001
#
0700
CNT
001
00202
Definer Values
N: TC number
# (000 through 511)
IR, AR, DM, HR, LR, #
001
002
001
001
002
002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents