Omron SYSMAC CP Series Instruction & Reference Manual page 100

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents