Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 325

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Timer and Counter Instructions
Example 1:
Long-term Timers
The following program examples show three ways to create long-term timers
with standard TIM and CNT instructions.
Two TIM Instructions
In this example, two TIM instructions are combined to make a 30-minute
timer.
000000
T0001
T0002
TIM and CNT Instructions
In this example, a TIM instruction and a CNT instruction are combined to
make a 500-second timer.
TIM 0001 generates a pulse every 5 s and CNT 0002 counts these pulses.
The set value for this combination is the timer interval
case, the timer SV would be 5 s
long-term timer's PV is actually the PV of a counter, which is maintained
through power interruptions.
Start
Count up
Clock Pulse and CNT Instruction
In this example, a CNT instruction counts the pulses from the 1-s clock pulse
to make a 700-second timer.
If the First Cycle Flag (A20011) is ORed with the counter's reset input
(CIO 000001), the counter's PV will be reset to the SV (0700) when program
execution begins rather than resuming the count from the previous PV.
Address
Instruction Operands
000000
LD
000001
TIM
000002
LD
000003
TIM
000004
LD
000005
OUT
counter SV. In this
100 = 500 s. With this combination, the
Address
Instruction Operands
000000
LD
000001
LD
000002
CNT
000003
LD
000004
AND NOT
000005
AND NOT
000006
TIM
000007
LD
000008
OUT
000009
LD
000010
OUT
Section 3-6
000000
0001
#9000
T0001
0002
#9000
T0002
000200
010000
000001
0002
#0100
000000
010000
C0002
0001
#0050
T0001
010000
C0002
000201
285

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents

Save PDF