|
08/12/2008, 04:10 AM | #1 |
Moved On
Join Date: Mar 2005
Location: Northwest Ohio
Posts: 1,642
|
AC3 code question
Hello,
I just got my AC3 the other day and have started to code. I have been looking through different threads on failsafe coding such as temp malfunctions, probe malfunctions etc. Any links to great failsafe coding would be great. I had a question about a certain coding that I have been reading. I see this in a lot of coding. If time >00:00 then ...(whatever) If time>00:00 then....(whatever) Is this a failsafe code in case the internal clock malfunctions? |
08/13/2008, 08:22 PM | #2 |
Registered Member
Join Date: Feb 2006
Location: Puerto Rico
Posts: 28
|
If you are referring to coding like:
"If Time > 00:00 Then ALM OFF" Then this is done to initialize a timer. In the example above you are making OFF the default state for the ALM timer. http://reefcentral.com/forums/showth...errerid=115514 Hope this help |
08/14/2008, 04:55 AM | #3 |
Moved On
Join Date: Mar 2005
Location: Northwest Ohio
Posts: 1,642
|
Why do you need to intialize a timer? I've tried reading about it but still don't understand.
|
08/14/2008, 12:16 PM | #4 |
Premium Member
Join Date: Jan 2007
Location: Redmond, WA
Posts: 8,151
|
A program should have a statement to turn a time on and a timer off, if you have one and not the other then you will ultimately have a timer on or off all the time. If you had, for example, statements to turn on your alarm timer when certain tank condition are met then once the timer turned on there would be nothing to tell the timer to turn off (and it would stay on until the AC was reset).
__________________
Click on my name to visit my homepage and access a collection of AquaController and Apex software, tips, trick and other Q&A including a link to the 'unofficial Apex new users guide' with loads of helpful information and don't forget to put a pin in my location map. Current Tank Info: 225G, BK 300 Deluxe, Deltec PF601, Precision Marine Kalkreactor, 2-LMIII+6 pumps, SpectraPure UHE, Apex, LunarSim, Tunze 6305s. Mixed reef, clam, fish, etc. |
|
|