Chapter 14 High-Speed Counter (HSC) instructions
352 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Results
In this example, once MyInfo.Accumulator reaches a High Preset value of 40,
output 0 turns on and the HPReached flag turns on. If MyInfo.Accumulator
reaches a Low Preset value of -40, output 1 turns on and the LPReached flag turns
on as well.