Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 309
Chapter 14
High-Speed Counter (HSC) instructions
High-speed counter instructions are used to monitor and control the high-speed
counter.
Function block Description
HSC on page 311 HSC applies high presets, low presets and output source values to the high-speed counter.
HSC_SET_STS on page 331 HSC_SET_STS manually sets or resets the HSC counting status.
A high-speed counter detects and counts narrow (fast) pulses and then issues
specialized instructions to initiate control operations when the detected counts
reach their preset values. Control operations include the automatic and
immediate execution of the high-speed counter interrupt routine and the
immediate update of outputs based on the configured source and mask pattern.
High-speed counter capabilities
Because HSC instructions have high-performance requirements, their operation is
performed by custom circuitry that runs in parallel with the main system
processor. Enhanced capabilities of High-Speed Counters include:
• 100 kHz operation high-speed direct control of outputs
• 32-bit signed integer data (count range of ± 2,147,483,647)
• Programmable high and low presets
• Overflow and underflow setpoints
• Automatic interrupt processing based on accumulated count
• Run-time editable parameters (from the user control program) HSC
instruction operation
Counter?