Accumulator (hscapp. accumulator), High preset (hscapp.hpsetting) – Rockwell Automation 2080-LC50 Micro830 and Micro850 Programmable Controllers User Manual User Manual

Page 140

Advertising
background image

124

Rockwell Automation Publication 2080-UM002F-EN-E - December 2013

Chapter 8 Use the High-Speed Counter and Programmable Limit Switch

HSC Mode 9 – Quadrature X4 Counter with External Reset and Hold

Accumulator (HSCAPP. Accumulator)

This parameter is the initial HSC Accumulator value that need to be set when
starting the HSC. This parameter is updated by the HSC sub-system
automatically when the HSC is in Counting mode, reflecting the actual HSC
accumulator value.

High Preset (HSCAPP.HPSetting)

The HSCAPP.HPSetting is the upper setpoint (in counts) that defines when the
HSC sub-system generates an interrupt.

The data loaded into the high preset must be less than or equal to the data
resident in the overflow (HSCAPP.OFSetting) parameter or an HSC error is
generated.

HSC Mode 9 Examples

Embedded
Input 0(HSC0)
(A))

Embedded
Input 1(HSC0)
(B)

Embedded
Input 2(HSC0)
(Reset)

Embedded Input
3(HSC0)
(Hold)

Value of CE Bit

Accumulator and Counter Action

OFF

X

-

TRUE

Count Up Acc. Value

ON

X

-

TRUE

Count Down Acc. Value

OFF

X

-

TRUE

Count Down Acc. Value

ON

X

-

TRUE

Count Up Acc. Value

OFF

X

-

TRUE

Count Down Acc. Value

ON

X

-

TRUE

Count Up Acc. Value

OFF

X

-

TRUE

Count Up Acc. Value

ON

X

-

TRUE

Count Down Acc. Value

OFF or ON

OFF or ON

OFF

X

X

Hold Acc. Value

OFF

OFF

ON

X

X

Reset Acc. to Zero

X

X

OFF

ON

X

Hold Acc. Value

X

X

OFF

X

FALSE

Hold Acc. Value

Description

Data Format

User Program Access

HSCAPP.Accumulator

long word (32-bit INT)

read/write

Description

Data Format

User Program Access

HSCAPP.HPSetting

long word (32-bit INT)

read/write

Advertising
This manual is related to the following products: