Rockwell Automation Publication 2080-UM002L-EN-E - November 2021
141
Chapter 8 Use the High-Speed Counter and Programmable Limit Switch
specific value to HSC Acc while counting, write the value to HSC
AppData.Accumalator immediately before HscCmd =4 is issued.
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).
Table 35 - HSC Commands
HSC Command
Description
0x00
Reserved
0x01
HSC RUN
• Start HSC (if HSC in Idle mode and Rung is Enabled)
• Update HSC Status Info only (if HSC already in RUN mode and Rung is Enabled)
• Update HSC status Info only (if Rung is disabled)
0x02
HSC Stop: Stop an HSC counting (if HSC is in RUN mode and Rung is Enabled.)
0x03
HSC Load: reload HSC Configuration (if Rung is Enabled) for 6 input elements: HPSetting,
LPSetting, HPOutput, LPOutput, OFSetting, and UFSetting. HSC accumulator is NOT reloaded
by cmd = 0x03.
0x04
HSC Reset: set Accumulator to assigned value, and reset HSC status information (if Rung is
Enabled)
Table 36 - HSC Function Block Status Codes
HSC Status Code
Description
0x00
No action from Controller because the function block is not enabled
0x01
HSC function block successfully executed
0x02
HSC command invalid
0x03
HSC ID out of range
0x04
HSC Configuration Error
Table 37 - 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
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.
HSC
HSC
HscId
STS
Mode1Done
HPReached
LPReached
OFOccured
UFOccured
Enable
Содержание Allen-Bradley Micro850
Страница 12: ...12 Rockwell Automation Publication 2080 UM002L EN E November 2021 Preface Notes ...
Страница 36: ...36 Rockwell Automation Publication 2080 UM002L EN E November 2021 Chapter 2 About Your Controller Notes ...
Страница 44: ...44 Rockwell Automation Publication 2080 UM002L EN E November 2021 Chapter 3 Install Your Controller Notes ...
Страница 120: ...120 Rockwell Automation Publication 2080 UM002L EN E November 2021 Chapter 7 Motion Control Notes ...
Страница 156: ...156 Rockwell Automation Publication 2080 UM002L EN E November 2021 Chapter 9 Controller Security Notes ...
Страница 184: ...184 Rockwell Automation Publication 2080 UM002L EN E November 2021 Chapter 10 Using microSD Cards Notes ...
Страница 226: ...226 Rockwell Automation Publication 2080 UM002L EN E November 2021 Appendix C Quickstarts 10 Click Finish to complete ...
Страница 248: ...248 Rockwell Automation Publication 2080 UM002L EN E November 2021 Appendix C Quickstarts Notes ...
Страница 262: ...262 Rockwell Automation Publication 2080 UM002L EN E November 2021 Appendix D User Interrupts Notes ...
Страница 272: ...272 Rockwell Automation Publication 2080 UM002L EN E November 2021 Appendix E Troubleshooting Notes ...