EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 238

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
205
Timer and Counter Instructions Section 3-5
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 100.00 will be turned ON 5.0 seconds after
CIO 0.00 goes ON and it will be turned OFF 3.0 seconds after CIO 0.00 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 100.00 will be ON for 1.5 sec-
onds (the SV of T0001) after CIO 0.00 goes ON.
CIO 0.00
CIO 100.00
5.0 s 3.0 s
000000 LD 0.00
000001 TIM 0001
#50
000002 LD 100.00
000003 AND NOT 0.00
000004 TIM 0002
#30
000005 LD T0001
000006 LD T0002
000007 KEEP(011) 100.00
0.00
0.00100.00
#50
#30
100.00
Instruction OperandsAddress
000000 LD 0.00
000001 LD W0.00
000002 AND NOT W0.01
000003 OR ---
000004 OUT W0.00
000005 LD W0.00
000006 TIM 0001
#15
000007 LD T0001
000008 OUT W0.01
000009 LD W0.00
000010 AND NOT W0.01
000011 OUT 100.00
CIO 0.00
CIO 100.00
1.5 s
1.5 s
0.00
W0.00
W0.00 W0.01
W0.00
W0.00 W0.01
#15
W0.01
100.00
LD
Instruction Operands
Address

Table of Contents

Related product manuals