Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 247

Advertising
background image

EAF

Process Control Instructions

Chapter 16

16-36

Figure 16.10

3ĆDigit Averaging Ladder Diagram

15

041

005

0035

001

G

0032

G

EXECUTE AUX

FUNCTION NUMBER:

DATA ADDR:

RESULT ADDR:

06

0047

0040

FUNCTION

15

033

TON

0033

1.0

PR 003

AC 000

15

034

CTU

0034

PR 005

AC 000

15

033

DN

0034

15

FILE TO WORD MOVE

COUNTER ADDR:

POSITION:

FILE LENGTH:

0034

000

005

FILE A:

0201-0205

FILE A:

0036

15

033

0036

000

G

^

^

^

Changing Data

Always 1

Number

of Samples

0047

000

G

070

00

0041

000

G

070

00

0042

000

G

RES

ULT

Indicates that these values need to be reset to zero in between calculations.

THREE DIGIT AVERAGE:

1

1

1

1

1

Entry and Display of Input and Result Values
Here is a description of the ladder diagram. This programming example
averages five values and stops.

Rung 1

Contains a free-running timer (033) that allows a different
value to be summed every 3 seconds. The pre-set of this
timer can be as small as 10 milliseconds.

Rung 2

Increments counter 034 every 3 seconds to externally index

the File-to-Word Move in rung 3 that moves each value into

the average instruction. The preset of the counter must equal
the length or number of samples to average in word 0032 in
the EAF rung. The accumulated value of the counter must
start at zero.

Advertising