PmpInterfaceDol (FB)

FUNCTION_BLOCK PmpInterfaceDol EXTENDS AbbLConC3

The function block PmpInterfaceDol is used to communicate with all pumps in the field that are run by direct online (DOL) motor. The function block configures pump settings and gives the status of pump operation. This function block is effective only for pumps fed by DOL motors.

InOut:

Scope

Name

Type

Initial

Comment

Input

PumpID

INT

1

2: To enter the ID of the pump. PumpID Defines the pump identification number. Range- [1 to 8]

DOLLocalRemote

BOOL

FALSE

3: The input DOLLocalRemote connects the local or remote mode status of the DOL system. The function block uses this information to decide whether the pump is ready for automation.
  • When input is TRUE, pump operates in Local mode.

  • When input is FALSE, pump operates in Remote mode.

DOLOperating

BOOL

FALSE

4: The input DOLOperating connects the operating status of the DOL system. The function block uses this information to decide whether the pump is ready for automation.
  • When input is TRUE, pump is operating.

  • When input is FALSE, pump operates in Remote mode.

DOLTripped

BOOL

FALSE

5: The input DOLTripped connects the faulty/healthy status of the DOL system. The function block uses this information to decide whether the pump is ready for automation.
  • When input is TRUE, pump has tripped due to fault.

  • When input is FALSE, pump operation is healthy.

RuntimeReset

BOOL

FALSE

6: The input RuntimeReset resets the actual run time in the output ActualRuntime with value in the input OffsetRuntime for the pump.
  • When input is TRUE, output ActualRuntime is reset to value in input OffsetRuntime.

  • When input is FALSE, pump continues operation in current run time.

OffsetRuntime

REAL

1.0

7: The input OffsetRuntime defines offset run time of the pump that overwrites actual run time in the output ActualRuntime when input RuntimeReset = TRUE. Range>0.0

MasterPump

INT

1

8: ID of master pump in the sequence. This input must come from MasterPump output of the PmpSequenceGen function block. Range-[1 to 8]

ProtectionShutdown

BOOL

FALSE

9: The input ProtectionShutdown receives a digital signal to shut down the pump station for protection. The input comes from the output ProtectionShutdown of the protection function blocks PmpProtectionAnalog and PmpProtectionBinary.
  • When input is TRUE, pump station is shutdown.

  • When input is FALSE, pump station operation continues.

StartBlocker

BOOL

FALSE

10: The input StartBlocker receives a digital signal to prevent the starting of pump station for protection. The input comes from the output StartBlocker of the protection function blocks PmpProtectionAnalog and PmpProtectionBinary.

Note

The input StartBlocker will not stop the already running pump.

  • When input is TRUE, pump start is not allowed.

  • When input is FALSE, pump start is allowed.

AutoManual

BOOL

FALSE

11: To select the auto or manual operations.
  • When Input is TRUE= AutoMode

  • When Input is FALSE= ManualMode

PulseCommands

BOOL

FALSE

12: The input PulseCommands selects the Start/Stop command type of the pump run by DOL motor.
  • If Input is TRUE, pump starts with the pulse input of start command.

  • If Input is FALSE, pump starts with the continuous start command.

AutoStartCmd

BOOL

FALSE

13: The input AutoStartCmd receives the start command of the pump to start in automatic mode. The input comes from the output AutoStartCmd of function block PmpFlowDistributor or PmpPressureDistributor. Automatic start works only when input AutoManual = TRUE.
  • When input is TRUE, pump starts in automatic mode.

  • When input is FALSE, pump stops if running in automatic mode.

ManualStart

BOOL

FALSE

14: The input ManualStart receives the start command to start the pump in manual mode. This manual start function applies only for a pump fed by DOL motor. The function works only when input AutoManual = FALSE. The function also depends on the input PulseCommands:
  • If Input is TRUE = Motor start/stop by pulsed start / stop command

  • If Input is FALSE = continued command.

ManualStop

BOOL

FALSE

15: This input ManualStop stops the pump under following conditions:

Note

This manual stop function applies only for a pump fed by DOL motor.

  • Input PulseCommands = TRUE i.e. pulse mode is selected.

  • Inputs AutoManual = FALSE and ManualStop = TRUE.

AllowManualAntijam

BOOL

FALSE

16: The input AllowManualAntijam allows antijam operation of the pump in manual mode. The input is effective only when the input AutoManual = FALSE and AntijamMode = Manual mode.
  • When input is TRUE, antijam operation is allowed.

  • When input is FALSE, antijam operation is not allowed.

AntijamMode

INT

0

17: The input AntijamMode indicates the selected antijam mode. Range-[0 to 3]
  • 0 = Disable antijam

  • 1 = Master enabled

  • 2 = At start

  • 3 = Manual mode The input AntijamMode receives the antijam mode. The input comes from the output AntijamMode of the function block PmpAntijam

AntijamStatus

INT

0

18: The input AntijamStatus receives the antijam operation status of the pump. The input comes from the output AntijamStatus of the function block PmpAntijam. Range-[0 to 2]
  • 0 = Not started (Antijam operation has not started)

  • 1 = Busy (Antijam operation has started)

  • 2 = Done (Antijam operation is completed)

AntijamStart

BOOL

FALSE

19: 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.

PmpStationParameters

PmpStationType

20: Pump Station structure which stores pumping station data.

Note

All function blocks will receive some data, process it and write it back to the structure.

Inout

PmpActRuntime

REAL

21: Actual Runtime of pumps in hours.

Output

ErrorID

ERROR_ID

3: Error code in case of error in the function block execution.

StartCmd

BOOL

FALSE

4: Start command for the DOL motor.
  1. Output will remain TRUE or FALSE when PulseCommands= FALSE.

  2. After ManualStart rising pulse,it Will generate a single pulse to start the motor when PulseCommands=TRUE.

  3. And It will not be possible to monitor visually,try putting in trace to monitor.

StopCmd

BOOL

FALSE

5: Stop command to the DOL Motor.
  1. Output will remain TRUE or FALSE when PulseCommands= FALSE.

  2. After ManualStop rising pulse, it Will generate a single pulse to stop the motor when PulseCommand=TRUE.

  3. And It will not be possible to monitor visually,try putting in trace to monitor.

Fault

BOOL

FALSE

6: TRUE value tells that - a) Pump has Fault due to protection block or b) DOL Fault.

LocalRemoteStatus

BOOL

FALSE

7: TRUE value indicates DOL in local mode. FALSE indicates DOL in remote mode.

AutoManualMode

BOOL

FALSE

8: TRUE value indicates pump in Auto mode. FALSE indicates pump in manual mode.

Operating

BOOL

FALSE

9: TRUE value indicates DOL is running.

ReadyForAutomation

BOOL

FALSE

10: TRUE value Indicates: Pump available for automatic operation. It must be connected to ReadyForAutomation input of PmpSequenceGen and distributors FB.

StartAntijam

BOOL

FALSE

11: To start Antijam in manual mode. It must be connected to ManualStart input of PmpAntijam FB.

Methods:

A_StartAction

B_CyclicAction

C_CleaningAction

D_AbortAction

E_ResetAction

Structure: