You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

After testing the Water Pump it was found uncessery to create a PID controller, since the pump is not that powerful. This means that the pump function block only needs to be a simple on or off function block. Additionally to give CDP the option to override the pump there is a override input. The override input takes in three values; 0, 1 and 2. The following table describes the function for these values.


Override ValueDescription
0Automatic
1Manual Off
2Manual On

  

Then there is two outputs, one boolean to start or stop the motor and one to tell CPD the state of the motor, the states are shown in the table below


State ValueDescription
0Automatic Off
1Automatic On
2Manual Off
3Manual On


Coded Solution

Variable Declerations:

CODE:

  • No labels