![Omron CJ1G-CPUxx Instructions Manual Download Page 263](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491263.webp)
242
Timer and Counter Instructions
Section 3-6
Example 3:
ON/OFF Delay
In this example two TIM timers are combined with KEEP(011) to make an ON
delay and an OFF delay. CIO 000500 will be turned ON 5.0 seconds after
CIO 000000 goes ON and it will be turned OFF 3.0 seconds after CIO 000000
goes OFF.
Example 4:
One-shot Bit
A TIM timer can be combined with OUT or OUT NOT to control how long a
particular bit is ON or OFF. In this example, CIO 000204 will be ON for 1.5
seconds (the SV of T0001) after CIO 000000 goes ON.
CIO 000000
CIO 000500
5.0 s
3.0 s
Address Instruction Operands
000000 LD
000000
000001 TIM
0001
#0050
000002 LD
000500
000003 AND
NOT 000000
000004 TIM
0002
#0030
000005 LD
T0001
000006 LD
T0002
000007 KEEP(011) 000500
000000 LD
000000
000001 LD
001000
000002 AND
NOT 010000
000003 OR
000000
000004 OUT
001000
000005 LD
001000
000006 TIM
0001
#0015
000007 LD
T0001
000008 OUT
010000
000009 LD
001000
000010 AND
NOT 010000
000011 OUT
000204
Address
Instruction Operands
CIO 000000
CIO 000204
1.5 s
1.5 s
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...