Publication 1766-RM001A-EN-P - October 2008
Using the High-Speed Counter and Programmable Limit Switch
125
Accumulator (ACC)
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)
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 130.
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)
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.
Description
Address
Data Format
Type
User Program Access
ACC - Accumulator HSC:0.ACC long word (32-bit INT)
control
read/write
Description
Address
Data Format
Type
User Program Access
HIP - High Preset HSC:0.HIP long word (32-bit INT)
control
read/write
Description
Address
Data Format
Type
User Program Access
LOP - Low Preset
HSC:0.LOP
long word (32-bit INT) control read/write
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive