The function block Light is the control for the light of a plant tank. By using the override function, you can set it to manually on or off. If it is in auto, the input decides if the light should be on or off. From the function block, we get the status of the light. So, if it is manually overridden on or off, or if it is auto off or on.

Override ventiler

Override ValueDescription
0Auto
1Manual On
2Manual Off

Valve 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