
216
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
Chapter 10 Use the High-Speed Counter and Programmable Limit Switch
High-Speed Counter (HSC)
Function Block
The HSC function block can be used to start/stop HSC counting, to refresh HSC status, to
reload HSC setting, and to reset HSC accumulator.
HSC Commands (HScCmd)
HscCmd is an input parameter with data type USINT. All HSC commands (1…4) are Level
commands. Users are advised to disable the instruction before updating the command.
HscCmd = 1
starts the HSC mechanism. Once the HSC is in running mode, the
HscCmd = 2
must be issued to stop counting. Setting the Enable input parameter to False does not stop
counting while in running mode.
HscCmd = 3 reloads the following parameter values: HighPreset, LowPreset, OverFlow,
UnderFlow, HighPreset Output, and LowPreset Output.
The parameter values shown in the Variable Monitor may not match the values in the
Hardware. Command 3 must be executed to load the values from the variables to the hardware
without stopping the HSC.
If the HSC Enable is True, HscCmd = 3 will continuously load the parameters. Trigger HscCmd =
3 only once.
HscCmd = 4
(reset) sets the Acc value to the HSC AppData.Accumalator value. The HscCmd =4
does not stop HSC counting. If HSC is counting when the HscCmd =4 is issued, some counting
may be lost.
To reset the Acc value and then continue the counting, trigger the HscCmd =4 only once. If the
command is enabled continuously, it may cause errors.
HSC AppData.Accumalator value is updated automatically by the HSC mechanism with the
same value as the HSC Sts.Accumulator. To set one specific value to HSC Acc while counting,
write the value to HSC AppData.Accumalator immediately before HscCmd =4 is issued.
HSC
HSC
HscCmd
STS
HscAppData
HscStsInfo
PlsData
Enable
Table 54 - HSC Parameters
Parameter
Parameter Type
Data Type
Parameter Description
Enable
Input
BOOL
Enable function block.
When Enable = TRUE, perform the HSC operation specified in “HSC command” parameter.
When Enable = FALSE, there is no HSC operation, and no HSC status update.
HscCmd
Input
USINT
HscAppData
Input
See HSC APP Data Structure on page
HSC application configuration. Only initial configuration is needed usually.
PlsData
Input
See array of Programmable Limit
Switch (PLS) Function on page 218
Programmable Limit Switch (PLS) Data
HscStsInfo
Output
HSC dynamic status. Status info is usualy continuously updated during HSC counting.
Sts
Output
UINT
HSC function block execution status
Содержание 2080-L50E-24AWB
Страница 14: ...14 Rockwell Automation Publication 2080 UM002N EN E November 2022 Notes ...
Страница 54: ...54 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 4 Wire Your Controller Notes ...
Страница 128: ...128 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 7 Program Execution in Micro800 Notes ...
Страница 156: ...156 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 8 EtherNet IP Network Notes ...
Страница 198: ...198 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 9 Motion Control Notes ...
Страница 232: ...232 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 11 Controller Security Notes ...
Страница 260: ...260 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 12 Using microSD Cards Notes ...
Страница 266: ...266 Rockwell Automation Publication 2080 UM002N EN E November 2022 Appendix A Modbus Mapping for Micro800 Notes ...
Страница 275: ...Rockwell Automation Publication 2080 UM002N EN E November 2022 275 Appendix B Quickstarts 10 Click Finish to complete ...
Страница 332: ...332 Rockwell Automation Publication 2080 UM002N EN E November 2022 Appendix E PID Function Blocks Notes ...
Страница 352: ...352 Rockwell Automation Publication 2080 UM002N EN E November 2022 Appendix G Connect to Networks using DF1 Notes ...
Страница 388: ...388 Rockwell Automation Publication 2080 UM002N EN E November 2022 Index Notes ...