Example Timer And Counter Applications - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

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

Advertisement

Timer and Counter Instructions
Flags
Precautions
Example

3-6-12 Example Timer and Counter Applications

284
Name
Label
Error Flag
ER
The CNR(545)/CNRX(547) instructions do not reset TIML(542), TIMLX(553),
MTIM(543), and MTIMX(554), because these timers do not use timer num-
bers.
The CNR(545)/CNRX(547) instructions do not reset the timer/counter instruc-
tions themselves, they reset the PVs and Completion Flags allocated to those
instructions. In most cases, the effect of CNR(545)/CNRX(547) is different
from directly resetting the instructions. For example, when a TIM/TIMX(550)
instruction is reset directly its PV is set to the SV, but when that timer is reset
by CNR(545)/CNRX(547) its PV is set to the maximum value (9999 for BCD
and FFFF for binary).
When N1 and N2 are specified with N1>N2, only the Completion Flag for the
timer/counter number will be reset.
When CIO 000000 is ON in the following example, the Completion Flags for
timers T0002 to T0005 are turned OFF and the timers' PVs are set to the
maximum value (9999 for BCD and FFFF for binary).
When CIO 000001 is ON, the Completion Flags for counters C0003 to C0007
are turned OFF and the counters' PVs are set to the maximum value (9999 for
BCD and FFFF for binary).
The following examples show various applications of timer and counter
instructions including long-term timers, a two-stage counter, ON/OFF delay,
one-shot bit, and flicker bit.
Operation
ON if N
is indirectly addressed through an Index Register
1
but the address in the Index Register is not the PV
address of a timer or counter.
ON if N
is indirectly addressed through an Index Register
2
but the address in the Index Register is not the PV
address of a timer or counter.
ON if N
and N
are not in the same data area.
1
2
OFF in all other cases.
000000
CNR
T0002
T0005
000001
CNR
C0003
C0007
000000
CNRX
T0002
T0005
000001
CNRX
C0003
C0007
Section 3-6

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?

Questions and answers

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents

Save PDF