Reset Timer/Counter: Cnr(236) - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Timer and Counter Instructions
Flags
Example
0000
03
0000
04
0000
05
C0007

5-13-8 RESET TIMER/COUNTER: CNR(236)

Ladder Symbol
(236)
CNR
Variations
jCNR(236)
Description
Counter numbers range from C0000 through C1023. Each counter number can
be used to define only one counter instruction unless the counters are never ac-
tive simultaneously. The CNT and CNTR(012) counters use counter numbers.
Note: Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
Content of S (SV) is not BCD.
The counter in the following example will count up when CIO 000003 changes
from OFF to ON and will count down when CIO 000004 changes from OFF to
ON. If CIO 000005 turns ON, the PV will be reset to 0000 and counting will be
disabled until CIO 000005 turns OFF.
(012)
CNTR
0007
The following diagram illustrates the operation of the Completion Flag (C0007)
when the content of CIO 0001 (i.e., the SV) is 5000.
Completion Flag
(C00007)
D
D
1
2
When D
and D
are timer or counter numbers, CNR(236) resets the PV of tim-
1
2
ers from D
through D
1
TIMH(015), CNT, and TCNT(123) are reset to the SV, while PVs for CNTR(012)
and TTIM(120) are reset to zero. TIML(121) and MTIM(122) timers cannot be
reset with CNR(236).
If only one timer or counter needs to be reset, that timer or counter number can
be entered alone. It is not necessary to enter both D
If two or more timer or counter instructions are defined with the same timer or
counter number and have different SVs, the PV for that timer or counter number
will be reset to one or the other SV when CNR(236) is executed. The operation of
the timer or counter instruction will not be affected, however, because the correct
SV will be reset the next time that each timer or counter instruction is executed.
When D
and D
1
2
words D
through D
1
0001
SV: CIO 0001
0200
08
4999 5000
0
CIO 00003
CIO 00004
Operand Data Areas
D
: First Word
CIO, G, A, T, C, DM
1
D
: Second Word
CIO, G, A, T, C, DM
2
without starting the timers or counters. PVs for TIM,
2
are addresses in a data area, CNR(236) sets the content of
to zero.
2
Section 5-13
Address Instruction
00000
LD
00001
LD
00002
LD
00003
CNTR(012)
00004
LD NOT
00005
OUT
1
2
1
0 5000 4999
and D
.
1
2
Operands
000003
000004
000005
0007
0001
C0007
020008
145

Advertisement

Table of Contents
loading

Table of Contents