Kaiyi — 7.9.5 Counting Parameters

Chapter 7 High-speed Counter Module AH02HC/AH04HC Bit 0 in CR19/CR47/CR75/CR103 ON * 1 OFF Comparison value 1200 ON Bit 0 in CR0/CR28/CR56/CR84 OFF 1 * Number of sampled pulses 1100+203>1200 203 Number of accumulated pulses 1303 ON * 2 Bit 3 in CR19/CR47/CR75/CR103 OFF Bit 3 in CR0/CR28/CR56/CR84 OFF ON * 3 *1: If bit 0 in CR0/CR28/CR56/CR84 is turned ON, bit 0 in CR19/CR47/CR75/CR103 will be turned ON, and the system will start the count. *2: If the number of accumulated pulses is larger than or equal to the comparison value, 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. *3:

If bit 3 in CR0/CR28/CR56/CR84 is turned ON, bit 3 in CR19/CR47/CR75/CR103 will be reset to OFF. If bit 3 in CR19/CR47/CR75/CR103 is turned OFF, bit 3 in CR0/CR28/CR56/CR84 will be turned OFF automatically. The related parameters are described below. 7-27 686 0 686 Item Value/Setting value Parameter CH0 CH1 CH2 CH3 Counting parameters Bit 4: Setting the accumulation register (OFF: The accumulation register counts linearly. ON: The accumulation register counts circularly.) Bit 6: Selecting a type of comparison condition (OFF: ≧; ON:

≦) #4 #32 #60 #88 Number of accumulated pulses (Low word) -999999999~999999999 #22 #50 #78 #106 Number of accumulated pulses (High word) #23 #51 #79 #107 Comparison value (Low word) -999999999~999999999 #16 #44 #72 #100 Comparison value (High word) #17 #45 #73 #101 Operating state of a counter Bit 3: The number of accumulated pulses meets the comparison condition set. #19 #47 #75 #103 Operation of a counter Bit 3: Resetting bit 3 in CR19/CR47/CR75/CR103 #0 #28 #56 #84