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
PumpRunningBOOLFALSE
- 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.
MaintenanceIntervalINT1
3: Input MaintenanceInterval is in hours after which reminders and alarms will be generated. Range-[0 to 32767]
MaintenanceReminderSTRING(30)4: The Input MaintenanceReminder defines the Service reminder message for activity. Message has to be defined by user.
MaintenanceAlarmSTRING(30)5: The Input MaintenanceAlarm defines the message for activity. Message has to be defined by user.
ResetCounterBOOLFALSE
- 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.
ResetCounterValueREAL0.0
7: If ResetCounter is true then ResetCounterValue will be written into MaintenanceCounter. Range-[0 to 32767]
Inout
MaintenanceCounterREAL8: 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
ErrorID3: Error code in case of error in the function block execution.
MaintenanceRequiredBOOLFALSE
- 4: The output MaintenanceRequired indicates that maintenance is required.
When output is TRUE, maintenance is required.
When output is FALSE, no maintenance require.
ReminderStatusSTRING(30)5: The output ReminderStatus indicates the status of service reminder message defined in the input MaintenanceReminder.
AlarmStatusSTRING(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: