![Delta AH500 series Скачать руководство пользователя страница 295](http://html1.mh-extra.com/html/delta/ah500-series/ah500-series_hardware-operation-manual_2471626295.webp)
A H 5 0 0 H a r d w a r e a n d O p e r a t i o n M a n u a l
5 - 1 0
5.2.11
32-bit Counters
Characteristics of the 32-bit counter
Item
32-bit counter
Type
General type
Number
HC0~HC63
Direction
Counting up/down
setting value
-2,147,483,648~+2,147,483,647
Specification of the setting value
The setting value can be either the constant or the value
occupying two data registers.
Change of the current value
The counter keeps counting after the value of the counter
matches the setting value.
Output contact
The contact is ON when the value of the addition counter
matches the setting value.
The contact is reset to OFF when the value of the subtraction
counter matches the setting value.
Reset
When the instruction RST is executed, the current value is
cleared to zero, and the contact is reset of OFF.
Action of the contact
After the scan is complete, the contact acts.
32-bit general-purpose addition/subtraction counter
1. Setting range: -2,147,483,648~2,147,483,647
2. The switch 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 the addition counter when SM621 is OFF, whereas HC0 is the
subtraction counter when SM621 is ON.
3. Users can use either the constant or the value in the data registers as the setting value of the
counter, and the setting value can be a positive or a negative. If users use the value in the data
registers as the setting value of the counter, the setting value occupies two consecutive registers.
4. For the general-purpose counter, the current value of the counter is cleared when there is a power
cut. If the counter is the latched one, the current value of the counter and the state of the contact
before the power cut will be retained. The latched counter counts from the current value when the
power supply is restored.
5. If the counter counts up from 2,147,483,647, the next current value becomes -2,147,483,648. If the
counter counts down from -2,147,483,648, the next current value becomes 2,147,483,647.
5.2.12
Data Registers
The data register stores the 16-bit data. The highest bit represents either a positive sign or a negative sign,
and the values which can be stored in the data registers range from -32,768 to +32,767. Two 16-bit registers
can be combined into a 32-bit register, i.e. (D+1, D) in which the register whose number is smaller represents
the low 16 bits. The highest bit represents either a positive sign or a negative sign, and the values which can
be stored in the data registers range from -2,147,483,648 to +2,147,483,647. Besides, four 16-bit registers
can be combined into a 64-bit register, i.e. (D+3, D+2, D+1, D) in which the register whose number is smaller
represents the lower 16 bits. The highest bit represents either a positive sign or a negative sign, and the
values which can be stored in the data registers range from -9,223,372,036,854,776 to
+9,223,372,036,854,775,807. The data registers can also be used to refresh the values in the control registers
in the modules other than digital I/O modules. Please refer to ISPSoft User Manual for more information
regarding refreshing the values in the control registers.
The registers can be classified into two types according to their properties.
1. General-purpose register: When the PLC begins to run, or is disconnected, the value in the register will be
cleared to zero. If users want to retain the data when the PLC begins to RUN, they can refer to ISPSoft
User Manual for more information. Please notice that the value will still be cleared to zero when the PLC
is disconnected.
2. Latched register: If the PLC is disconnected, the data in the latched register will not be cleared. In other
words, the value before the disconnection is still retained. If users want to clear the data in the latched
area, they can use RST or ZRST.
Содержание AH500 series
Страница 35: ...AH500 Hardware and Operation Manual 2 2 2 12 2 Profiles 2 117 2 12 3 Dimensions 2 118 ...
Страница 153: ...AH500 Hardware and Operation Manual 2 120 MEMO ...
Страница 167: ...AH500 Hardware and Operation Manual 3 14 MEMO ...
Страница 183: ...AH500 Hardware and Operation Manual 4 16 2 Pull up the clip Type I Type II 3 Remove the terminal block Type I Type II ...
Страница 343: ...AH500 Hardware and Operation Manual 6 38 MEMO ...
Страница 361: ...AH500 Hardware and Operation Manual 7 18 MEMO ...
Страница 403: ...Chapter 8 Hardware Configuration 8 42 MEMO ...
Страница 412: ...Chapter 9 Network Configuration 9 9 ...
Страница 445: ...AH500 Hardware and Operation Manual 9 42 MEMO ...
Страница 552: ...Chapter 12 Troubleshooting 12 3 12 1 3 Troubleshooting Procedure ...
Страница 649: ...AH500 Hardware and Operation Manual A 8 ...
Страница 657: ...AH500 Hardware and Operation Manual A 16 MEMO ...
Страница 658: ...B 1 Appendix B Device Addresses Table of Contents B 1 Device Addresses B 2 ...
Страница 663: ...AH500 Hardware and Operation Manual C 4 MEMO ...
Страница 681: ...AH500 Hardware and Operation Manual 3 14 MEMO ...