EasyManua.ls Logo

Rockwell Automation Allen-Bradley Micro830

Rockwell Automation Allen-Bradley Micro830
390 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 HSC
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 Accumulator + 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 Accumulator + 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)

Table of Contents

Other manuals for Rockwell Automation Allen-Bradley Micro830

Related product manuals