Trying to figure out order of precedence of statements.
I am trying to get my power head to turn off between 09:30 am and 05:45 pm and, to run all day Sunday !
Can anyone gimme that code ?
Trying to figure out order of precedence of statements.
I am trying to get my power head to turn off between 09:30 am and 05:45 pm and, to run all day Sunday !
Can anyone gimme that code ?
Set ON
If Time 09:30 to 17:44 Then OFF
If DoW S——-Then ON
(That’s 6 dashes after the S; my phone seems to be showing them run together)
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.
Of it is the reverse order that I thought. Corrected of time to 17:44 :-P
Thank you RussM
Oops! Typo corrected.
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.
Lets say I would like to keep the same program but, turn the power head back on at 16:45 on saturday only ?
Sent from my SM-G950W using Tapatalk
I did create a Virtual outlet and named it GyreSat which has the following code:
Set Off
IF Time 16:44 TO 17:44 Then ON
IF DoW -MTWTF- Then OFF
When I add this code in my main outlet (Gyre):
Set ON
If Time 09:30 to 17:44 Then OFF
If GyreSat = ON Then On
If DoW S------ Then ON
I get this error message:
/Error: line 3 - Valid keywords following If are Temp, pH, ORP, DO, Cond, Salt, Par, Feed, SwX, FLx, Error, Power, Sun, or Moon // If GyreSat = ON Then On
If Outlet GyreSat = ON Then ON
...forgot outlet.
You might be an engineer if...You have no life and can prove it mathematically.
Great thank you. Wish it was Java or Python lol.
Still learning the specifics of that rudimentary language.
Zombie, if you read my code with the virtual outlet one, can you tell me what it will do so I can confirm my logic ?
Sent from my SM-G950W using Tapatalk
The virtual outlet you have says turn on from 16:44 to 17:44 on Saturday and Sunday.
You might be an engineer if...You have no life and can prove it mathematically.
Which of the 2 ? The one in the virtual outlet or the one for the main outlet.
The Schedule I am trying to recreate is
Monday to Friday:
Gyre off from 9:30am to 5:44pm
Saturday:
Gyre off from 9:30am to 4:44pm
Sunday:
Run all day.
I wpuld do this for that schedule.
GyreSat
Set OFF
IF Time 16:45 TO 09:30 Then ON
IF DoW SMTWTF- Then OFF
Set OFF
If Time 17:45 to 09:30 Then ON
If DOW S-----S Then OFF
If GyreSat = ON Then ON
If DoW S------ Then ON
You might be an engineer if...You have no life and can prove it mathematically.
There is something wrong with the line
If Outlet GyreSat = ON Then ON
This virtual outlet seem to always evaluate to ON.
I did remove everything out of it, only left the line Set OFF but, Gyre is turning on no matter what.
If I remove The line
If Outlet GyreSat = ON Then ON
If turns OFF has it should.
Anyone can figure out why ?
Found it, well I think.
no =
If I put the equal sign it soes not work.
but the line:
If Outlet GyreSat OFF Then OFF works !
It still does not work.
I Have simplified it to see what is wrong
<Virtual Outlet GyreSat>
Set Off
If Time 16:45 To 17:45 Then ON
IF DoW -MTWTF- Then OFF
< Main Outlet GYRE >
Set ON
If Time 09:30 to 17:44 Then OFF
If Outlet GyreSat = ON Then ON
If Time 17:45 to 09:29 Then ON
If DoW S------ Then ON
So, Lets make evaluate all the lines one by one:
Testing done Monday at 16:30
Set ON ( So It should be ON )
If Time 09:30 to 17:44 Then OFF (It is 16:30 so it should be OFF)
If Outlet GyreSat = ON Then ON (OFF See line by line below)
If Time 17:45 to 09:29 Then ON (It is 16:30 so, it stays OFF)
If DoW S------ Then ON (Monday so, this should stay OFF)
<Virtual Outlet GyreSat>
Set Off (Virtual Outlet is OFF)
If Time 16:45 To 17:45 Then ON ( It is 16:30 so it should stay OFF )
IF DoW -MTWTF- Then OFF (We are Monday so it should be OFF )
So final result is an OFF State but, the gyre outlet is on no mather what. Yes it is set on auto. If I Remove the line:
If Outlet GyreSat = ON Then ON
from the actual outlet (gyre) code, it stays off has it should be. Another thing I did notice is that when I save the code, it change the Outlet GyreSat for Output Gyresat
Try my code in post 13. Note I changed the logic around in the main gyre code.
You might be an engineer if...You have no life and can prove it mathematically.
Still having the same issue with your code or my code.
If GyreSat = ON Then ON
(I have fixed it to )
It always evaluate to ON
So. Tuesday 10:30 and the gyre is on when it should be off
If I remove that line, it turns off as it should
Is the gyre sat in auto? Copy paste the code here.
You might be an engineer if...You have no life and can prove it mathematically.
Bookmarks