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.

Note

Input Kp must not be equal to 0, Input Tn must be greater than 0, Input Cycle must be greater than 0

Note

Input Reset and Manual must be set to FALSE at the start of the program

Note

It is not recommended to call utility blocks inside other function blocks in user application, this can impact the data synchronization between PLCs. For example, if HaModTon function block is used inside user’s function block, it will lead to data sync mismatch.

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.05

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

Tn

REAL

10000

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

1

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