E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-278
API Mnemonic
Operands
Function
97
DCNT
S
1
, S
2
Counter 32-bit
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
1
*
S
2
*
*
DCNT: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
1
: 32 bit counter number (ELC-PB, ELCB-PB: C235~C254, ELC-PC/PA/PH/PV, ELCM-PH/PA:
C200~C255)
S
2
: Preset value (K-2,147,483,648~K2,147,483,647, ELC-PB, ELCB-PB: D0~D599,
ELC-PC/PA/PH: D0~D4,999, ELC-PV, ELCM-PH/PA: D0~D9,999)
Description:
1.
DCNT is the instruction for the 32-bit high-speed counters that use counters C235 to C255.
2.
Counter numbers C200~C234 (all controllers except ELC-PB and ELCB-PB) are 32-bit
up/down counters., the present value will count up (add 1) or count down (subtract 1)
according to the flags M1200~M1234 set count mode when command DCNT is OFF
3.
The count direction is determined by M1200-M1234. Each M-bit is for a specific counter
number (C200-C234). When a particular counters direction bit is off, the counter will count up.
When the bit is on, the counter will count down.
4.
For information on high speed counters C235~C255, refer to section 2.12.
5.
When the DCNT instruction is OFF, the counter will stop counting, but the count values will not
be cleared. Use the RST instruction to reset a counter. High-speed counters C235~C255 can
use a specific external input to reset these counters.
Program Example:
Ladder Diagram:
M0
C254
DCNT
K1000
Instruction:
Operation:
LD
M0
;
Load
A
contact
of
M0
DCNT
C254 K1000
; C254 counter Setting is K1000
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...