Delta AH500 Programming Manual page 399

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1003
CNT
Device X
Y
M
S
1
S
2
Symbol:
Explanation:
1.
When the instruction CNT is executed, the coil of the counter is ON, and the value of the
counter increases by one. When the value of the counter matches the setting value, the state
of the contact is as follows.
Normally open (NO) contact
Normally closed (NC) contact
2.
After the value of the counter matches the setting value, if there is still a pulse input signal of
the counter, the state of the contact and the value of the counter remain unchanged. If users
want to clear the value of the counter, they can use the instruction RST.
Example:
When SM408 is ON for the first time, the setting value 10 is loaded to the counter C0, and C0 begins
to count. After SM408 is switched from OFF to ON ten times, the value of C0 is 10, and the contact
of C0 is ON.
After the contact of C0 is ON, the value of C0 does not increase although SM408 still truns from
OFF to ON.
Additional remark:
When declare the operand S1 via ISPSoft, the data type is COUNTER.
Operand
S
, S
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction
: Counter number
S
1
: Setting value of the counter
S
2
C ha pt er 6 A p pl i e d In s tr uc t io ns
L
SM SR
E
PR
AH500
Word
Word
ON
OFF
Function
16-bit counter
K
16# "$"
DF
6 - 2 3 1

Advertisement

Table of Contents
loading

Table of Contents