Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 89

Advertising
background image

Function Block Library

4–27

1336 FORCE — 5.9 August 1995

FUNCTION

Denominator = 1/2

×

t

×

1/(divisor gain) = 25600

where:

t = a task interval of .020 seconds = 1/50 samples/second.

divisor gain = 256.

1. If Set = true, accumulator = Preset

×

denominator.

2. If Set = false,

accumulator = [Gain

×

(Input

i–1

+ Input)] +

previous accumulated value.

3. If accumulator

÷

denominator > Max,

Output = Max, Hi Lim = true, Lo Lim = false.

4. If accumulator

÷

denominator < Min,

Output = Min, Hi Lim = false, Lo Lim = true.

5. If accumulator

÷

denominator < Max and > Min,

Output = accumulator

÷

denominator, Hi Lim = false,

Lo Lim = false.

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

Input

Signed Integer

Yes

0

±

32767

Set

Logic Input

Yes

False

True/False

Preset

Signed Integer

Yes

0

±

32767

Gain

Signed Integer

No

256

±

16383

Min

Signed Integer

No

0

0 to – 32767

Max

Signed Integer

No

0

0 to + 32767

Lo Lim

Logic Output

No

True/False

Hi Lim

Logic Output

No

True/False

Output

Signed Integer

No

±

32767

Example 1 — Gain = 256 = 1

×

— Horizontal Scale = 500 mS/Division

Y
INTEGRATOR Output

+ 32767

"

– 32767

"

INTEGRATOR Input
B

In Example 1, the INTEGRATOR Output accumulates at a rate of 32767 units-per-second,
an amount equal to it’s constant INTEGRATOR Input level. It takes (2) seconds to traverse
the entire range.

INTEGRATOR

(continued)

Advertising