PmpMaintenance (FB)

FUNCTION_BLOCK PmpMaintenance EXTENDS AbbLConC3

The function block PmpMaintenance is used to record the maintenance schedule of the pump. The function block maintains an hourly counter to track the pump maintenance interval and generates timely reminders and alarms.

InOut:

Scope

Name

Type

Initial

Comment

Input

PumpRunning

BOOL

FALSE

2: The input PumpRunning receives the pump running status. The input comes from the output PumpOperating of the function blocks PmpInterfaceVFD or PmpInterfaceDol.
  • When input is TRUE, pump is operating.

  • When input is FALSE, pump is not operating.

MaintenanceInterval

INT

1

3: Input MaintenanceInterval is in hours after which reminders and alarms will be generated. Range-[0 to 32767]

MaintenanceReminder

STRING(30)

4: The Input MaintenanceReminder defines the Service reminder message for activity. Message has to be defined by user.

MaintenanceAlarm

STRING(30)

5: The Input MaintenanceAlarm defines the message for activity. Message has to be defined by user.

ResetCounter

BOOL

FALSE

6: The input ResetCounter resets the output MaintenanceCounter to the value in the input ResetCounterValue.
  • When input is TRUE, value in input ResetCounterValue overwrites value in output MaintenanceCounter.

  • When input is FALSE, no reset is initiated.

ResetCounterValue

REAL

0.0

7: If ResetCounter is true then ResetCounterValue will be written into MaintenanceCounter. Range-[0 to 32767]

Inout

MaintenanceCounter

REAL

8: The variable input or output MaintenanceCounter provides the count of hourly activity. The count is overwritten by value in the input ResetCounterValue, when input ResetCounter is TRUE

Output

ErrorID

ERROR_ID

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

MaintenanceRequired

BOOL

FALSE

4: The output MaintenanceRequired indicates that maintenance is required.
  • When output is TRUE, maintenance is required.

  • When output is FALSE, no maintenance require.

ReminderStatus

STRING(30)

5: The output ReminderStatus indicates the status of service reminder message defined in the input MaintenanceReminder.

AlarmStatus

STRING(30)

6: The output AlarmStatus indicates the status of maintenance alarm message defined in the input MaintenanceAlarm.

Methods:

A_StartAction

B_CyclicAction

C_CleaningAction

D_AbortAction

E_ResetAction

Structure: