EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #249 background imageLoading...
Page #249 background image
211
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Timer and Counter Instructions
3
Example Timer and Counter Applications
Example 1: Long-term Timers
The following program examples show three ways to create long-term timers with standard TIM and
CNT instructions.
1) Two TIM Instructions
In this example, two TIM instructions are combined to make a 30-minute timer.
2) 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 × counter SV. In this case, the timer SV would be 5 s × 100 = 500 s.
With this combination, the long-term timer's PV is actually the PV of a counter, which is maintained
through power interruptions.
3) 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 (A200.11) is ORed with the counter's reset input (CIO 0.01), the counter's PV will
be reset to the SV (0700) when program execution begins rather than resuming the count from the
previous PV.
0.00
T0001
T0002
2.00
(900 seconds)
(900 seconds)
0.00
1
#9000
T0001
2
#9000
T0002
2.00
OUT
LD
TM
LD
TM
LD
Instruction Operands
100.00
0.01
2
#0100
0.00
100.00
C0002
1
#0050
T0001
100.00
C0002
2.01
LD
LD
LD
LD
LD
CNT
OUT
OUT
TIM
Instruction Operands
AND NOT
AND NOT
Count upStart
(100 times)
(5 seconds)
100.00
0.01
100.00
0.00
2.01
100.00
0.00
0.01
A20011
C0001
0.00
1s
LD NOT
LD
AND
CNT
0.01
#0700
C0001
2.02
1
P_1s (1-s clock)
Instruction Operands

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals