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
ActualREAL0
1:Actual value, process variable
SetPointREAL0
2:Desired value, set point
KpREAL0.05
3:Proportionality coefficient , unity gain of the P-part (P)
TnREAL10000
4:Reset time (I) in sec
TvREAL0
5:Rate time, derivative time (D) in sec
YManualREAL0
6:Y is set to this value as long as Manual = TRUE
YOffsetREAL0
7:Offset for manipulated variable
YMinREAL0
8:Minimum value for manipulated variable
YMaxREAL0
9:Maximum value for manipulated variable
ManualBOOLFALSE
10:TRUE: manual: Y is not influenced by controller, FALSE: controller determines Y
ResetBOOLFALSE
11:Reset: set Y output to YOffset and reset integral part
CycleREAL1
12:Time in second between two calls
Output
YREAL0
1:Manipulated variable, set value
LimitsActiveBOOLFALSE
2:True set value would exceed limits YMin, YMax
OverflowBOOLFALSE
3:Overflow in integral part