Chapter 14 High-Speed Counter (HSC) instructions
320 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
HSCAppData parameters example
The following image shows the HSCAppData parameters in the Variable
Selector.
HSCSTS data type
HSCSTSInfo (data type HSCSTS) displays the status of the High-Speed
Counter.
HSCSTSInfo status actions
During HSC counting, the following HSC status actions occur.
• If the HSC function block is counting with command 0x01, the HSC status
is continuously updated.
• If an error occurs, the Error_Detected flag is turned on and an error code is
set.
HSCSTSInfo parameters
The following table describes the HSCSTSInfo parameters.
Parameter
Data
type
HSC mode User program access Description
CountEnable BOOL 0...9 read only Counting enabled.
ErrorDetected BOOL 0...9 read/write Non-zero means error detected.
CountUpFlag BOOL 0...9 read only Count up flag.
CountDwnFlag BOOL 2...9 read only Count down flag.
Mode1Done BOOL 0 or 1 read/write HSC is Mode 1A or Mode 1B; accumulator counts up to the HP value.
OVF BOOL 0...9 read/write Overflow is detected.