HaModPid (FB)
FUNCTION_BLOCK HaModPid
Function block HaModPid is a standard PID 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
ActualREAL0
1:Actual value, process variable
SetPointREAL0
2:Desired value, set point
KpREAL0
3:Proportionality const coefficient , unity gain of the P-part (P ).
TnREAL0
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
Output
YREAL0
1: Manipulated variable, set value
LimitsActiveBOOLFALSE
2:True set value would exceed limits YMin, YMax
OverflowBOOLFALSE
3:Overflow in integral part