HaModPidFixCycle (FB)

FUNCTION_BLOCK HaModPidFixCycle

Function block HaModPidFixCycle is a standard PID in fixcycle with automatic data synchronization in a high availability system Only internal variables and outputs are synchronized. Input variables and parameters are not synchronized. If needed, use HaModDataSync to achieve the same.

InOut:

Scope

Name

Type

Initial

Comment

Input

Actual

REAL

0

1:Actual value, process variable

SetPoint

REAL

0

2:Desired value, set point

Kp

REAL

0

3:Proportionality coefficient , unity gain of the P-part (P)

Tn

REAL

0

4:Reset time (I) in sec

Tv

REAL

0

5:Rate time, derivative time (D) in sec

YManual

REAL

0

6:Y is set to this value as long as Manual = TRUE

YOffset

REAL

0

7:Offset for manipulated variable

YMin

REAL

0

8:Minimum value for manipulated variable

YMax

REAL

0

9:Maximum value for manipulated variable

Manual

BOOL

FALSE

10:TRUE: manual: Y is not influenced by controller, FALSE: controller determines Y

Reset

BOOL

FALSE

11:Reset: set Y output to YOffset and reset integral part

Cycle

REAL

0

12:Time in second between two calls

Output

Y

REAL

0

1:Manipulated variable, set value

LimitsActive

BOOL

FALSE

2:True set value would exceed limits YMin, YMax

Overflow

BOOL

FALSE

3:Overflow in integral part