
204
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
Chapter 10 Use the High-Speed Counter and Programmable Limit Switch
The HSCMode variable sets the High-Speed Counter to one of 10 types of operation. This
integer value is configured through the programming device and is accessible in the control
program.
The main high-speed counters support 10 types of operation mode and the sub high-speed
counters support 5 types (mode 0, 2, 4, 6, 8). If the main high-speed counter is set to mode 1, 3,
5, 7 or 9, then the resub high-speed counter will be disabled.
For more information on HSC Function Operating Modes and Input Assignments, see
Inputs and Wiring Mapping on page 201
.
HSC Mode 0 – Up Counter
Blank cells = don’t care,
= rising edge,
= falling edge
HSC Mode 1 – Up Counter with External Reset and Hold
HSC Mode (HSCAPP.HSCMode)
Description
Data Format
User Program Access
HSC Mode
word (UINT)
read/write
HSC Operating Modes
Mode
Number
Type
0
Up Counter – The accumulator is immediately cleared (0) when it reaches the high preset. A low
preset cannot be defined in this mode.
1
Up Counter with external reset and hold – The accumulator is immediately cleared (0) when it
reaches the high preset. A low preset cannot be defined in this mode.
2
Counter with external direction
3
Counter with external direction, reset, and hold
4
Two input counter (up and down)
5
Two input counter (up and down) with external reset and hold
6
Quadrature counter (phased inputs A and B)
7
Quadrature counter (phased inputs A and B) with external reset and hold
8
Quadrature X4 counter (phased inputs A and B)
9
Quadrature X4 counter (phased inputs A and B) with external reset and hold
Table 43 - HSC Mode 0 Examples
Input Terminals
Embedded Input 0
Embedded Input 1 Embedded Input 2 Embedded Input 3 CE Bit
Comments
Function
Count
Not Used
Not Used
Not Used
Example 1
on (1)
HSC Accum 1 count
Example 2
on (1) ß
off (0)
off (0)
Hold accumulator value
Inputs 0…11 are available for use as inputs to other functions regardless of the HSC being used.
Table 44 - HSC Mode 1 Examples
Input Terminals
Embedded Input 0
Embedded Input 1 Embedded Input 2
Embedded Input 3
CE Bit
Comments
Function
Count
Not Used
Reset
Hold
Example 1
on (1)
off
(0)
off (0) on (1)
HSC Accum 1 count
Example 2
on (1)
off
(0)
on (1)
Hold accumulator value
Example3
on (1)
off
(0)
off (0)
Hold accumulator value
Example 4
on (1)
off (0)
on (1)
off
(0)
Hold accumulator value
Example 5
Clear accumulator (=0)
Содержание 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 ...