Results 1 to 8 of 8

Thread: AWC Programming help

  1. #1
    Regular Vistor
    Join Date
    Oct 2017
    Location
    San Diego, Ca
    Posts
    22

    AWC Programming help

    So I'm brand new to APEX programming and I'm having a little issue.

    I used to do AWC with a Kore 5th doser, but I HATE that thing so I'm trying to emulate their system with the Apex. Basically the way it works, every hour the drain pumps for about a minute, then shuts off. Then the fresh SW pumps til it closes the optical sensor or until its pumped for 5 minutes (fail safe).

    My system is as follows:
    One pump in SW barrel connected to EB832, one pump in return chamber of sump connected to FMM, 2 optical sensors from FMM.



    SW_Out (this is the PMUP pump connected to the FMM)
    Fallback OFF
    OSC 118:30/001:30/000:00 Then ON #I think this means every 1.5 hours, the drain pump will operate for 1min30sec.#

    SW_In (this is an outlet on the EB832)
    Fallback OFF
    Set OFF
    IF OPTHIG CLOSED THEN OFF #If the High optical sensor is closed, it won't run indicating an error#
    IF OptLOW CLOSED THEN OFF #If the low optical sensor is closed, it won't run indicating an error#
    IF SW_OUT ON THEN OFF #This is giving me an error, my intention is that if the SW_Out pump is running this won't run at the same time#
    DEFER 002:00 #I would like this pump to start two minutes after the ON conditions are met.#
    IF OptLOW OPEN THEN ON #This is what should trigger the pump to start operating#

    This is the error I get when trying to upload the rule:

    //Error: line 5 - Invalid Switch Number // IF SW_OUT ON THEN OFF

    If possible, I'd like to figure out what is wrong with the code on line 5. I'd also like to add an additional failsafe that if the SW_In pump is running for longer than 5 minutes it stops and shuts the outlet OFF, also sending me a notification that it failed.

    Additionally, I'd like to add a rule that if SW_in has failed, SW_out will shutdown as well (so I don't drain the tank...)

    Thanks in advance.

  2. #2
    Frequent Visitor joenla's Avatar
    Join Date
    May 2013
    Location
    Lafayette, La
    Posts
    106
    I do this but I use 2 syncra pumps with floats and time commands as backups. The SW out pump has to run twice as long to remove the water bc it has 20 ft head and it works great. Makes life much easier!
    Your SW_Out should read If Output SW_OUT = ON Then Off
    For a failsafe you can add the When command (When On > 005:00 Then OFF) to limit the time on and/or add a specific time command as I do that says something like If Time 18:00 to 18:04 Then ON

  3. #3
    Regular Vistor
    Join Date
    Oct 2017
    Location
    San Diego, Ca
    Posts
    22
    Thank you! that fixed the error on line 5, and the "when" command is perfect. Now I just need the AWC shutdown failsafe portion and the alert.

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    I would not use your approach to this problem. I would do this instead. Note that times are adjusted because you said you wanted 1 min 30 seconds every hour and a half above (yours was for 2 hours).

    SW_OUT
    Fallback OFF
    OSC 000:00/001:30/88:30 Then ON

    SW_IN
    Fallback OFF
    OSC 001:30/005:00/83:30 Then ON
    If OPTHIG CLOSED Then OFF
    If OPTLOW CLOSED Then OFF




    You might be an engineer if...You have no life and can prove it mathematically.

  5. #5
    Frequent Visitor joenla's Avatar
    Join Date
    May 2013
    Location
    Lafayette, La
    Posts
    106
    forgot to mention this but if you use the time command be sure to also use the DoW command so its not turning on except for the days needed. Below is an example of my SW IN

    Fallback OFF
    Set OFF
    If Time 18:09 to 18:14 Then ON
    If DoW -MTWTFS Then OFF
    If Output EmergencyOFF = ON Then OFF
    When On > 007:00 Then OFF
    If LeakD1 CLOSED Then OFF
    If LeakD2 CLOSED Then OFF
    If LeakD3 CLOSED Then OFF
    If LeakD4 CLOSED Then OFF
    If Output SumpHigh = ON Then OFF
    If Output LeakAlarm = ON Then OFF
    If SMPHI2 CLOSED Then OFF
    Min Time 060:00 Then OFF
    If SMPHG3 OPEN Then OFF
    If Power Apex Off 000 Then OFF

  6. #6
    Regular Vistor
    Join Date
    Oct 2017
    Location
    San Diego, Ca
    Posts
    22
    Ah maths...yeah thanks for the number adjustment, just curious though what stops it from running at the same time as the sw out pump?

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Because the way the OSC is arranged the drain pump runs for the first 1:30 of the cycle and the new SW is allowed to run (supervised by optical switches) from 1:30 into the cycle to 6:30 into the cycle (5 min total). The remainder of the time shuts both off to allow time for your ATO to run.

    Speaking of the ATO, make sure you add these two lines to your ATO code so it doesn't try to run during the cycle

    If Outlet SW_OUT = ON Then OFF
    If Outlet SW_IN = ON Then OFF

    You might be an engineer if...You have no life and can prove it mathematically.

  8. #8
    Regular Vistor
    Join Date
    Oct 2017
    Location
    San Diego, Ca
    Posts
    22
    Thanks zombie, i like it. Very simple and looks like exactly what i needed.

Similar Threads

  1. ATO programming for AWC
    By Alexreef in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 0
    Last Post: 11-28-2019, 12:47
  2. Help! Dos AWC programming
    By Slawman in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 5
    Last Post: 05-22-2015, 19:48
  3. Programming AWC different scenarios
    By ammari33 in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 0
    Last Post: 10-09-2014, 21:55
  4. Question: AWC Programming
    By avandss in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 2
    Last Post: 08-12-2014, 07:07
  5. Question: AWC Programming
    By RedReefer in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 10
    Last Post: 01-12-2014, 19:33

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
  •