PmpAntiJam (FB)
FUNCTION_BLOCK PmpAntiJam EXTENDS AbbLConC3
- Performs the pump antijam functionality by running the pump at high speeds without any ramp up and ramp down time. Antijam functionality is mainly used for the pump cleaning operation.
- InOut:
Scope
Name
Type
Initial
Comment
Input
PumpIDINT1
2: To enter the ID of the pump: this is to indicate the pump which is to be cleaned. Range-[Min-1 Max-8]
StartAutoBOOLFALSE
- 3: The input StartAuto receives a digital signal to start antijam operation in automatic mode. The input comes from the output StartAntijam of function blocks PmpLevelDistributor, PmpFlowDistributor and PmpPressureDistributor. The input is not effective if the value in InputMode = 3 (Manual mode).
Note
The input StartAuto of PumpID = 1 must be connected to the output StartAntijam[1] of distributors. This pattern must be followed for all pump IDs.
When input is TRUE, antijam operation starts in automatic mode.
When input is FALSE, antijam operation stops if running.
StartManualBOOLFALSE
- 4: The input StartManual receives a digital signal to start antijam operation in manual mode. The input comes from the output StartAntijam of function blocks PmpInterfaceVFD and PmpInterfaceDOL. The input is effective only when value in input Mode = 3 (Manual mode).
When input is TRUE, antijam operation starts in manual mode.
When input is FALSE, antijam operation stops if running.
ModeINT0
- 5: Configures the antijam mode. Range-[Min-0 Max-3]
0=Disable Antijam
1=Master enabled
2=At start
3=Manual mode
FwdRefSpeedINT100
6: The input FwdRefSpeed is speed reference in rpm to clean the pump in the forward direction. Range-Value>0
BwdRefSpeedINT100
- 7: The input BwdRefSpeed is speed reference in rpm to clean the pump in the backward direction. Range-Value>0
This input is effective only if the input AllowReverse = TRUE.
OffTimeUINT10000
8: Time duration in milliseconds for which antijam process will pause once either forward or backward movement is completed. Range- Value>0
FwdStepTimeUINT10000
9: Time duration in milliseconds for which the pump moves in the forward direction in anti-jam. Range- Value>0
BwdStepTimeUINT10000
10: Time duration in milliseconds for which the pump moves in the backward direction in anti-jam. Range- Value>0
AntijamStepsINT1
11: Number of steps i.e., forward and backward movements to be performed in an antijam process. Range- Value>0
AllowRevBOOLFALSE
- 12: True value means the pump with VFD can also move in the reverse direction to perform the anti jam. Not allowed for DOL pumps.
When input is TRUE, pump with VFD performs antijam operation in the reverse direction.
When input is FALSE, pump with VFD stops antijam operation in the reverse direction.
ReadyForAutomationBOOLFALSE
- 13: The input comes from the output ReadyForAutomation of the function block PmpInterfaceVFD or PmpInterfaceDOL.
When input is TRUE, pump is ready for operation in automatic mode.
When input is FALSE, pump is not ready for operation in automatic mode.
DistributorRunningBOOLFALSE
- 14: The input DistributorRunning indicates the running status of the distributor. This input is connected to the output DistributorRunning of any of the the distributor function blocks PmpLevelDistributor, PmpFlowDistributor or PmpPressureDistributor.
When output is TRUE, distributor is running.
When output is FALSE, distributor is not running.
PmpStationParameters- 15: 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.
AntijamStatusINT0
- 4: The AntijamStatus shows the status of the antijam process. Range-[Min-0 Max-2]
0 = Not started (Antijam process has not started)
1 = Busy (Antijam process is running)
2 = Done (Antijam Process completed)
AntijamModeINT0
- 5: Seleceted mode of the antijam process. This outputs needs to be connected to the AntijamMode input of the distributor. Range-[Min-0 Max-3]
0 = Disable antijam
1 = Master enabled
2 = At start
3 = Manual mode
AntijamStartBOOLFALSE
- 6: The output AntijamStart of the function block PmpAntijam starts the antijam operation. This output is connected with the input AntijamStart of the function blocks PmpInterfaceVFD and PmpInterfaceDol.
When output is TRUE, antijam operation starts.
When output is FALSE, antijam operation stops if running.
AntijamSpeedINT0
7: Speed of the antijam process. This output needs to be connected to the AntijamSpeed input of the interface FB. Range-[0 to 1500]
Methods:
A_StartAction
B_CyclicAction
C_CleaningAction
D_AbortAction
E_ResetAction
Structure: