Results 1 to 11 of 11

Thread: ATO code with BoB and Kalk

  1. #1
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18

    ATO code with BoB and Kalk

    I bought a breakout box so that my apex Jr could control my auto top-off. I mix kalk in my top off reservior.

    I have two float switches. #1 is the primary and #2 is the high level back-up. This morning I noticed the ATO pump running when the #1 was in the OPEN position. Both switches are in the CLOSED position if the floats are 'up' so that it shuts off the top-off pump. Here is my code.

    Fallback OFF
    Set OFF
    If Swx2_1 CLOSED Then ON
    If Swx2_2 OPEN Then OFF
    OSC 000:00/000:15/019:45 Then ON
    Defer 000:05 Then ON
    Defer 000:05 Then OFF
    If pHx2 > 8.35 Then OFF


    I am thinking maybe it did not shut off because I didn't have an OFF statement for float switch 1? Is the modification below correct?

    Fallback OFF
    Set OFF
    If Swx2_1 CLOSED Then ON
    If Swx2_1 OPEN Then OFF
    If Swx2_2 OPEN Then OFF
    OSC 000:00/000:15/019:45 Then ON
    Defer 000:05 Then ON
    Defer 000:05 Then OFF
    If pHx2 > 8.35 Then OFF

    thanks for the help!

  2. #2
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18
    or maybe I need to change to a set ON statement like this?

    Fallback OFF
    Set ON
    If Swx2_1 OPEN Then OFF
    If Swx2_2 OPEN Then OFF
    OSC 000:00/000:15/019:45 Then ON
    Defer 000:05 Then ON
    Defer 000:05 Then OFF
    If pHx2 > 8.35 Then OFF

  3. #3
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    The OSC statement is completely overriding the If switch statements. The state of the switches is not being used as a result.

    Why do you have an OSC in this program? Explain exactly how you want the ATO to operate so we can help you better.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  4. #4
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18
    Russ,

    I have the OSC program so that the kalk top-off is added slowly in parts through the day, no ore than 15 seconds at a time. If I only add kalk say 15 seconds every 20 minutes, the pH rise is not abrupt. It’s only a 34 gal tank. I have used this OSC for years with a separate ATO system plugged into the apex. Now I am just trying to integrate into the apex BoB.

  5. #5
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    The OSC statement needs to go first, and then you shut it off for open switches.

    Sent from my SM-G965U using Tapatalk

  6. #6
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18
    Ok! Thank you. Should it start with Set off or Set on? I guess I don’t know the difference.

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by rishma View Post
    Ok! Thank you. Should it start with Set off or Set on? I guess I don’t know the difference.
    You don't need either. The OSC statement has explicit ON and OFF states.

    Sent from my SM-G965U using Tapatalk

  8. #8
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18
    Great. Thank you for the help.

  9. #9
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18
    ah man, I am still messed up. It is still sending top off water to sump when both Sw 1 and sw 2 are open. Here is my code

    Fallback OFF
    If Swx2_1 OPEN Then OFF
    If Swx2_2 OPEN Then OFF
    OSC 000:00/000:15/019:45 Then ON
    Defer 000:05 Then ON
    Defer 000:05 Then OFF
    If pHx2 > 8.35 Then OFF

  10. #10
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    You were already advised why. Read posts 3 and 5 please
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  11. #11
    Regular Vistor
    Join Date
    Jan 2013
    Location
    US, Central Time
    Posts
    18
    Oh geeez. My apologies. I saw the reply, made the changes and I must have failed to hit Update Outlet. I didn’t realize my error when I pasted my code into my last reply. Thanks and again, sorry for the goof up.

Similar Threads

  1. Review My Program Code Review Kalk ATO
    By Tstricker in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 3
    Last Post: 04-04-2022, 09:12
  2. Help! ATO/Kalk Stirrer Code Sanity Check
    By elgringodiablo in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 2
    Last Post: 06-19-2018, 11:52
  3. Help! BOB broke, on trip, PM2 for ATO code
    By Breadman03 in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 8
    Last Post: 07-30-2016, 21:33
  4. Review My Program Tunze ATO Kalk day and night code
    By 6check in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 10
    Last Post: 01-28-2016, 22:00
  5. Help! ATO code for Avast with BOB
    By youngguns27 in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 11
    Last Post: 09-10-2013, 16:17

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •