Delta AS Series Programming Manual page 553

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
1003
Device
X
Y
S
1
S
2
Data
type
S
1
S
2
Symbol
Explanation
_6
1.
This instruction changes a specified counter coil from OFF to ON, and then increments the value of the counter by
1. When the value of the counter matches the setting value, the contact of the counter is ON.
2.
When the value of the counter matches the setting value, the instruction does not change the state of the contact
and value of the counter if any more counting pulses are input. Use the RST instruction (API 1000) to reset the
counter and enable counting again.
3.
Refer to Example 1 below for a demonstration of using CNT instruction in a program of unit (POU). Refer to Example
2 below for a demonstration of using CNT instruction in a function block (FB).
4.
You can use the same device C number of CNT instruction that used in a POU for more than once. The system will
count according to different contact status, OFF or ON separately.
5.
You can NOT use the same device C number of CNT instruction that used in a FB for more than once. It is suggested
to use only 1 device C number for FW V1.07.00 (excluded) or prevision versions. For FW V1.07 or later version, you
can us up to 8 identical device C number of CNT instruction that used in a FB.
6 - 2 7 4
CNT
M
S
T
C
: Counter number
S
1
: Setting value for the counter
S
2
Operand
S
, S
1
2
HC
D
FR
SM
SR
Pulse instruction
16-bit instruction
Function
16-bit counter
E
K
16#
"$"
32-bit instruction
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents