Chapter 7 High-speed Counter Module AH02HC/AH04HC
7-23
4. Bit 3 in CR4/CR32/CR60/CR88: If bit 3 in CR4/CR32/CR60/CR88 is turned ON, the alarm
function is enabled. If bit 3 in CR4/CR32/CR60/CR88 is turned OFF, the alarm function is
disabled. After the alarm function is enabled, bit 4 or bit 5 in CR19/CR47/CR75/CR103 will be
turned ON if the number of pulses sampled in a cycle is larger than the upper-upper limit value
set or less than the lower-lower limit value set. If the number of sampled pulses is between the
upper-lower limit value set and the lower-upper limit value set, bit 4 or bit 5 in
CR19/CR47/CR75/CR103 will be turned OFF. If users want to use the alarm function, they have
to set an upper-upper limit value, an upper-lower limit value, a lower-upper limit value, and a
lower-lower limit value.
Item Setting value
Parameter
CH0 CH1 CH2 CH3
Upper-upper limit value
(Low word)
-200000~200000
#8 #36 #64 #92
Upper-upper limit value
(High word)
#9 #37 #65 #93
Upper-lower limit value
(Low word)
-200000~200000
#10 #38 #66 #94
Upper-lower limit value
(High word)
#11 #39 #67 #95
Lower-upper limit value
(Low word)
-200000~200000
#12 #40 #68 #96
Lower-upper limit value
(High word)
#13 #41 #69 #97
Lower-lower limit value
(Low word)
-200000~200000
#14 #42 #70 #98
Lower-lower limit value
(High word)
#15 #43 #71 #99
The setting of the four limit values must comply with the rules listed below.
(1) The four limit values must be in the range of -200000 to 200000.
(2) Upper-upper limit value≧Upper-lower limit value>Lower-upper limit value≧Lower-lower
limit value
If the setting of the four limit values does not comply with the rules listed above, and the alarm
function is enabled, bit 6 in CR19/CR47/CR75/CR103 is turned ON when bit 0 in
CR0/CR28/CR56/CR84 is turned from OFF to ON. Users can read the error code 16#A0n5 in
CR26/CR54/CR82/CR110. (n is a channel number. n: 0~3 (i.e. channel 0~channel 3))
The alarm flags are described below.
Item Value
Parameter
CH0 CH1 CH2 CH3
Operating state of a
counter
Bit 4: Exceeding the upper
limit set
Bit 5: Exceeding the lower
limit set
#19 #47 #75 #103