Current count (ctr[n].currentcount), Stored count (ctr[n].storedcount), Current count (ctr[ n ].currentcount) – Rockwell Automation 1769-HSC Compact High Speed Counter Module User Manual

Page 104: Stored count (ctr[ n ].storedcount)

Advertising
background image

104

Rockwell Automation Publication 1769-UM006E-EN-P - July 2013

Chapter 4

Module Configuration, Output, and Input Data

Current Count (Ctr[n].CurrentCount)

This is the 32-bit count value from the counter.

Stored Count (Ctr[n].StoredCount)

This is the last stored 32-bit value from counter (

n). The count value is stored

depending on the Ctr

nConfig.StorageMode and Zn inputs.

When a storage event occurs, the Ctr[

n].RisingEdgeZ bit is set, indicating that

the value is new. If more than one Z

n occurs before the Ctr[n].RisingEdgeZ bit is

reset (using the Ctr

nResetRisingEdgeZ bit), the Ctr[n].StoredCount word will

contain only the last Ctr[

n].StoredCount value. There is no indication that the

data has been overwritten.

Input Array Words

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

4

Counter 0 Current Count

Ctr[0].CurrentCount

5

14

Counter 1 Current Count

Ctr[1].CurrentCount

15

24

Counter 2 Current Count

Ctr[2].CurrentCount

25

30

Counter 3 Current Count

Ctr[3].CurrentCount

31

Input Array Words

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

6

Counter 0 Stored Count

Ctr[0].StoredCount

7

16

Counter 1 Stored Count

Ctr[1].StoredCount

17

Advertising