Omron SYSMAC CVM1 Series Operation Manual page 149

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

Advertisement

Timer and Counter Instructions
Example 1:
Basic Application
0000
00
T0000
0000
01
T0001
Example 2:
Extended Timers
0000
00
T0001
T0002
Example 3:
ON/OFF Delays
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.
TIM
0000
#0150
0002
TIM
0001
0005
0002
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.
TIM
0001
#9000
TIM
0002
#9000
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.
Address Instruction
15 s
00
SV in
CIO 0005
01
Address Instruction
900.0 s
900.0 s
Section 5-13
Operands
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
Operands
00000
LD
000000
00001
TIM
0001
#9000
00002
LD
T0001
00003
TIM
0002
#9000
00004
LD
T0002
00005
OUT
000200
131

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents