Low preset (hscapp.lpsetting), Overflow setting (hscapp.ofsetting), Underflow setting (hscapp.ufsetting) – Rockwell Automation 2080-LC50 Micro830 and Micro850 Programmable Controllers User Manual User Manual
Page 141
![background image](/manuals/580524/141/background.png)
Rockwell Automation Publication 2080-UM002F-EN-E - December 2013
125
Use the High-Speed Counter and Programmable Limit Switch Chapter 8
Low Preset (HSCAPP.LPSetting)
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 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.)
Overflow Setting (HSCAPP.OFSetting)
The HSCAPP.OFSetting defines the upper count limit for the counter. If the
counter’s accumulated value increments past the value specified in this variable,
an overflow interrupt is generated. When the overflow interrupt is generated, the
HSC sub-system rolls the accumulator over to the underflow value and the
counter continues counting from the underflow value (counts are not lost in this
transition). The user can specify any value for the overflow position, provided it is
greater than the underflow value and falls between -2,147,483,648 and
2,147,483,647.
Underflow Setting (HSCAPP.UFSetting)
The HSCAPP.UFSetting defines the lower count limit for the counter. If the
counter’s accumulated value decrements past the value specified in this variable,
an underflow interrupt is generated. When the underflow interrupt is generated,
the HSC sub-system resets the accumulated value to the overflow value and the
counter then begins counting from the overflow value (counts are not lost in this
transition). The user can specify any value for the underflow position, provided it
is less than the overflow value and falls between -2,147,483,648 and
2,147,483,647.
Description
Data Format
User Program Access
HSCAPP.LPSetting
long word (32-bit INT)
read/write
Description
Data Format
Type
User Program Access
HSCAPP.OFSetting
long word (32-bit INT)
control
read/write
TIP
Data loaded into the overflow variable must be greater than or equal
to the data resident in the high preset (HSCAPP.HPSetting) or an HSC
error is generated.
Description
Data Format
User Program Access
HSCAPP.UFSetting
long word (32-bit INT)
read/write