Rockwell Automation Publication 2080-UM002K-EN-E - March 2019
159
Use the High-Speed Counter and Programmable Limit Switch
Chapter
8
HSC_SET_STS Function
Block
The HSC Set Status function block can be used to change the HSC counting
status. This function block is called when the HSC is not counting (stopped).
Programmable Limit Switch
(PLS) Function
The Programmable Limit Switch function allows you to configure the
High-Speed Counter to operate as a PLS (programmable limit switch) or rotary
cam switch.
When PLS operation is enabled (HSCAPP.PLSEnable = True), the HSC
(High-Speed Counter) uses PLS data for limit/cam positions. Each limit/cam
position has corresponding data parameters that are used to set or clear physical
outputs on the controller’s base unit. The PLS data block is illustrated below.
HSC Parameters
Parameter
Parameter
Type
Data Type
Parameter Description
Enable
Input
BOOL
Enable function block.
When Enable = TRUE, set/reset the HSC status.
When Enable = FALSE, there is no HSC status
change.
HscId
Input
See HSC APP
Describes which HSC status to set.
Mode1Done
Input
BOOL
Mode 1A or 1B counting is done.
HPReached
Input
BOOL
High Preset reached.
This bit can be reset to FALSE when HSC is not
counting.
LPReached
Input
BOOL
Low Preset reached.
This bit can be reset to FALSE when HSC is not
counting.
OFOccurred
Input
BOOL
Overflow occurred.
This bit can be reset to FALSE when necessary.
UFOccurred
Input
BOOL
Underflow occurred.
This bit can be reset to FALSE when necessary.
Sts
Output
UINT
HSC function block execution status
Refer to HSC Function Block Status Codes on
page 158 for HSC status code description (except
0x02 and 0x04).
HSC
HSC
HscId
STS
Mode1Done
HPReached
LPReached
OFOccured
UFOccured
Enable
45646
Содержание 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 ...