![Omron CVM1D Operation Manual Download Page 136](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532136.webp)
131
The following example shows two timers, one set with a constant and one set via
input word 0005. Here, 000200 will be turned ON after 000000 goes ON and
stays ON for at least 15 seconds. When 000000 goes OFF, the timer will be reset
and 000200 will be turned OFF. When 000001 goes ON, T0001 is started from
the SV provided through word 0005. Bit 000201 is also turned ON when 000001
goes ON. When the SV in 0005 has timed out, 000201 is turned OFF. This bit will
also be turned OFF when T0001 is reset, regardless of whether or not SV has
expired.
Address
Instruction
00000
LD
000000
00001
TIM
0000
#0150
00002
LD
T0000
00003
OUT
000200
00004
LD
000001
00005
TIM
0001
0005
00006
AND NOT
T0001
00007
OUT
000201
15 s
SV in
CIO 0005
Operands
0000
00
T0000
0000
01
T0001
0002
00
0002
01
TIM
0000
#0150
TIM
0001
0005
There are three ways to achieve timers that operate for longer than 999.9 se-
conds. One way is to use TIML(121). The second way is to program consecutive
timers, with the Completion Flag of each timer used to activate the next timer. A
simple example with two 900.0-second (15-minute) timers combined to func-
tionally form a 30-minute timer is shown below.
Address
Instruction
00000
LD
000000
00001
TIM
0001
#9000
00002
LD
T0001
00003
TIM
0002
#9000
00004
LD
T0002
00005
OUT
000200
900.0 s
900.0 s
Operands
0000
00
TIM
0001
#9000
T0001
TIM
0002
#9000
T0002
0002
00
In this example, 000200 will be turned ON 30 minutes after 000000 goes ON
assuming that 000000 stays ON.
The third way to create longer timers is to combined TIM with CNT or to used
CNT to count Auxiliary Area clock pulse bits to produce longer timers. An exam-
ple is provided in 5-13-6 COUNTER: CNT.
TIM can be combined with KEEP(011) to delay turning a bit ON and OFF in refer-
ence to a desired execution condition. KEEP(011) is described in 5-7-5 KEEP:
KEEP(011).
To create delays, the Completion Flags for two TIM are used to determine the
execution conditions for setting and resetting the bit designated for KEEP(011).
The bit whose manipulation is to be delayed is used in KEEP(011). Turning ON
and OFF the bit designated for KEEP(011) is thus delayed by the SV for the two
TIM timers. The two SV could naturally be the same if desired.
Example 1:
Basic Application
Example 2:
Extended Timers
Example 3:
ON/OFF Delays
Timer and Counter Instructions
Section 5-13
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...