202 Rockwell Automation Publication 2080-UM002M-EN-E - April 2022
Chapter 9 Use the High-Speed Counter and Programmable Limit Switch
The data loaded into the low preset must greater than or equal to the data
resident in the underflow (HSCAPP.UFSetting) parameter, or an HSC error is
generated. If the underflow and low preset values are negative numbers, the
low preset must be a number with a smaller absolute value.
This is the latest low preset setting, which may be updated by PLS function
from the PLS data block.
The High Preset Output defines the state (1 = ON or 0 = OFF) of the outputs on
the controller when the high preset is reached. See Output Mask Bits
(HSCAPP.OutputMask) on page 195 for more information on how to directly
turn outputs on or off based on the high preset being reached.
This is the latest high preset output setting, which may be updated by PLS
function from the PLS data block.
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 195 for more information on how to directly
turn outputs on or off based on the low preset being reached.
This is the latest low preset output setting, which may be updated by PLS
function from the PLS data block.
High-Speed Counter (HSC)
Function Block
The HSC function block can be used to start/stop HSC counting, to refresh
HSC status, to reload HSC setting, and to reset HSC accumulator.
High Preset Output (HSCSTS.HPOutput)
Description Data Format User Program Access
HSCSTS.HPOutput long word (32 bit binary) read only
Low Preset Output (HSCSTS.LPOutput)
Description Data Format User Program Access
HSCSTS.LPOutput long word (32 bit binary)) read only
HSC
HscCmd
STS
HscAppData
HscStsInfo
PlsData
Enable
Table 41 - HSC Parameters
Parameter Parameter Type Data Type Parameter Description
Enable Input BOOL
Enable function block.
When Enable = TRUE, perform the HSC operation specified in “HSC command” parameter.
When Enable = FALSE, there is no HSC operation, and no HSC status update.
HscCmd Input USINT See HSC Commands on page 203
HscAppData Input
See HSC APP Data Structure on page
187
HSC application configuration. Only initial configuration is needed usually.