Counter configuration block, Counter configuration block -10 – Rockwell Automation 1746-HSCE2 Multi-Channel High Speed Counter Module User Manual

Page 60

Advertising
background image

Publication 1746-UM002B-EN-P - August 2004

4-10 Configuration and Programming

Mode 3 Example

In the Module Setup block below, four ranges are assigned to Counter
1. Eight ranges are assigned to Counter 2. Two ranges are assigned to
Counter 3. The last two ranges are assigned to Counter 4, but the
counter is not specified.

Counter Configuration
Block

Figure 4.5 shows the format of the Counter Configuration Block. This
block programs the following parameters of the selected counters:

• Counter Type
• Input Configuration
• Gate/Preset Mode

All four counters can be programmed with one block. When this
programming block is sent to the module, the selected counter(s)
cannot be running or a programming error results. Sending this
programming block to the module erases all programmed output
ranges of the selected counter(s).

IMPORTANT

The number of ranges for the last configured counter
used must equal zero, otherwise the module fills in
the value and errors, even if the value is correct.

Figure 4.4 Module Setup in Mode 3 (Showing Hex Format)

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Hex

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

Word 0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

1

1

Word 1

0

1

0

3

0

0

0

0

0

0

0

0

0

0

0

0

0

1

0

0

Word 2

0

0

0

4

0

0

0

0

0

0

0

0

0

0

0

0

1

0

0

0

Word 3

0

0

0

8

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

0

Word 4

0

0

0

2

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Word 5

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Word 6

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Word 7

0

0

0

0

Advertising