Reef Central Online Community

Go Back   Reef Central Online Community > Sponsor Forums > Neptune Systems
Blogs FAQ Calendar

Notices

User Tag List

Reply
Thread Tools
Unread 08/12/2008, 04:10 AM   #1
The Saltman
Moved On
 
The Saltman's Avatar
 
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?


The Saltman is offline   Reply With Quote
Unread 08/13/2008, 08:22 PM   #2
mohawk
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


mohawk is offline   Reply With Quote
Unread 08/14/2008, 04:55 AM   #3
The Saltman
Moved On
 
The Saltman's Avatar
 
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.


The Saltman is offline   Reply With Quote
Unread 08/14/2008, 12:16 PM   #4
kenargo
Premium Member
 
kenargo's Avatar
 
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.
kenargo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 01:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2024 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2022
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.