Results 1 to 5 of 5

Thread: Can not add > (Greater then) sign?!

  1. #1
    New User
    Join Date
    Dec 2017
    Location
    Smyrna DE
    Posts
    1

    Can not add > (Greater then) sign?!

    Trying to add the following code to my heaters outlet:

    If Temp < 75.0 Then ON
    If Temp > 77.0 Then OFF
    Defer 002:00 Then ON
    Defer 001:30 Then OFF
    If Temp < 70.0 Then OFF

    I am getting the following error :
    //Error: line 2 - <, >, or = expected // If Temp > 77.0 Then OFF


    I've tried different outlets..I have code with > in it that works fine..but If I try to change that code it gives me the same error. I'm lost.

    This is on an apex classic.

  2. #2
    Regular Vistor
    Join Date
    Apr 2017
    Location
    Eastern
    Posts
    41
    1) If Temp < 75.0 Then ON
    2) If Temp < 70.0 Then OFF


    So if your temp is 72:
    Line 1 turns the outlet on
    Line 2 turns the outlet off

    See where the conflict is? Anywhere between 70 and 75, you have one line trying to turn it on and one line trying to turn it off. Why do you have both these lines in the code? I'd bet if you removed one line or the other, the error would stop.

  3. #3
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Engloid View Post
    1) If Temp < 75.0 Then ON
    2) If Temp < 70.0 Then OFF


    So if your temp is 72:
    Line 1 turns the outlet on
    Line 2 turns the outlet off

    See where the conflict is? Anywhere between 70 and 75, you have one line trying to turn it on and one line trying to turn it off. Why do you have both these lines in the code? I'd bet if you removed one line or the other, the error would stop.
    Thats not his problem and is an essential failsafe for those using multiple heaters or a single heater without a built in thermostat. It does not create a conflict. It instead acts as a failsafe to turn the heater off in the event of a temp probe failure or if the temp probe falls out of the tank.

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

  4. #4
    Frequent Visitor
    Join Date
    Mar 2015
    Location
    San Jose,CA
    Posts
    528
    Quote Originally Posted by Engloid View Post
    1) If Temp < 75.0 Then ON
    2) If Temp < 70.0 Then OFF


    So if your temp is 72:
    Line 1 turns the outlet on
    Line 2 turns the outlet off

    See where the conflict is? Anywhere between 70 and 75, you have one line trying to turn it on and one line trying to turn it off. Why do you have both these lines in the code? I'd bet if you removed one line or the other, the error would stop.
    Line 2 doesn’t turn it off when the temp is 72.

    Last I checked 72 is larger than 70 so the last statement is not true.


    Sent from my iPhone using Tapatalk

  5. #5
    Regular Vistor
    Join Date
    Apr 2017
    Location
    Eastern
    Posts
    41
    Quote Originally Posted by vhuang168 View Post
    Line 2 doesn’t turn it off when the temp is 72.

    Last I checked 72 is larger than 70 so the last statement is not true.


    Sent from my iPhone using Tapatalk
    Perhaps I should post late at night.

    It looks ok to me. All I would know to do is take it all out and put it all back in one line at a time and see which one causes the problem.

Similar Threads

  1. Cant Sign into the APEX Local dashboard
    By Jens.k in forum A2 Apex/ApexEL and A3 Apex Pro/Apex/Apex Jr
    Replies: 3
    Last Post: 06-28-2022, 14:22
  2. ASM reading greater than 100%
    By DBR_Reef in forum Advanced Sensor Module (ASM) and PAR Monitoring Kit
    Replies: 4
    Last Post: 01-12-2021, 08:10
  3. Turning a doser off if ph greater than
    By Clownfishy in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 11
    Last Post: 05-20-2018, 11:31
  4. Review My Program Dosing at intervals greater than 24 hours
    By desertcelt in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 2
    Last Post: 08-21-2016, 15:25

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
  •