
212
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
Chapter 10 Use the High-Speed Counter and Programmable Limit Switch
The Mode Done status flag is set (1) by the HSC sub-system when the HSC is configured for
Mode 0 or Mode 1 behavior, and the accumulator counts up to the High Preset.
The HSCSTS.OVF status flag is set (1) by the HSC sub-system whenever the accumulated value
(HSCSTS.Accumulator) has counted through the overflow variable (HSCAPP.OFSetting).
This bit is transitional and is set by the HSC sub-system. It is up to the control program to
utilize, track if necessary, and clear (0) the overflow condition.
Overflow conditions do not generate a controller fault.
The Underflow status flag is set (1) by the HSC sub-system whenever the accumulated value
(HSCSTS.Accumulator) has counted through the underflow variable (HSCAPP.UFSetting).
This bit is transitional and is set by the HSC sub-system. It is up to the control program to
utilize, track if necessary, and clear (0) the underflow condition.
Underflow conditions do not generate a controller fault.
The Count Direction status flag is controlled by the HSC sub-system. When the HSC
accumulator counts up, the direction flag is set (1). Whenever the HSC accumulator counts
down, the direction flag is cleared (0).
If the accumulated value stops, the direction bit retains its value. The only time the direction
flag changes is when the accumulated count reverses.
This bit is updated continuously by the HSC sub-system whenever the controller is in a run
mode.
The High Preset Reached status flag is set (1) by the HSC sub-system whenever the
accumulated value (HSCSTS.Accumulator) is greater than or equal to the high preset variable
(HSCAPP.HPSetting).
Mode Done (HSCSTS.Mode1Done)
Description
Data Format
HSC Modes
(1)
(1) For Mode descriptions, see
HSC Mode (HSCAPP.HSCMode) on page 204
User Program Access
HSCSTS.Mode1Done
bit
0 or 1
read/write
Overflow (HSCSTS.OVF)
Description
Data Format
HSC Modes
(1)
(1) For Mode descriptions, see
HSC Mode (HSCAPP.HSCMode) on page 204
User Program Access
HSCSTS.OVF
bit
0…9
read/write
Underflow (HSCSTS.UNF)
Description
Data Format
HSC Modes
(1)
(1) For Mode descriptions, see
HSC Mode (HSCAPP.HSCMode) on page 204
User Program Access
HSCSTS.UNF
bit
0…9
read/write
Count Direction (HSCSTS.CountDir)
Description
Data Format
HSC Modes
(1)
(1) For Mode descriptions, see
HSC Mode (HSCAPP.HSCMode) on page 204
User Program Access
HSCSTS.CountDir
bit
0…9
read only
High Preset Reached (HSCSTS.HPReached)
Description
Data Format
HSC Modes
(1)
(1) For Mode descriptions, see
Count Down (HSCSTS.CountDownFlag) on page 211
User Program Access
HSCSTS.HPReached
bit
2…9
read/write