AH500 Module Manual (2) Circular accumulation: If an accumulation register counts up, it counts from 0 to 999999999. If an accumulation register counts down, it counts from 0 to -999999999. If the circular accumulation is larger than the maximum value 999999999 or less than the minimum value -999999999, bit 2 in CR19/CR47/CR75/CR103 will be turned ON, and the value in the accumulation register will become 0. If bit 2 in CR19/CR47/CR75/CR103 is not reset to OFF, it will still be turned ON. If bit 2 in CR19/CR47/CR75/CR103 is reset to OFF, it will be turned ON next time the circular accumulation is larger than 999999999 or less than -999999999.
Number of accum ulated puls es * 999999999 or -999999999 Operation of a counter bit0 (parameters for operation) The circular accumulation is equal to the maximum value or the minimum value. bit2 (parameters for operation state) ON The resetting value of the circular accumulation is equal to the maximum value or the minimum value. bit2 (parameters for operation) OFF The related parameters are described below. *: T he cycle of updating t he number of sampled pulses is the c ycle set. 6. Bit 5 in CR4/CR32/CR60/CR88: If bit 5 in CR4/CR32/CR60/CR88 is turned ON, the function of comparing the number of accumulated pulses with the comparison value set is enabled.
If bit 5 in CR4/CR32/CR60/CR88 is turned OFF, the function of comparing the number of accumulated pulses with the comparison value set is disabled. The number of accumulated pulses is compared with the comparison value set. If the number of accumulated pulses meets the comparison condition set, bit 3 in CR19/CR47/CR75/CR103 will be turned ON. If bit 3 in CR0/CR28/CR56/CR84 is turned ON, bit 3 in CR19/CR47/CR75/CR103 will be turned OFF. There are two types of comparison conditions. One is ≧ , and the other is ≦ . If an accumulation register counts up, ≧ can be used. If an accumulation register counts down, ≦ can be used. Users can select a comparison condition according to their needs.
7-26 Tim e ON ON OFF OFF ON Item Value/Setting value Parameter CH0 CH1 CH2 CH3 Number of accumulated pulses (Low word) -999999999~999999999 #22 #50 #78 #106 Number of accumulated pulses (High word) #23 #51 #79 #107 Operating state of a counter Bit 2: The circular accumulation is equal to the maximum value or the minimum value. #19 #47 #75 #103 Operation of a counter Bit 2: Resetting bit 2 in CR19/CR47/CR75/CR103 #0 #28 #56 #84