32-Bit Counters (Hc) - Delta AS Series Programming Manual

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al

2.2.12 32-bit Counters (HC)

Characteristics of the 32-bit counter
Item
Type
Number
_2
Direction
Setting value
Specification of the
counter setting value
Change of the current
value
Output contact
Reset
Action of the contact
32-bit general-purpose addition/subtraction counter
1.
The difference between the 32-bit general-purpose addition counters and the 32-bit general-purpose subtraction
counters depends on the states of the special auxiliary relays SM621–SM684. For example, the counter HC0 is
an addition counter when SM621 is OFF, whereas HC0 is a subtraction counter when SM621 is ON.
2.
You can use either the constant or the value in the data registers as the counter setting value, and this setting
value can be positive or negative. If you use the value in the data registers as the counter setting value, this
setting value occupies two consecutive registers.
3.
For the general-purpose counter, the current value of the counter is cleared when power is lost. If the counter is
latching, the current value of the counter and the state of the contact before loss of power is retained. The
latched counter counts from the current value when power is restored.
4.
If the counter counts up from 2,147,483,647, the next incremental value is -2,147,483,648. If the counter counts
down from -2,147,483,648, the next incremental value is 2,147,483,647.
5.
Use the high-speed counters here with DCNT instruction. The example used here is a common one. Refer to
API 1004 DCNT instruction for more advanced applicaiotns.
2 - 7 8
Up/down counter
HC0–HC63
Counts up/down
-2,147,483,648 to +2,147,483,647
The counter setting value can be either the constant or the value occupying two
data registers (32-bit).
The counter keeps counting even after the value of the counter matches the counter
setting value.
The contact is ON when the value of the addition counter matches the counter
setting value.
The contact is reset to OFF when the value of the subtraction counter matches the
counter setting value.
When the RST instruction is executed, the current value is cleared to zero, and the
contact is reset to OFF.
After the DCNT instruction scan is complete, the contact acts.
32-bit counter
Up counter
High-speed counter
HC64–HC199
Counts up
Counts up/down
HC200–HC255

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents