2 Instructions
2-64 CP1E CPU Unit Instructions Reference Manual(W483)
Example 4: One-shot BitA 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 2.04 will be ON for 1.5 seconds (the SV of T0001) after CIO 0.00 goes ON.Example 5: Flicker Bit1) Two TIM InstructionsTwo TIM timers can be combined to make a bit turn ON and OFF at regular intervals while the executioncondition is ON. In this example, CIO 2.05 will be OFF for 1.0 second and then ON for 1.5 seconds aslong as CIO 0.00 is ON.
0.00
100.04
1.5 s 1.5 s
TIM
0001
#0015
10.00
10.00
0.00 10.00
T0001 100.00
10.00 100.04
100.00
100.00
(1.5seconds)
1
#0015
T0001
100.00
10.00
100.00
100.04
Operands
--OR LD
AND NOT
Instruction
0.00LD
TIM
LD
10.00LD
10.00OUT
10.00LD
OUT
OUT
LD
100.00AND NOT
TIM
0002
#0015
TIM
0001
#0010
100.05
2.05
0.00
T0001
T0002
0.00
100.05
1.5 s1.0 s 1.5 s
1.0 s
(1 second)
(1.5 seconds)
LD
LD
LD
TIM
TIM
OUT
AND LD
Instruction
T0002
1
#0010
2.05
2
#0015
100.05
T0001
0.00
Operands