
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
219
Chapter 10 Use the High-Speed Counter and Programmable Limit Switch
When the HSC counts to that new preset, the new output data is written through the HSC mask.
This process continues until the last element within the PLS data block is loaded. At that point,
the active element within the PLS data block is reset to zero. This behavior is referred to as
circular operation.
If invalid data is loaded during operation, an HSC error is generated and causes a controller
fault.
You can use the PLS in Up (high), Down (low), or both directions. If your application only counts
in one direction, ignore the other parameters.
The PLS function can operate with all of the other HSC capabilities. The ability to select which
HSC events generate a user interrupt are not limited.
PLS Example
Setting Up the PLS Data
Using Connected Components Workbench software, define the PLS data HSC_PLS’s dimension
as [1…4].
Once the values above for all 4 PLS data elements have been entered, the PLS is configured.
The HSCHPOutput is only written when HSCHP is reached. The
HSCLPOutput is written when HSCLP is reached.
Output High Data is only operational when the counter is counting up.
Output Low Data is only operational when the counter is counting
down.
PLS Data Definition
Data
Description
Data Format
HSCHP
High Preset
32 bit signed integer
HSCLP
Low Preset
HSCHPOutput
Output High Data
32 bit binary
(bit 31--> 0000 0000 0000 0000 0000 0000 0000 0000 <--bit 0)
HSCLPOutput
Output Low Data