PmpInterfaceVFD (FB)

FUNCTION_BLOCK PmpInterfaceVFD EXTENDS AbbLConC3

The function block PmpInterfaceVFD enables communication within all connected pumps in the field run by VFD motors. The function block configures pump settings and gives the status of pump operation. This function block is effective only for pumps fed by VFD motors. The function block PmpInterfaceVFD checks the status of variable frequency drives (VFDs) and sends the ON or OFF command and speed signals back to the drives.

InOut:

Scope

Name

Type

Initial

Comment

Input

PumpID

INT

1

2: The input PumpID defines the pump identification number. Range-[1 to 8]

VFDLocalRemote

BOOL

FALSE

3: The input VFDLocalRemote receives the operating mode of the variable frequency drive.
  • When input is TRUE, drive is operating in Local mode.

  • When input is FALSE, drive is operating in Remote mode.

VFDReady

BOOL

FALSE

4: The input VFDReady receives the ready for operation status of the variable frequency drive.
  • When input is TRUE, drive is ready for operation.

  • When input is FALSE, drive is not ready for operation.

VFDOperating

BOOL

FALSE

5: The input VFDOperating receives the operating status of the variable frequency drive.
  • When input is TRUE, drive is operating.

  • When input is FALSE, drive is not operating.

VFDTripped

BOOL

FALSE

6: The input VFDTripped is used to attach the tripped status of the VFD.
  • When input is TRUE, drive has tripped due to a fault.

  • When input is FALSE, drive is healthy.

RuntimeReset

BOOL

FALSE

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

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

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.

MasterPump

INT

1

11: 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]

AutoManual

BOOL

FALSE

12: The input Automanual selects the operating mode of the pump.
  • When input is TRUE, pump operates in automatic mode.

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

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.

AutoSpeedRef

INT

0

14: The input AutoSpeedRef defines the speed reference of the pump run by variable frequency drive in automatic mode. The input comes from the output AutoSpeedRef of function blocks PmpFlowDistributor or PmpPressureDistributor or PmpLevelDistributor,depending on the process selected in the function bock PmpConfiguration. Range-Value>=0

ManualStart

BOOL

FALSE

15: The input ManualStart gives the start command to start the pump run by variable frequency drive in manual mode. This input is effective only when input AutoManual = FALSE.
  • When input is TRUE, pump starts in manual mode.

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

ManualSpeed

INT

0

16: The input ManualSpeed defines the speed reference of the pump run by variable frequency drive in manual mode. Manual speed works only when input AutoManual = FALSE. Range- Value>=0

AllowManualAntijam

BOOL

FALSE

17: 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

1

18: 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

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

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

AntijamSpeed

INT

0

21: The output AntijamSpeed of the function block PmpAntijam indicates the speed for antijam operation. This output is connected to the input AntijamSpeed of the function block PmpInterfaceVFD. Range-Value>=0

SoftfillStatus

INT

0

22: The input SoftfillStatus indicates the status of softfilling function. Range-[0 to 4]
  • 0 = Disable the softfill (Softfill operation is disabled)

  • 1 = Ready to start (Softfill operation is ready to start)

  • 2 = Softfill in progress (Softfill operation has started)

  • 3 = Softfill completed (Softfill operation is completed)

  • 4 = Softfill with fault (Softfill operation stopped due to a fault)

SoftfillStart

BOOL

FALSE

23: The output SoftfillStart of the used pump distributor starts the soft filling operation. This function is effective only when this output is connected to the input Start of the function block PmpSoftFilling.
  • When input is TRUE, softfill function starts.

  • When input is FALSE, softfill function stops if running.

SoftfillSpeed

INT

0

24: The output SoftfillSpeed of the function block PmpSoftFilling indicates the speed reference for soft filling function. The output must be connected to the input SoftfillSpeed of the interface function block PmpInterfaceVFD. Range-Value>=0

SleepStatus

INT

0

25: The output SleepStatus of the function block PmpSleep indicates the sleep status of the pump. Range-[0 to 3]
  • 0 = Inactive/Wakeup inactive

  • 1 = Boost activated

  • 2 = Sleep mode active

  • 3 = Wakeup function active

PmpStationParameters

PmpStationType

26: Pump Station structure which stores pumping station data.
  • All function blocks will receive some data, process it and write it back to the structure.

Inout

PmpActRuntime

REAL

27: Actual Runtime value for the pump.

Output

ErrorID

ERROR_ID

3: Error code.

StartCmd

BOOL

FALSE

4: The output StartCmd is the start command to start the pump fed by variable frequency drive (VFD).
  • When output is TRUE, pump starts running.

  • When output is FALSE, pump stops if already running.

SpeedRef

INT

0

5: The output SpeedRef of the interface function block PmpInterfaceVFD shows the speed reference of the variable frequency drive (VFD) in rpm. Range-[0 to 1500]

Note

The speed reference can be given to the drive only if it is connected to the correct parameter. This can be done using the PLC - VFD communication library, which is not in the scope of the pump library.

  • The input SpeedRef of the function block PmpDriveSimu comes from the output SpeedRef of the interface function block PmpInterfaceVFD.

Fault

BOOL

FALSE

6: The output Fault indicates a fault in the pump. The fault may be in the pump protection blocks.
  • When output is TRUE, pump fault occurred.

  • When output is FALSE, pump operation is healthy.

LocalRemoteStatus

BOOL

FALSE

7: The output LocalRemoteStatus indicates the operating mode of the pump system (DOL/VFD).
  • When output is TRUE, pump system is in local mode.

  • When output is FALSE, pump system is in remote mode.

AutoManualMode

BOOL

FALSE

8: The output AutoManualMode indicates the operation mode of the pump.
  • When output is TRUE, pump is in automatic mode.

  • When output is FALSE, pump is in manual mode.

Operating

BOOL

FALSE

9: The output Operating indicates that the device is operating.
  • When output is TRUE, device is operating.

  • When output is FALSE, device is not operating.

ReadyForAutomation

BOOL

FALSE

10: The output ReadyForAutomation of the pump interface function block indicates that the pump is ready for operation in automatic mode. This function is effective only when the function block is connected to the input ReadyForAutomation of the following function blocks: PmpSequenceGen, PmpFlowDistributor, PmpLevelDistributor and PmpPressureDistributor.
  • When output is TRUE, pump is ready for operation in automatic mode.

  • When output is FALSE, pump is not ready for operation in automatic mode.

StartAntijam

BOOL

FALSE

11: The output StartAntijam starts antijam operation in manual mode. This function is effective only when the function block is connected to input StartManual of function block PmpAntijam.
  • When output is TRUE, antijam operation starts in manual mode.

  • When output is FALSE, antijam operation stops if running.

DriveRFGDisabled

BOOL

FALSE

12: The output DriveRFGDisabled bypasses the ramp function generator (RFG) during Antijam operation. The output is effective only when connected to the control word (CW) of the drive.
  • When output is TRUE, drive bypasses RFG during antijam operation.

  • When output is FALSE, antijam operation runs without bypassing RFG.

Methods:

A_StartAction

B_CyclicAction

C_CleaningAction

D_AbortAction

E_ResetAction

Structure: