Allen-Bradley MicroLogix 1200 Reference Manual page 92

Hide thumbs Also See for MicroLogix 1200:
Table of Contents

Advertisement

5-22
Using the High-Speed Counter
Publication 1762-RM001C-EN-P
Accumulator (ACC)
Description
Address
ACC - Accumulator HSC:0.ACC long word (32-bit INT)
The ACC (Accumulator) contains the number of counts detected by the
HSC sub-system. If either mode 0 or mode 1 is configured, the value of the
software accumulator is cleared (0) when a high preset is reached or
when an overflow condition is detected.
High Preset (HIP)
Description
Address
HIP - High Preset HSC:0.HIP long word (32-bit INT)
The HIP (High Preset) is the upper setpoint (in counts) that defines when
the HSC sub-system generates an interrupt. To load data into the high
preset, the control program must do one of the following:
• Toggle (low to high) the Set Parameters (HSC:0/SP) control bit. When
the SP bit is toggled high, the data currently stored in the HSC
function file is transferred/loaded into the HSC sub-system.
• Load new HSC parameters using the HSL instruction. See HSL -
High-Speed Counter Load on page 5-26.
The data loaded into the high preset must be less than or equal to the
data resident in the overflow (HSC:0.OVF) parameter or an HSC error is
generated.
Low Preset (LOP)
Description
Address
LOP - Low Preset
HSC:0.LOP
The LOP (Low Preset) is the lower setpoint (in counts) that defines when
the HSC sub-system generates an interrupt. To load data into the low
preset, the control program must do one of the following:
• Toggle (low to high) the Set Parameters (HSC:0/SP) control bit. When
the SP bit is toggled high, the data currently stored in the HSC
function file is transferred/loaded into the HSC sub-system.
• Load new HSC parameters using the HSL instruction. See HSL -
High-Speed Counter Load on page 5-26.
The data loaded into the low preset must greater than or equal to the data
resident in the underflow (HSC:0.UNF) parameter, or an HSC error is
generated. (If the underflow and low preset values are negative numbers,
the low preset must be a number with a smaller absolute value.)
Data Format
Type
control
Data Format
Type
control
Data Format
long word (32-bit INT) control read/write
User Program Access
read/write
User Program Access
read/write
Type
User Program Access

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrologix 1500

Table of Contents