Page 1 of 1

I/O expansion question

Posted: Thu Nov 22, 2012 5:58 pm
by rossbryant1956
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.

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;
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:

Image

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.

Re: I/O expansion question

Posted: Thu Nov 22, 2012 6:36 pm
by rimai
Reading back on our conversation, it seems that you need to reboot the controller to clear the flag:
http://forum.reefangel.com/viewtopic.php?p=12501#p12501
But the code above posted tells me otherwise, so I'm not so sure if you did implement the last suggestion or not.
The code you posted tells me that 1 means everything is ok.