Reef Central Online Community

Go Back   Reef Central Online Community > General Interest Forums > Reef Discussion
Blogs FAQ Calendar

Notices

User Tag List

Reply
Thread Tools
Unread 12/27/2014, 08:01 AM   #26
Hooligan
Registered Member
 
Join Date: Apr 2003
Location: Avon Lake, Ohio
Posts: 62
Quote:
Originally Posted by Jyetman View Post
Just verified two defer statements one after the other doubles the time.
Interesting! When you have a chance would you mind posting the program and describing how you're using it? Thanks.


__________________
Mark
Hooligan is offline   Reply With Quote
Unread 12/27/2014, 06:50 PM   #27
Jyetman
Registered Member
 
Jyetman's Avatar
 
Join Date: Nov 2012
Location: Phoenix, AZ
Posts: 1,712
Quote:
Originally Posted by Hooligan View Post
Interesting! When you have a chance would you mind posting the program and describing how you're using it? Thanks.
The program is set as a light bulb reminder on the aqua display triggered by my first kalk mixing bucket when empty. Second bucket refills the first bucket. Gives me 33 hours to refill the second bucket then resets automatically for me. I tried just having the if statement which works outlet stays on indefenitly but the Kalk-Bucket outlet that runs the bucket pump prematurely shuts off because of the if K-Reminder on then OFF statement. Really like to have that statement as a safeguard to keep Kalk-Bucket from running again incase I don't refill the bucket in time. Not sure how to get around that.


[Kalk-Bucket]
Fallback OFF
Set OFF
If KALK-E CLOSED Then ON
If KALK-E OPEN Then OFF
If Outlet K-Reminder = ON Then OFF
Defer 000:10 Then ON
Defer 002:15 Then OFF

[K-Reminder]
If Outlet KALK-EMTY = ON Then ON
Defer 999:55 Then OFF
Defer 999:55 Then OFF

[KALK-EMTY]
Set OFF
If KALK-E CLOSED Then ON



Last edited by Jyetman; 12/27/2014 at 07:04 PM.
Jyetman is offline   Reply With Quote
Unread 12/28/2014, 11:12 AM   #28
Hooligan
Registered Member
 
Join Date: Apr 2003
Location: Avon Lake, Ohio
Posts: 62
Quote:
Originally Posted by Jyetman View Post
The program is set as a light bulb reminder on the aqua display triggered by my first kalk mixing bucket when empty. Second bucket refills the first bucket. Gives me 33 hours to refill the second bucket then resets automatically for me. I tried just having the if statement which works outlet stays on indefenitly but the Kalk-Bucket outlet that runs the bucket pump prematurely shuts off because of the if K-Reminder on then OFF statement. Really like to have that statement as a safeguard to keep Kalk-Bucket from running again incase I don't refill the bucket in time. Not sure how to get around that.


[Kalk-Bucket]
Fallback OFF
Set OFF
If KALK-E CLOSED Then ON
If KALK-E OPEN Then OFF
If Outlet K-Reminder = ON Then OFF
Defer 000:10 Then ON
Defer 002:15 Then OFF

[K-Reminder]
If Outlet KALK-EMTY = ON Then ON
Defer 999:55 Then OFF
Defer 999:55 Then OFF

[KALK-EMTY]
Set OFF
If KALK-E CLOSED Then ON
As your program currently reads, once on, K-Reminder will NEVER turn off. The Defer statements in K-Reminder are doing nothing at all.

Get rid of the KALK-EMTY outlet and try this:

[K-Reset]
(no statements at all and manually set to OFF via the dashboard)

[Kalk-Bucket]
Fallback OFF
Set OFF
If KALK-E CLOSED Then ON
If Outlet K-Reminder = ON Then OFF
Defer 000:10 Then ON
Defer 002:15 Then OFF

[K-Reminder]
If Outlet Kalk-Bucket = ON Then ON
If Outlet K-Reset = ON Then OFF

What I believe this will accomplish (you'll need to test!) is when your KALK-E switch has been closed for 10 seconds, your Kalk-Bucket outlet will turn on and run for 2 minutes and 15 seconds, which I assume is the empirically-determined time it takes to refill the main bucket from the spare without running the pump dry for too long. (It might be better to have a 2nd float switch to tell when the bucket was full to turn off this pump, but I digress...)

Note that when Kalk-Bucket turns on, this will cause K-Reminder to turn on. K-Reminder being on does several things:

1) It reminds you to refill the spare bucket.
2) It makes Kalk-Bucket turn back off, but not until the 2:15 defer expires.
3) It prevents Kalk-Bucket from running again if you haven't refilled the spare bucket.

When you refill the spare bucket, simply turn K-Reset on (via the dashboard) for a couple seconds, then turn it back off. That will turn K-Reminder off, allowing the process to repeat. K-Reminder will stay on indefinitely until reset in this manner. Maybe reread post #23 for more info...

Let me know how this works out for you.


__________________
Mark
Hooligan is offline   Reply With Quote
Unread 12/28/2014, 03:47 PM   #29
Jyetman
Registered Member
 
