CtrlIntegrator (FB)

FUNCTION_BLOCK CtrlIntegrator EXTENDS AbbLConC3

This function block processes and outputs the input signal as an integrator.

../../../../../../_images/CtrlIntegrator.png
InOut:

Scope

Name

Type

Initial

Comment

Input

Mode

BYTE

1

2: Process mode:
  • 0 = Out(n) =0 = Reset Integrator

  • 1 = Out(n) =Gain/ Ti*s = Start Integrating

  • 2 = Out(n) =Out(n-1) = Hold Previous Value

In

REAL

0

3: Input of the signal to be processed by CtrlIntegrator function block

Kp

REAL

1

4: Propotional gain of the integrator function block

Ti

REAL

1

5: Integral time (Unit: Second). Range: 10000.0>=Ti>=0.1

OutMax

REAL

100

6: Maximum limit of output manipulated variable

OutMin

REAL

-100

7: Minimum limit of output manipulated variable

Output

ErrorID

ERROR_ID

3: Error identifier if an invalid value was applied to an input

IntegrationDone

BOOL

4: processing state of the FB, IntegrationDone is set to TRUE after integrating calculation is finished

Out

REAL

0

5: Input signal In is processed by function block, the integral output signal is sent to Out

Alarm

BYTE

0

6: Alarm of the Manipulated output Variable Out exceeded OutMax/OutMin:
  • 0 = no alarm,

  • 1 = high limit exceeded,

  • 2 = low limit exceeded