Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 246

Table of Contents

Advertisement

3. Instructions
Example 2: Two-stage Counter
When an SV higher than 9999 is required, two counters can be combined as shown in the following
example. In this case, two CNT instructions are combined to make a BCD counter with an SV of
20,000.
0.00
0.01
0.02
0.02
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 5.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.
0.00
5.00
0.00
0.00
5.00
5.0 s
210
(100 times)
(200 times)
2.03
5.00
3.0 s
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Instruction Operands
LD
0.00
AND
0.01
LD NOT
0.02
OR
C0001
OR
C0002
CNT
1
#0100
LD
C0001
LD NOT
0.02
CNT
2
#0200
LD
C0002
OUT
2.03
Instruction Operands
LD
0.00
TIM
1
#0050
LD
5.00
LD NOT
0.00
TIM
2
#0030
LD
T0001
LD
T0002
5.00
KEEP(011)

Advertisement

Table of Contents
loading

Table of Contents