PmpSleep (FB)
FUNCTION_BLOCK PmpSleep EXTENDS AbbLConC3
- The function block PmpSleep stops all pumps in the pressure control process during low demand. The function works only for pressure control (when function block PmpConfiguration has the input ProcessMode = 1 (Pressure control) with multi pump station or traditional pump station.
- Key Features
The function block is used to conserve energy when the demand is very low and the pump is running at very less rpm.
- For SleepMode = 1
Absolute difference between set and actual pressure must be less than sleep level. Sleep level is defined as percentage of set point e.g. sleep level 10 means 10 % of set value.
Master pump rpm must be less than SleepRpm.
If above both conditions are true for more than SleepDelay time then only pump gets ready to go to sleep.
Process increases set point by SleepBoostStep in terms of percentage for the time duration SleepBoostTime. This allows actual pressure to increase and in turn increases sleep duration.
Once SleepBoostTime is over, master pump goes in sleep and its ON command is removed.
When the actual pressure goes below WakeupLevel then the wake up function starts. It waits for WakeupDelay and then the ON command is issued to the master drive and the pressure distributor process takes over.
This figure shows the sleep and wake up sequence based on the change in the actual pressure with time.
Note
SleepMode = 2 has not been implemented yet in this version.
- InOut:
Scope
Name
Type
Initial
Comment
Input
SleepModeINT0
- 2: The input SleepMode selects the sleep mode. Range-[1 to 2]
0 = Disabled
1 = Internal
2 = External
PumpSetpointREAL1.0
3: The input PumpSetpoint defines the pressure setpoint. The value is same as the input SetValue of the function block PmpPid. Range-Value>0.0
ActualValueREAL1.0
4: This Input represents the Actual pressure value. Range- Value>0.0
SleepLevelREAL5.0
5: The input Sleeplevel defines the sleep activation level, which is a percentage of the input PumpSetpoint. Range-[1.0 to 100.0]
PidOutREAL0.0
6: The input PidOut of the function block PmpSleep indicates the Pid output in percentage. The value is the same as the output PidOut of the function blocks PmpPid. Range- Value>=0.0
SleepRpmREAL100.0
7: Pump rpm below which pump should go into the sleep mode. Range-Value>0.0
SleepDelayUINT5000
8: The input SleepDelay defines the delay time in seconds at which the sleep function must be activated. Range-Value>0
SleepBoostTimeUINT5000
9: Time in milliseconds for which sleep boost is to be operated. Range-Value>0
SleepBoostStepREAL5.0
10: The input SleepBoostStep defines the step limit in percentage at which the input PumpSetpoint must increase for the time duration defined in the input SleepBoostTime. Range- Value>=0.0
SleepExtBOOLFALSE
- 11: The input SleepExt enables sleep function externally, when input SleepMode = 2 (External).
When input is TRUE, sleep function is enabled externally.
When input is FALSE, sleep function is disabled or continues in the current mode.
WakeupModeINT1
- 12: Wakeup mode: Range-[1 to 2]
1= Internal
2= External
WakeupLevelREAL7.0
13: The input WakeupLevel defines the wake up activation level in percentage of the setpoint defined in the input PumpSetpoint. Range-Value>0.0
WakeupDelayUINT5000
14: Time delay in milliseconds for the wake up function to activate. Range- Value>0
WakeUpExternalBOOLFALSE
15: Digital signal or input to wake up the system when the WakeupMode = 2.
MasterPumpINT1
16: The input MasterPump receives the identification number of the master pump in the sequence. The input comes from the output MasterPump of the function block PmpSequenceGen. Range-[1 to 8]
PmpStationParameters17: Pump Station structure which stores pumping station data. All function blocks will receive some data, process it and write it back to the structure.
Output
ErrorID3: Error code in case of error in the function block execution.
SleepStatusINT0
- 4: The output SleepStatus of the function block PmpSleep indicates the sleep status of the pump. Range-[0 to 3]
0 = Wakeup completed.
1 = Boost Activated.
2 = Sleep mode active.
3 = Wakeup function active.
SleepBoostRefREAL0.0
5: The output SleepBoostRef of the function block PmpSleep indicates the sleep boost reference. This output is connected as input into PmpPid function block. Range- Value>=0.0
Methods:
A_StartAction
B_CyclicAction
C_CleaningAction
D_AbortAction
E_ResetAction
Structure: