beautypg.com

Range start value, range stop value, Output state: output state byte – Rockwell Automation 1746-HSCE2 Multi-Channel High Speed Counter Module User Manual

Page 72

background image

Publication 1746-UM002B-EN-P - August 2004

4-22 Configuration and Programming

The range number word is subject to the following special conditions:

• If the range start value equals the range stop value and word 6

equals zero, the range indicated is reset.

• If a range or ranges not belonging to the indicated counter are

set, the block is rejected and a programming error results.

• If the range number equals zero and words two through 7 are

equal to zero, all ranges associated with the counter are reset.

• Setting more than one range bit when the values for range start

and range stop are different causes a programming error.

Range Start Value, Range Stop Value

(Words 2 to 5)

When specifying a count range, the range start and range stop values
must be within the range of the minimum and maximum count values
programmed in the Minimum/Maximum Count Value programming
block.

The rate range must be programmed using the same data format as
the rate value. If the rate value is specified in floating-point format, the
rate range is also. If the rate value is specified in integer format, the
rate range is programmed in integer format.

Count values are always in two-word integer format, as described in
Integer Format on page 4-3.

If the range start and range stop numbers are equal, the range
specified by the range number is erased from memory.

Output State: Output State Byte

(Word 6, Bits 00 to 07)

This byte defines the state of the outputs while the programmed range
is active. It is combined with other output state bytes and output
masks to define the actual output states. See Determining Actual

TIP

Each of the 16 ranges has a unique bit. For example,
the ranges allocated for Counter 2 begin sequentially
after the ranges for Counter 1.