Rockwell Automation Publication 2080-UM002N-EN-E - November 2022 287
Appendix B          Quickstarts
5. Turn On the encoder to see the counter count up/down. For example, if the encoder is 
attached to a motor shaft then turn on the motor to trigger the HSC count. The counter 
value will be displayed on MyInfo.Accumulator. MyStatus variable should display a 
Logical Value of 1, which means that the HSC is running.
For this example, once the Accumulator reaches a High Preset value of 40, output 0 turns on, 
and the HPReached flag turns on. Once the Accumulator reaches a Low Preset value of -40, 
output 1 turns on and the LPReached flag turns on as well.
Use the Programmable Limit Switch (PLS) Function
The Programmable Limit Switch function allows you to configure the High-Speed Counter to 
operate as a PLS (programmable limit switch) or rotary cam switch. The PLS is used when you 
need more than one pair of high and low presets (up to 255 pairs of high and low presets are 
supported by the PLS). 
See HSC Function Block Status Codes on page 217 for the complete list of 
status codes. For example, if the MyStatus value is 04, a configuration 
error exists and the controller will fault. You need to check your 
parameters in this case.