Chapter 2 Devices, Symbols and Instructions The 16-bit counter: 1. Setting range: 0~32,767 (The setting values 0 and 1 mean the same thing in that the output contact is ON when the counter counts for the first time.) 2. For the general-purpose counter, the current value of the counter is cleared when there is a power cut. If the counter is latched counter counts from the current value when the power supply is restored. the latched one, the current value of the counter and the state of the contact before the power cut will be retained. The 3.
If you use the instruction MOV or ISPSoft to transmit a value bigger than the setting value to the current value register C0, the contact of the counter C0 will be ON and the current value will become the same as the setting value next time X0.1 is switched from OFF to ON. 4. You can use either the constant or the value in the register as the setting value of the counter. 2_ 5. The setting value of the counter can be a positive or a negative. If the counter counts up from 32,767, the next current value becomes -32,768. Refer to Chapter 5: Understanding Common Devices of AH Motion Controller - Operation Manual for more information. 2.1.14. 32-bit Counters (HC/AC) HC:
The 32-bit general-purpose addition/subtraction counter AC: The 32-bit counters used specifically for motion axis. The function of AC is the same as that of HC 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. You 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 you 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. Refer to Chapter 5:
Understanding Common Devices of AH Motion - Operation Manual for more information. 2.1.15. Values and Constants (K, 16#) values are illustrated as follows: The PLC uses four types of values to execute the operation according to different control purposes. The functions of these 1. Binary number (BIN) The PLC adopts the binary system to operate the values. 2. Decimal number (DEC) The decimal number in the PLC is used as the setting value of the timer (T) or the setting value of the counter (C/HC). For example, TMR C0 50 ( constant K ). 2-9