Rockwell Automation Publication 2080-UM002L-EN-E - November 2021 131
Chapter 8 Use the High-Speed Counter and Programmable Limit Switch
HSC Mode 9 – Quadrature X4 Counter with External Reset and Hold
This parameter is the initial HSC Accumulator value that need to be set when
starting the HSC. This parameter is updated by the HSC sub-system
automatically when the HSC is in Counting mode, reflecting the actual HSC
accumulator value.
The HSCAPP.HPSetting is the upper setpoint (in counts) that defines when the
HSC sub-system generates an interrupt.
The data loaded into the high preset must be less than to the data resident in
the overflow (HSCAPP.OFSetting) parameter or an HSC error is generated.
The HSCAPP.LPSetting is the lower setpoint (in counts) that defines when the
HSC sub-system generates an interrupt.
The data loaded into the low preset must be:
1. Less than or equal to 0 for HSC
Mode (HSCAPP.HSCMode) parameter
value
s 0 and 1 or an HSC error is generated.
2. Greater than or equal to the data
resident in the underflow
(H
SCAPP.UFSe
tting) parameter for all HSC Mode (HSCAPP.HSCMode)
or an H
SC error is generated.
Table 32 - HSC Mode 9 Examples
Embedded Input
0(HSC0) (A))
Embedded Input
1(HSC0) (B)
Embedded Input
2(HSC0) (Reset)
Embedded Input
3(HSC0) (Hold)
Value of CE Bit Accumulator and Counter Action
OFF X - TRUE Count Up Acc. Value
ON X - TRUE Count Down Acc. Value
OFF X - TRUE Count Down Acc. Value
ON X - TRUE Count Up Acc. Value
OFF X - TRUE Count Down Acc. Value
ON X - TRUE Count Up Acc. Value
OFF X - TRUE Count Up Acc. Value
ON X - TRUE Count Down Acc. Value
OFF or ON OFF or ON OFF X X Hold Acc. Value
OFF OFF ON X X Reset Acc. to Zero
X X OFF ON X Hold Acc. Value
X X OFF X FALSE Hold Acc. Value
Accumulator (HSCAPP. Accumulator)
Description Data Format User Program Access
HSCAPP.Accumulator long word (32-bit INT) read/write
High Preset (HSCAPP.HPSetting)
Description Data Format User Program Access
HSCAPP.HPSetting long word (32-bit INT) read/write
Low Preset (HSCAPP.LPSetting)
Description Data Format User Program Access
HSCAPP.LPSetting long word (32-bit INT) read/write