Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 246

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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
10.00
100.00
0.00
2 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
2.05
0.00
2 05
2) Clock Pulse
The desired execution condition can be combined with a clock pulse to mimic the clock pulse (0.1 s, 0.2
s, or 1.0 s).
0.00
P. 1s (1-s clock pulse)
0.00
P. 1s
2.06
CS/CJ/NSJ Series Instructions Reference Manual (W474)
10.00
Instruction Operands
AND NOT
(1.5seconds)
100.00
2.04
AND NOT
Instruction Operands
(1 second)
AND LD
(1.5 seconds)
2.05
2.06
Instruction Operands
LD
0.00
AND
1s
OUT
2.6
• The internal clock pulse (0.1 s, 0.2 s, 1 s) can be
used to easily program a flicker circuit.
For information on clock pulses, refer to the CJ-Series
CJ2 CPU Unit Software User's Manual (W473).
3. Instructions
0.00
LD
10.00
LD
100.00
OR LD
--
OUT
10.00
LD
10.00
TIM
1
#0015
T0001
LD
100.00
OUT
LD
10.00
100.00
2.04
OUT
LD
0.00
T0002
TIM
1
#0010
LD
2.05
TIM
2
#0015
LD
T0001
OUT
2.05
3
209

Advertisement

Table of Contents
loading

Table of Contents