Chapter  7  High-speed  Counter  Module  AH02HC/AH04HC 
7-29 
bit#  Described 
3  The number of accumulated pulses meets the comparison condition set. 
4  Upper limit alarm 
5  Lower limit alarm 
6  Error flag 
7~15  Reserved 
 
7.9.7  Number of Input Pulses 
CH0  CH1  CH2  CH3 
High word  Low word  High word  Low word  High word  Low word  High word  Low word 
#25  #24  #53  #52  #81  #80  #109  #108 
 
[Description] 
The number of input pulses is stored in a pulse input register. If bit 0 in CR0/CR28/CR56/CR84 is 
turned ON, and the parameters are set correctly, the system will start the count. The number of 
input pulses is neither prescaled nor averaged. The input pulses are count circularly. The number 
of input pulses is in the range of -2147483648 to 2147483647. 
to
Number of 
input pulses
2147483646
If 1 is added to 21478473647, 
-2147483648
21478473647 will become 
2147483647
-2147483648
-2147483647
0
 
Item  Value 
Parameter 
CH0  CH1  CH2  CH3 
Number of input 
pulses (Low word) 
-2147483648~2147483647 
#24  #52  #80  #108 
Number of input 
pulses (High word) 
#25  #53  #81  #109 
 
7.9.8  Error Codes 
CH0  CH1  CH2  CH3 
High word  Low word  High word  Low word  High word  Low word  High word  Low word 
-  #26  -  #54  -  #82  -  #110 
 
[Description] 
The error messages are shown below. 
Item 
Error code 
CH0  CH1  CH2  CH3 
The linear accumulation exceeds the 
range. 
16#A001  16#A011  16#A021  16#A031 
The prescale value set exceeds the 
range. 
16#A002  16#A012  16#A022  16#A032 
The number of cycles set exceeds 
the range. 
16#A003  16#A013  16#A023  16#A033 
The comparison value set exceeds 
the range. 
16#A004  16#A014  16#A024  16#A034 
A limit value set is incorrect.  16#A005  16#A015  16#A025  16#A035 
The interrupt number set exceeds 
the range. 
16#A006  16#A016  16#A026  16#A036