Results 1 to 10 of 10

Thread: Cycling outlet

  1. #1
    Regular Vistor
    Join Date
    May 2017
    Location
    Seattle Wa
    Posts
    19

    Cycling outlet

    I'm rather new to the world of apex programming yet... I've recently setup my co2 solenoid for by calcium reactor for on at 7 off at 6.9 with an alarm at 7.5 and 6.4. The Milwaukee solenoid I'm using from time to time will stick close(I've cleaned and lubed)...i was wondering is there a piece of code i can put in so if the ph reaches 7.2 it will cycle the outlet off then back on?

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    You need a virtual outlet. Replace the time in the defer with how often you want it to cycle when the pH condition is reached. Adjust names as necessary.

    ResReactor (VO)
    Set OFF
    If pH > 7.2 Then ON
    If Outlet Reactor = OFF Then OFF
    Defer XXX:XX Then ON
    Min Time 000:05 Then ON

    Reactor
    (Existing code)
    If Outlet ResReactor = ON Then OFF

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

  3. #3
    Regular Vistor
    Join Date
    May 2017
    Location
    Seattle Wa
    Posts
    19
    Alright i think I understand it except what is this line for?
    If Outlet Reactor = OFF Then OFF

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    That is so the cycling timer only responds when the solenoid is on and allows it to create a cycle for multiple attempts. You do need to replace reactor with whatever you named the outlet that your solenoid is connected to.

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

  5. #5
    Regular Vistor
    Join Date
    May 2017
    Location
    Seattle Wa
    Posts
    19
    It's not letting me add that particular line of code.. I have not figured out how to add pictures yet... but it doesn't like line 3 I keep getting an error

    Set OFF
    If Cx_PH > 7.20 Then ON
    If Calcium = OFF Then Off
    Defer 000:10 Then ON
    Min Time 000:05 Then ON

    Also couple other questions is the defer in min:seconds and what does the min time do for u That the defer doesn't? Sorry I'm new to apex coding...

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Missing the word Outlet

    Set OFF
    If Cx_PH > 7.20 Then ON
    If Outlet Calcium = Off Then OFF
    Defer 000:10 Then ON
    Min Time 000:05 Then ON

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

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Also you might not want to use 10 seconds on that defer. Cycling that quickly can damage your solenoid. Something like a minute or greater would probably be better.

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

  8. #8
    Regular Vistor
    Join Date
    May 2017
    Location
    Seattle Wa
    Posts
    19
    //Error: line 3 - Valid keywords following If are Temp, pH, ORP, DO, Cond, Salt, Par, Feed, SwX, FLx, Error, Power, Sun, or Moon // If Calcium = OFF Then OFF

    This is the error I get

  9. #9
    Regular Vistor
    Join Date
    May 2017
    Location
    Seattle Wa
    Posts
    19
    Ahhh thx for that.. last question what does the min time code do for u?

  10. #10
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    The min time is how long it will turn off each power cycle. I put 5 seconds in there assuming that that was long enough to let the solenoid cool down and provide the best chance of a reset without being off for too high of a percentage.

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

Similar Threads

  1. EB8 cycling on/off
    By hkgar in forum EnergyBars 832 / 632 / 8 / 6 / 4
    Replies: 0
    Last Post: 04-11-2021, 09:47
  2. Help! Cor15 keeps cycling on and off
    By SUS in forum COR-15 & COR-20 Pumps
    Replies: 9
    Last Post: 02-23-2021, 07:55
  3. Question: Cycling on/off
    By PaulH007 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 06-23-2020, 12:37
  4. Help! “Cycling” ATO Pump
    By mls228 in forum EnergyBars 832 / 632 / 8 / 6 / 4
    Replies: 7
    Last Post: 04-27-2018, 16:41
  5. Help Please:Apex is cycling on and off
    By abcfish in forum A2 Apex/ApexEL and A3 Apex Pro/Apex/Apex Jr
    Replies: 4
    Last Post: 10-06-2017, 18:32

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
  •