Results 1 to 11 of 11

Thread: Dual Tempertaure Probe code

  1. #1
    New User
    Join Date
    Dec 2017
    Location
    UK
    Posts
    7

    Dual Temperature Probe code

    Hi All,

    Have a 2016 Apex with temp probe in sump as standard. Added an additional temp probe to the display tank via a PM1 module. I want to know the best way to setup the code on my heater outlets (i have two heaters) so i can reference my second probe.

    I want to make sure that if one probe failed or went faulty that the second one is there for redundancy.

    I believe i could just add the last line of code to say:

    If dttemp > XX then OFF

    so as to reference just the primary probe and use the DT as a backup, but how would i reference both probes day to day?

    thanks!!
    Last edited by GraemeK80; 12-30-2017 at 15:14. Reason: Typo

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    It's a little complex, but this is the approach I would take if you really want to make full use of both and make them fully redundant. The example is a 78F target temp, a house temp below 75 degrees, and internal thermostats set to 80.

    StempOut
    Set OFF
    If Temp > 80 Then ON
    If Temp < 75 Then ON
    Min Time 060:00 Then ON

    DtempOut
    Set OFF
    If dttemp > 80 Then ON
    If dttemp < 75 Then ON
    Min Time 060:00 Then ON

    BothOut
    Set OFF
    If DtempOut = ON Then ON
    If Stemp = OFF Then OFF

    DualHeatS
    If Temp < 77.5 Then ON
    If Temp > 78.2 Then OFF
    If StempOut = ON Then OFF

    DualHeatD
    If dttemp < 77.5 Then ON
    If dttemp > 78.2 Then OFF
    If StempOut = OFF Then OFF

    Stemp
    If Temp < 77.8 Then ON
    If Temp > 78.2 Then OFF
    If StempOut = ON Then OFF

    Dtemp
    If dttemp < 77.8 Then ON
    If dttemp > 78.2 Then OFF
    If StempOut = OFF Then OFF

    Heater1
    Fallback ON
    Set OFF
    If Outlet Stemp = ON Then ON
    If Outlet Dtemp = ON Then ON
    If Time 00:00 to 11:59 Then OFF
    If Outlet DualHeatS = ON Then ON
    If Outlet DualHeatD = ON Then ON
    If Outlet BothOut = ON Then ON

    Heater
    Fallback OFF
    Set OFF
    If Outlet Stemp = ON Then ON
    If Outlet Dtemp = ON Then ON
    If Time 12:00 to 23:59 Then OFF
    If Outlet DualHeatS = ON Then ON
    If Outlet DualHeatD = ON Then ON
    If Outlet BothOut = ON Then OFF


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

  3. #3
    New User
    Join Date
    Dec 2017
    Location
    UK
    Posts
    7
    Hi, thanks for your reply.
    This is a tad over my head really.

    If you have time to explain this id be greatful.

    I only have two probes.

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    The basic premise is that if the sump temp goes out of bounds then the display temp takes over for 2 hours. If you want a simpler version that doesn't require all the virtual outlets for full redundancy you could try this with the same targets listed above. This uses normal heater control but will shut off one of the two heaters if the display temp goes out of bounds for at least 2 hours.

    DispOut
    Set OFF
    If dttemp < 75.0 Then ON
    If dttemp > 80 Then ON
    Min Time 120:00 Then ON

    Heater1
    Fallback ON
    If Temp < 77.8 Then ON
    If Temp > 78.2 Then OFF
    If Time 00:00 to 11:59 Then OFF
    If Temp < 77.5 Then ON

    Heater 2
    Fallback OFF
    If Temp < 77.8 Then ON
    If Temp > 78.2 Then OFF
    If Time 12:00 to 23:59 Then OFF
    If Temp < 77.5 Then ON
    If Temp < 75.0 Then OFF
    If Outlet DispOut = ON Then OFF

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

  5. #5
    New User
    Join Date
    Dec 2017
    Location
    UK
    Posts
    7
    Hi Zombie,
    trying to work my way through this example logically and i have a few questions.

    so this virtual outlet at the start says if temperature in the display goes out of wack then turn on, i get that.

    why would heater 1 be on as a fallback? is that safe?

    why the time statements here? are you suggesting that only one heater works at a certain time?

    at the moment i have the following code which i've just flashed to both heaters:

    Fallback OFF
    If Tmp < 25.7 Then ON
    If Tmp > 26.0 Then OFF
    If Tmp_DT < 23.0 Then OFF
    If Tmp_DT > 28.0 Then OFF
    If Output MAIN_RETURN = OFF Then OFF
    Defer 002:00 Then ON

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    The fallback ON is safe as long as your heaters have built in thermostats. It's use is to allow only one heater to heat the tank based on it's own thermostat in the event that comms are lost. I prefer a slow slight overheat to no heat in my tank when something goes whack.

    The time statements are there so that unless one can't keep up (that's what the 77.5 line is there for) only one heater runs at a time to slow temp changes and maximize the life of the heaters.

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

  7. #7
    New User
    Join Date
    Dec 2017
    Location
    UK
    Posts
    7
    i run two heaters which dont have thermostats you see.

    looking at the code ive written i think its OK but if i had a power cut and the temp dropped below say 23 then it would never turn my heaters back on, correct?
    how would i over come this?

  8. #8
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    You could overcome that with a virtual outlet like this.

    PwrHelp
    Set OFF
    If Power Apex OFF 030 Then ON
    If Dttemp > 23 Then OFF
    Min Time 010:00 Then ON

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

  9. #9
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    So the full code including the above in would be.


    DispOut
    Set OFF
    If dttemp < 75.0 Then ON
    If dttemp > 80 Then ON
    Min Time 120:00 Then ON

    Heater1
    Fallback OFF
    If Temp < 25.7 Then ON
    If Time 00:00 to 11:59 Then OFF
    If Temp < 25.5 Then ON
    If Outlet DispOut = ON Then OFF
    If Outlet PwrHelp = ON Then ON
    If Temp > 26.0 Then OFF

    Heater 2
    Fallback OFF
    If Temp < 25.7 Then ON
    If Time 12:00 to 23:59 Then OFF
    If Temp < 25.5 Then ON
    If Outlet DispOut = ON Then OFF
    If Output MAIN_RETURN = OFF Then OFF
    If Temp > 26.0 Then OFF

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

  10. #10
    New User
    Join Date
    Dec 2017
    Location
    UK
    Posts
    7
    What does this min time of 10 minutes do?
    I read this statement as if the power has been off for 30 minutes and the temp is above 23 then fine, if its lower then wait 10 mins and turn on?

  11. #11
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Nope. It means for 30 minutes after a power outage if temp is below 23 Then turn on the heater for at least 10 minutes even if temp goes above 23. But turn off if temp reaches the high threshold (that's why I rearranged the temp > line to be later in the heater code)

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

Similar Threads

  1. Dual Heater Code
    By jamesreich in forum Apex Programming for Heaters and Chillers
    Replies: 2
    Last Post: 08-02-2020, 21:24
  2. Help! Gyre XF130 dual Icecap interface module setup help - please review my code
    By bryman in forum Apex Programming for Vortech, Tunze, & Other Controllable Pumps
    Replies: 39
    Last Post: 05-09-2018, 20:05
  3. Review My Program Salinity probe and code issue
    By Breadman03 in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 3
    Last Post: 10-07-2017, 21:23
  4. Unable to enter Conductivity probe code in Fusion
    By tdunmore2 in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 03-14-2016, 07:52
  5. Dual Heater Code with safe guards
    By Snookin in forum Apex Programming for Heaters and Chillers
    Replies: 10
    Last Post: 04-24-2015, 08:53

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
  •