The function block PUMP is the control for a pump. By using the override function, you can set it to manually start or stop the pump. If it is in auto, the input decides if it is open or closed. From the function block, we get the status of the pump. So, if it is manually overridden open or closed, or if it is auto on or off.

Override pump

Override ValueDescription
0Auto
1Manual On
2Manual Off

Pump states

Override Alarm ValueDescription
0Auto Off
1Auto On
2Manual On
3Manual Off


With everything explained the Inputs and Outputs are the following,

INPUT

  • IN → BOOL
  • CDPInput → INT

OUTPUT

  • OUT → BOOL
  • CDPout→ INT


CODED SOLUTION

Variable Decleration:

CODE:






  • No labels