Rockwell Automation Publication 2080-UM002K-EN-E - March 2019
157
Use the High-Speed Counter and Programmable Limit Switch
Chapter
8
HSC (High Speed Counter)
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.
HSC
HSC
HscCmd
STS
HscAppData
HscStsInfo
PlsData
Enable
45631
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
Refer to HSC Commands on page 158
HscAppData
Input
HSC application configuration. Only initial configuration is needed usually.
PlsData
Input
See array of Programmable Limit
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
Содержание Micro830
Страница 6: ...vi Rockwell Automation Publication 2080 UM002K EN E March 2019 Preface Notes ...
Страница 24: ...10 Rockwell Automation Publication 2080 UM002K EN E March 2019 Chapter 1 Hardware Overview Notes ...
Страница 70: ...56 Rockwell Automation Publication 2080 UM002K EN E March 2019 Chapter 4 Wire Your Controller Notes ...
Страница 88: ...74 Rockwell Automation Publication 2080 UM002K EN E March 2019 Chapter 5 Communication Connections Notes ...
Страница 190: ...176 Rockwell Automation Publication 2080 UM002K EN E March 2019 Chapter 9 Controller Security Notes ...
Страница 254: ...240 Rockwell Automation Publication 2080 UM002K EN E March 2019 Appendix A Specifications Notes ...
Страница 273: ...Rockwell Automation Publication 2080 UM002K EN E March 2019 259 Quickstarts Appendix C ...
Страница 300: ...286 Rockwell Automation Publication 2080 UM002K EN E March 2019 Appendix C Quickstarts Notes ...
Страница 330: ...316 Rockwell Automation Publication 2080 UM002K EN E March 2019 Appendix E Troubleshooting Notes ...
Страница 344: ...330 Rockwell Automation Publication 2080 UM002K EN E March 2019 Appendix F PID Function Blocks Notes ...
Страница 352: ...Rockwell Automation Publication 2080 UM002K EN E March 2019 338 Index Notes ...
Страница 353: ...Rockwell Automation Publication 2080 UM002K EN E March 2019 339 ...