Omron SYSMAC CVM1 Series Operation Manual page 161

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Timer and Counter Instructions
0100
00
0000
01
0000
0100
00
C0002
00
T0001
C0002
0000
A501
00
02
0000
01
C000
01
!
Caution
In the following example, C0002 counts the number of times T0001 reaches
zero from its SV. The Completion Flag for T0001 is used to reset T0001 so that it
runs continuously and C0002 counts the number of times the Completion Flag
for T0001 goes ON (C0002 would be executed once each time between when
the Completion Flag for T0001 goes ON and T0001 is reset by its Completion
Flag). T0001 is also reset by the Completion Flag for C0002 so that the extended
timer would not start again until C0002 was reset by 000001, which serves as the
reset for the entire extended timer.
Because in this example the SV for T0001 is 5.0 seconds and the SV for C0002
is 100, the Completion Flag for C0002 turns ON when 5 seconds x 100 times,
i.e., 500 seconds (or 8 minutes and 20 seconds), have expired. This would result
in 000201 being turned ON.
CP
CNT
0002
#0100
R
TIM
0001
#0050
0100
0002
In the following example, C0001 counts the number of times the 1-second clock
pulse bit (A50102) goes from OFF to ON. Here again, 000000 is used to control
CNT operation.
Because in this example the SV for C0001 is 700, the Completion Flag for C0002
turns ON when 1 second x 700 times, or 11 minutes and 40 seconds, have ex-
pired. This would result in 000202 being turned ON.
CP
CNT
0001
#0700
R
0002
02
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.
Address Instruction Operands
00
00
Address Instruction
Section 5-13
00000
LD
010000
00001
LD
000001
00002
CNT
0002
#0100
00003
LD
000000
00004
AND NOT
010000
00005
AND NOT
C0002
00006
TIM
0001
#0050
00007
LD
T0001
00008
OUT
010000
00009
LD
C0002
00010
OUT
000200
Operands
00000
LD
000000
00001
AND
A50102
00002
LD NOT
000001
00003
CNT
0001
#0700
00004
LD
C00001
00005
OUT
000202
143

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents