PmpPid (FB)
FUNCTION_BLOCK PmpPid EXTENDS AbbLConC3
- The function block PmpPid is used for closed loop control of pressure or flow in the network. The function block receives the set value and actual value from the process and does the closed loop control. The function block is used to control pressure or flow when the input ProcessMode of function block PmpConfiguration is selected as either pressure control (1) or flow control (2) in the multi pumping and traditional pumping station.
Note
This function is not used on DOL pumping stations.
Overview of PmpPid is explained in the above image.
- InOut:
Scope
Name
Type
Initial
Comment
Input
SetValueREAL1.0
2: Set value of the process variable in terms of real values, e.g. bar for pressure, m3 per hour for flow. Range- Value>0.0
ActualValueREAL0.0
3: Actual value of the process variable in terms real values, the unit must be same as SetValue. Range-Value>=0.0
KpREAL0.1
4: Proportional gain of the Pid. Range-Value>0.0
TintegralREAL1.0
5: Integral time of the Pid in terms of seconds. Range- Value>0.0
TderivativeREAL0.0
6: Derivative time of the Pid in terms of seconds. Range- Value>=0.0
ResetBOOLFALSE
7: Resets the I output of the Pid, works as AntiWindUp.
YOffsetREAL0.0
8: Adds the Offset to the Pid output. Range-[0.0 to 200.0]
PidMaxLimitREAL100.0
9: Limit for the maximum Pid Output. Range-[0.0 to 200.0]
PidMinLimitREAL0.0
10: Limit for the minimum Pid Output. Range-[0.0 to 200.0]
MasterPumpINT1
11: The master pump in sequence - The output of the PmpSequenceGen control function. Range-[1 to 4]
SleepBoostRefREAL0.0
12: Input SleepBoostRef need to be connected to the output of the PmpSleep FB. Range-Value>=0.0
SleepStatusINT0
- 13: The Input SleepStatus value: Range-[0 to 3]
0- iNumberOfPumpActive.
1- Boost Activated.
2- Sleep mode active.
3- Wakeup function active.
ProtectionShutdownBOOLFALSE
14: Digital signal from the protection function block to shutdown the pump station.
AntijamStatusARRAY [1..4] OF INT
[4(0)]
- 15: Status of the Antijam proces. This input must be connected to the output of PmpAntijam FB. Range-[0 to 2]
0- Not started.
1- Busy.
2- Done.
SoftfillStatusINT0
- 16: Output of the SoftfillStatus shows: Range-[0 to 4]
0- Disable the soft fill.
1- Ready to Start.
2- SoftFill in progress.
3- SoftFill completed.
4- SoftFill with Fault.
TradMasterTripBOOLFALSE
17: Input to define the trip status of master pump in the Traditional pump combination. To attach this input with the TradMasterTrip output of PmpSequenceGen FB.
PmpStationParameters18: Pump Station structure which stores pumping station data.
Output
ErrorID3: Error code in case of error in the function block execution.
PidOutREAL0.0
4: Pid output after the manipulation in terms of percentage. Range-Value>=0.0
PidDeviationREAL0.0
5: Deviation of Set value from actual value. It is also known as Pid error. Range-Value>=0.0
MaxLimitReachedBOOLFALSE
6: Indicates if the Pid output touches the PidMaximumLimit.
MinLimitReachedBOOLFALSE
7: Indicates if the Pid output touches the PidMinimumLimit.
Methods:
A_StartAction
B_CyclicAction
C_CleaningAction
D_AbortAction
E_ResetAction
Structure: