Results 1 to 15 of 15

Thread: programming Apex for filling RO and salt mix staions

  1. #1
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29

    programming Apex for filling RO and salt mix staions

    I currently have solenoids to allow flow for both my top off tank and my salt mix tank. They are independent of each other. My RODI solenoid works with both of them. I would like to program them to fill one tank at a time using the feed mode b and c. I am tripping myself up since the solenoid linking the RODI to the system will have code to start and shut off in both b and c feed mode. Will this cause a conflict?

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    This will not conflict, though I would actually use the downstream solenoid states rather than feed statements in your main solenoid so that if you change the code for either of them you won't have to follow through with the main solenoid too.

    Sent from my SM-G965U using Tapatalk

  3. #3
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Quote Originally Posted by zombie View Post
    This will not conflict, though I would actually use the downstream solenoid states rather than feed statements in your main solenoid so that if you change the code for either of them you won't have to follow through with the main solenoid too.

    Sent from my SM-G965U using Tapatalk
    I am not all that familiar with Code. Can you explain downstream solenoid states.

    LEt me give you and example of what I am afraid of.


    My Salt mix full is SMFULL. My top off full reads TOFULL

    If I program the main feed solenoid to shut off if TOFULL is open, then what if it reads open, but I need my mix tank filled? (SMFull Closed)
    WOnt that not allow it to fill the other tank?

  4. #4
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    What zombie suggested is to not use If Feed statements in the main RO solenoid outlet program, and instead to use If Output statements. This way, the state of the main solenoid is directly dependent on the state of the TO and SW solenoids... if either one (or both) is energized, the main solenoid will also become energized.

    Example:

    [TOsolenoid]
    Fallback OFF
    Set OFF
    If FeedB ### Then ON
    If TOFULL OPEN Then OFF

    [SWsolenoid]
    Fallback OFF
    Set OFF
    If FeedB ### Then ON
    If TOFULL OPEN Then OFF

    [ROsolenoid]
    Fallback OFF
    Set OFF
    If Output TOsolenoid = ON Then ON
    If Output SWsolenoid = ON Then ON
    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.

  5. #5
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Thank you russ and zombie.

    Another question. Do the ### you show there for a purpose?

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Grayhead View Post
    Thank you russ and zombie.

    Another question. Do the ### you show there for a purpose?
    He used that as a placeholder in case you want it active longer than the feed timer.

    Sent from my SM-G965U using Tapatalk

  7. #7
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    So that cancels the time limit for feed b?

  8. #8
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Grayhead View Post
    So that cancels the time limit for feed b?
    No.

    If FeedD 000 Then ON

    Stays true only while the timer is running


    If FeedD 005 Then ON

    Stays true while the timer is running and for 5 minutes after it ends.

    Sent from my SM-G965U using Tapatalk

  9. #9
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Can you add a code for a 5 minute flush before filling tanks?

  10. #10
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Yes. You need a VO

    StopFlush
    Set OFF
    If Output MainSolenoid = ON Then ON
    Defer 005:00 Then ON

    Flush Solenoid
    Set OFF
    If Output MainSolenoid = ON Then ON
    If Output StopFlush = ON Then OFF

    Sent from my SM-G965U using Tapatalk

  11. #11
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Quote Originally Posted by zombie View Post
    Yes. You need a VO

    StopFlush
    Set OFF
    If Output MainSolenoid = ON Then ON
    Defer 005:00 Then ON

    Flush Solenoid
    Set OFF
    If Output MainSolenoid = ON Then ON
    If Output StopFlush = ON Then OFF

    Sent from my SM-G965U using Tapatalk
    I understand creating a VO. I am not unerstanding how this code will work in conjunction with the other solenoids to flush each time. Will the VO defer the main solenoid from opening while the RODI flushes using the additional solenoid dedicated for the flush(replacing the flush valve on the RODI?)

    Sorry, Im still learning about code

  12. #12
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Grayhead View Post
    I understand creating a VO. I am not unerstanding how this code will work in conjunction with the other solenoids to flush each time. Will the VO defer the main solenoid from opening while the RODI flushes using the additional solenoid dedicated for the flush(replacing the flush valve on the RODI?)

    Sorry, Im still learning about code
    No. This would make a flush solenoid turn on for the first 5 minutes while the main solenoid and the solenoid calling for water are both also on.

    Sent from my SM-G965U using Tapatalk

  13. #13
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Are those commands on 2 separate vo's? One labeled stop flush and the other flush solenoid

  14. #14
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Grayhead View Post
    Are those commands on 2 separate vo's? One labeled stop flush and the other flush solenoid
    StopFlush is a VO. The other would be the solenoid used to flush the RODI.

    Sent from my SM-G965U using Tapatalk

  15. #15
    Regular Vistor
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Thank you for that.

Similar Threads

  1. Question: How to set add salt water only when salt is low
    By Jarvick in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 4
    Last Post: 10-05-2021, 08:37
  2. Salt water mixing station and dos awc programming help needed.
    By Dillon in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 2
    Last Post: 07-20-2019, 17:33
  3. Help! Automate salt water making process by adding concentrate salt water using DOS
    By crane in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 1
    Last Post: 12-18-2018, 08:23
  4. Question: DOS routine programming with my DIY AB mix box
    By Diznaster in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 5
    Last Post: 09-25-2018, 07:06
  5. SW Mix Programming
    By cafereef in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 5
    Last Post: 02-27-2017, 13:38

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
  •