Publication 1763-RM001C-EN-P - October 2009
Using the High-Speed Counter and Programmable Limit Switch
107
Count Up (CU)
The CU (Count Up) bit is used with all of the HSCs (modes 0 to 7). If the
CE bit is set, the CU bit is set (1). If the CE bit is clear, the CU bit is cleared
(0).
HSC Mode (MOD)
The MOD (Mode) variable sets the High-Speed Counter to one of 8 types
of operation. This integer value is configured through the programming
device and is accessible in the control program as a read-only variable.
Description
Address
Data Format
HSC Modes
(1)
(1) For Mode descriptions, see HSC Mode (MOD) on page 107.
Type
User Program Access
CU - Count Up HSC:0/CU bit
0 to 7
status read only
Description
Address
Data Format
Type
User Program Access
MOD - HSC Mode HSC:0.MOD word (INT)
control
read only
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
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive