Delta AS Series Programming Manual page 555

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
1004
Device
X
S
1
S
2
Data
type
S
1
S
2
Symbol
Explanation
_6
1.
This instruction enables the 32-bit counter between HC0–HC255.
2.
If you declare the operand S
3.
For the count-up/count-down counters HC0–HC63, when the conditional contact of this instruction switches from
OFF to ON, the counters count up by incrementing the values by 1 when SM621–SM684 are OFF or count down by
decrementing the values by 1 when SM621–SM684 are ON.
4.
Count-up counters HC64–HC199 count up by increasing the values by 1 when the conditional contact of the DCNT
instruction switches from OFF to ON.
5.
The counter stops counting when the DCNT instruction is OFF, but the instruction does not clear the original count
value. Use the RST instruction to clear the count value and reset the contact to OFF.
6.
Refer to Example 2 of CNT instruction for a demonstration of using DCNT instruction in a function block (FB).
7.
Refer to the following pages for details on the high-speed counter HC200–HC255. Whenever PLC scans this
instruction, it refreshes the appointed counter for its updated values. Thus it is suggested to use this instruction in a
POU. NOTE: The number of the high-speed can NOT be duplicated.
6 - 2 7 6
DCNT
Y
M
S
T
C
: Counter value
S
1
: Setting value for the counter
S
2
in ISPSoft, you cannot select the CNT data type; instead, specify an HC device number.
1
Operand
S
, S
1
2
HC
D
FR
SM
SR
Pulse instruction
16-bit instruction
Function
32-bit counter
E
K
16#
"$"
32-bit instruction
-
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents