Omron CVM1D Operation Manual page 137

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Timer and Counter Instructions
0000
00
0005
0000
00
00
T0001
T0002
000000
000500
5.0 s
Example 4:
One-Shot Bits
0100
0010
00
00
0000
00
0010
00
T0001
0100
0010
00
00
000000
000204
1.5 s
132
1In the following example, 000500 would be turned ON 5.0 seconds after
000000 goes ON and then turned OFF 3.0 seconds after 000000 goes OFF. It is
necessary to use both 000500 and 000000 to determine the execution condition
for T0002; 000000 in a normally closed condition is necessary to reset T0002
when 000000 goes ON and 000500 is necessary to activate T0002 (when
000000 is OFF).
TIM
0001
#0050
TIM
0002
#0030
(011)
S
KEEP 000500
R
3.0 s
The length of time that a bit is kept ON or OFF can be controlled by combining
TIM with OUT or OUT NOT. The following diagram demonstrates how this is
possible. In this example, 000204 would remain ON for 1.5 seconds after
000000 goes ON regardless of the time 000000 stays ON. This is achieved by
using 001000 as a self-maintaining bit activated by 000000 and turning ON
000204 through it. When T0001 comes ON (i.e., when the SV of T0001 has ex-
pired), 000204 will be turned OFF through T0001 (i.e., T0001 will turn ON which,
as a normally closed condition, creates an OFF execution condition for OUT
000204).
0010
00
TIM
0001
#0015
0100
00
0002
04
1.5 s
Address Instruction
5.0 s
00000
00001
3.0 s
00002
00003
00004
00005
00006
00007
Address Instruction Operands
00000
00001
00002
00003
1.5 s
00004
00005
00006
00007
00008
00009
00010
Section 5-13
Operands
LD
000000
TIM
0001
#0050
LD
000500
AND NOT
000000
TIM
0002
#0030
LD
T0001
LD
T0002
KEEP(011)
000500
LD
001000
AND NOT
010000
OR
000000
OUT
001000
LD
001000
TIM
0001
#0015
LD
T0001
OUT
010000
LD
001000
AND NOT
010000
OUT
000204

Advertisement

Table of Contents
loading

Table of Contents