134 Rockwell Automation Publication 2080-UM002L-EN-E - November 2021
Chapter 8 Use the High-Speed Counter and Programmable Limit Switch
The Low Preset Output defines the state (1 = “on”, 0 = “off”) of the outputs on
the controller when the low preset is reached. See Output Mask Bits
(HSCAPP.OutputMask) on page 132 for more information on how to directly
turn outputs on or off based on the low preset being reached.
The low output bit pattern can be configured during initial setup, or while the
controller is operating. Use the HSC function block to load the new parameters
while the controller is operating.
HSC STS (HSC Status) Data
Structure
Define an HSC STS data (HSC status information data, data type HSCSTS)
when programming an HSC.
The Counting Enabled control bit is used to indicate the status of the High-
Speed Counter, whether counting is enabled (1) or disabled (0, default).
The Error Detected flag is a status bit that can be used in the control program
to detect if an error is present in the HSC sub-system. The most common type
of error that this bit represents is a configuration error. When this bit is set (1),
you should look at the specific error code in parameter HSCSTS.ErrorCode.
Low Preset Output (HSCAPP.LPOutput)
Description Data Format User Program Access
HSCAPP.LPOutput long word (32 bit binary) read/write
Counting Enabled (HSCSTS.CountEnable)
Description Data Format
HSC Modes
(1)
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 127.
User Program Access
HSCSTS.CountEnable bit 0…9 read only
Error Detected (HSCSTS.ErrorDetected)
Description Data Format
HSC Modes
(1)
(1) For Mode descriptions, see HSC Mode (HSCAPP.HSCMode) on page 127.
User Program Access
HSCSTS.ErrorDetected bit 0…9 read/write