I/O expansion question
Posted: Thu Nov 22, 2012 5:58 pm
Some time ago we wrote the following code and its been working great. I use this code to monitor a float valve in my display tank to watch for my overflow clogging up.
Tonite the buzzer went crazy but there was no overflow problem. When I looked at the float valve I noticed it needed some gunk cleaned out it; which I did. All seemed back to normal after testing.
Finally the question...when I went back and looked at my portal display I noticed the following:
My problem is that I have forgotten if the number 1 in the display overflow field is the normal "all is well" configuration or still an indication of some kind of problem. Please advise and thanks.
Code: Select all
//turn off port 8 - main pump when switch is tripped and sound buzzer
ReefAngel.Relay.Set(Port8,ReefAngel.IO.GetChannel(0));
ReefAngel.PWM.SetDaylight(100-(ReefAngel.IO.GetChannel(0)*100));
//tell the portal we have a overflow problem
ReefAngel.CustomVar[0]=ReefAngel.IO.GetChannel(0);
ReefAngel.CustomVar[7]=1;
Finally the question...when I went back and looked at my portal display I noticed the following:
My problem is that I have forgotten if the number 1 in the display overflow field is the normal "all is well" configuration or still an indication of some kind of problem. Please advise and thanks.