![Omron CVM1D Скачать руководство пользователя страница 150](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532150.webp)
0200
08
0000
03
0000
04
C0007
0000
05
(012)
CNTR
0007
0001
SV: CIO 0001
145
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.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
Content of S (SV) is not BCD.
Example
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.
Address
Instruction
Operands
00000
LD
000003
00001
LD
000004
00002
LD
000005
00003
CNTR(012)
0007
0001
00004
LD NOT
C0007
00005
OUT
020008
The following diagram illustrates the operation of the Completion Flag (C0007)
when the content of CIO 0001 (i.e., the SV) is 5000.
4999 5000 0 1 2
1 0 5000 4999
CIO 00003
CIO 00004
Completion Flag
(C00007)
5-13-8 RESET TIMER/COUNTER: CNR(236)
(236)
CNR
D
1
D
2
D
2
: Second Word
CIO, G, A, T, C, DM
D
1
: First Word
CIO, G, A, T, C, DM
Operand Data Areas
Ladder Symbol
Variations
j
CNR(236)
Description
When D
1
and D
2
are timer or counter numbers, CNR(236) resets the PV of tim-
ers from D
1
through D
2
without starting the timers or counters. PVs for TIM,
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
1
and D
2
.
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
1
and D
2
are addresses in a data area, CNR(236) sets the content of
words D
1
through D
2
to zero.
Timer and Counter Instructions
Section 5-13
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...