Chapter 7 High-speed Counter Module AH02HC/AH04HC
7-17
CH0 CH1 CH2 CH3 Attribute Register name
Default
value
Remark
value (Low word)
#11 #39 #67 #95 R/W
Upper-lower limit
value (High word)
0
#12 #40 #68 #96 R/W
Lower-upper limit
value (Low word)
0
-200000~200000
#13 #41 #69 #97 R/W
Lower-upper limit
value (High word)
0
#14 #42 #70 #98 R/W
Lower-lower limit
value (Low word)
0
-200000~200000
#15 #43 #71 #99 R/W
Lower-lower limit
value (High word)
0
#16 #44 #72 #100 R/W
Comparison value
(Low word)
0
-999999999~999999999
#17 #45 #73 #101 R/W
Comparison value
(High word)
0
#18 #46 #74 #102 R/W
Interrupt triggered
by a comparison
0 0~31
#19 #47 #75 #103 R
Operating state of a
counter
16#0000 Bit 0~bit 6
#20 #48 #76 #104 R
Number of sampled
pulses (Low word)
0
-200000~200000
#21 #49 #77 #105 R
Number of sampled
pulses (High word)
0
#22 #50 #78 #106 R
Number of
accumulated
pulses (Low word)
0
-999999999~999999999
#23 #51 #79 #107 R
Number of
accumulated
pulses (High word)
0
#24 #52 #80 #108 R
Number of input
pulses (Low word)
0
-2147483648~2147483647
#25 #53 #81 #109 R
Number of input
pulses (High word)
0
#26 #54 #82 #110 R Error code 0 Six error codes
#27 #55 #83 #111 Reserved
*1: CR0, CR28, CR56, and CR84 can only be used as normal exchange registers. They can not be
set by means of the instruction TO.
7.8 Writing Parameters
Users can set the parameters in AH02HC-5A/AH04HC-5A by means of ISPSoft, and set
CR0/CR28/CR56/CR84 by means of the output devices assigned to AH02HC-5A/AH04HC-5A. The
users can also set the parameters in AH02HC-5A/AH04HC-5A by means of the instruction TO or
DTO.
(1) Software: ISPSoft
After AH02HC-5A/AH04HC-5A is installed, HWCONFIG in ISPSoft can be used to set the
parameters in AH02HC-5A/AH04HC-5A. Users can not start AH02HC-5A/AH04HC-5A by
means of HWCONFIG in ISPSoft. However, CR0, CR28, CR56, and CR84 can be set by the
output devices assigned to AH02HC-5A/AH04HC-5A in the program written in ISPSoft.
(2) Instruction: TO or DTO
Parameters can be changed by means of the instruction TO or DTO. When
AH02HC-5A/AH04HC-5A counts, users can not change parameters. The change of parameters