Jyetman's Avatar
 
Join Date: Nov 2012
Location: Phoenix, AZ
Posts: 1,712
Quote:
Originally Posted by Hooligan View Post
As your program currently reads, once on, K-Reminder will NEVER turn off. The Defer statements in K-Reminder are doing nothing at all.

Get rid of the KALK-EMTY outlet and try this:

[K-Reset]
(no statements at all and manually set to OFF via the dashboard)

[Kalk-Bucket]
Fallback OFF
Set OFF
If KALK-E CLOSED Then ON
If Outlet K-Reminder = ON Then OFF
Defer 000:10 Then ON
Defer 002:15 Then OFF

[K-Reminder]
If Outlet Kalk-Bucket = ON Then ON
If Outlet K-Reset = ON Then OFF

What I believe this will accomplish (you'll need to test!) is when your KALK-E switch has been closed for 10 seconds, your Kalk-Bucket outlet will turn on and run for 2 minutes and 15 seconds, which I assume is the empirically-determined time it takes to refill the main bucket from the spare without running the pump dry for too long. (It might be better to have a 2nd float switch to tell when the bucket was full to turn off this pump, but I digress...)

Note that when Kalk-Bucket turns on, this will cause K-Reminder to turn on. K-Reminder being on does several things:

1) It reminds you to refill the spare bucket.
2) It makes Kalk-Bucket turn back off, but not until the 2:15 defer expires.
3) It prevents Kalk-Bucket from running again if you haven't refilled the spare bucket.

When you refill the spare bucket, simply turn K-Reset on (via the dashboard) for a couple seconds, then turn it back off. That will turn K-Reminder off, allowing the process to repeat. K-Reminder will stay on indefinitely until reset in this manner. Maybe reread post #23 for more info...

Let me know how this works out for you.
Ok just updated my programming will see what happens in a few days. Thank you!


Jyetman is offline   Reply With Quote
Unread 12/28/2014, 04:27 PM   #30
Jyetman
Registered Member
 
Jyetman's Avatar
 
Join Date: Nov 2012
Location: Phoenix, AZ
Posts: 1,712
I have another programming question for my ATO outlet. My float system is configured opposite from others CLOSED for OFF / OPEN for on. I need a fail safe program so if the float remains open for 10+ minutes it shuts off the outlet. Can someone please help me with this. What I'm afraid might happen is if the floats fail the default switch condition is OPEN which would be disastrous for me.

Current program:

[D-TOP-OFF]
Fallback OFF
OSC 000:00/000:03/005:00 Then ON
If ATO CLOSED Then OFF
If Scrub CLOSED Then OFF
If ATO-LO CLOSED Then OFF
If ATO-HI OPEN Then OFF
If Power EB8_3 Off 000 Then OFF



Last edited by Jyetman; 12/28/2014 at 04:37 PM.
Jyetman is offline   Reply With Quote
Unread 12/31/2014, 04:45 PM   #31
Jyetman
Registered Member
 
Jyetman's Avatar
 
Join Date: Nov 2012
Location: Phoenix, AZ
Posts: 1,712
Quote:
Originally Posted by Hooligan View Post
As your program currently reads, once on, K-Reminder will NEVER turn off. The Defer statements in K-Reminder are doing nothing at all.

Get rid of the KALK-EMTY outlet and try this:

[K-Reset]
(no statements at all and manually set to OFF via the dashboard)

[Kalk-Bucket]
Fallback OFF
Set OFF
If KALK-E CLOSED Then ON
If Outlet K-Reminder = ON Then OFF
Defer 000:10 Then ON
Defer 002:15 Then OFF

[K-Reminder]
If Outlet Kalk-Bucket = ON Then ON
If Outlet K-Reset = ON Then OFF

What I believe this will accomplish (you'll need to test!) is when your KALK-E switch has been closed for 10 seconds, your Kalk-Bucket outlet will turn on and run for 2 minutes and 15 seconds, which I assume is the empirically-determined time it takes to refill the main bucket from the spare without running the pump dry for too long. (It might be better to have a 2nd float switch to tell when the bucket was full to turn off this pump, but I digress...)

Note that when Kalk-Bucket turns on, this will cause K-Reminder to turn on. K-Reminder being on does several things:

1) It reminds you to refill the spare bucket.
2) It makes Kalk-Bucket turn back off, but not until the 2:15 defer expires.
3) It prevents Kalk-Bucket from running again if you haven't refilled the spare bucket.

When you refill the spare bucket, simply turn K-Reset on (via the dashboard) for a couple seconds, then turn it back off. That will turn K-Reminder off, allowing the process to repeat. K-Reminder will stay on indefinitely until reset in this manner. Maybe reread post #23 for more info...

Let me know how this works out for you.
After adding a defer statement in the K-Reminder outlet this worked perfect. Thanks....


Jyetman is offline   Reply With Quote
Reply

Tags
apex, apex programming, defer statement


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 03:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2025 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 © 2025 DragonByte Technologies Ltd.