PDA

View Full Version : what does if time 00:00 do?


linuxgangster
06/08/2008, 11:00 PM
What the subject says....I was looking at some peoples code here and see statements like this:

If Time > 00:00 then XXX OFF

patedship
06/09/2008, 12:45 AM
Basically means always on, or in the instance you are asking about it would mean. Always off unless x happens.

patedship
06/09/2008, 12:46 AM
So if you look at my programming it would mean the Kalk Stirrer is always off unless it is mixing for 5 minutes every 200 minutes..

natas
06/09/2008, 09:21 AM
so you could say:
If Time > 00:00 then HET OFF
If Temp < 75 then HET ON
If Temp > 77 then HET OFF

Is that where it is good to use?

SWINGRRRR
06/09/2008, 10:52 AM
Its been suggested to add a line like
If Temp < 70 Then HET Off
for any possible temp probe failures.

tonga_man
06/09/2008, 12:06 PM
<a href=showthread.php?s=&postid=12709094#post12709094 target=_blank>Originally posted</a> by natas
so you could say:
If Time > 00:00 then HET OFF
If Temp < 75 then HET ON
If Temp > 77 then HET OFF

Is that where it is good to use? A heater condition is kind of bad example for an always on statement. You really do not want to force an evaluation to true and turn the heater on by default.

A better example is a pump that should always run except when certain conditions are met.

As Swingrrr stated, safety code for probes, heaters, chillers and other critical items is a good thing.

hogall
06/11/2008, 11:40 AM
I have a AC Jr. I understand that there is a max of 4 statements per app. Does the unit run the statements in any order?

For ie:

If time>0600 then LT1 On
If time<1800 then LT1 OFF
If temp>81 then LT1 OFF
If PH> 8.2 then LT1 OFF

Does the unit go thur these statement in this order? Or does the unit run the statement when the condition is met? Sorry for the stupid question. I have been playing around with the codes and have these codes all over the place. Should I delete all and put them in together?

Dennis

kenargo
06/11/2008, 01:08 PM
Statements using "If Time" are sorted and processed 1st, all other statements are processed in the order they are programmed and after all "If Time".

From Curt...
[quote]
1. Statements for each timer name are placed into a separate evaluation list.
2. The time statements of each evaluation list are placed at the beginning and sorted lowest time to highest. Other statements remain in their original order.
3. The evaluation lists are evaluated from first statement to the last. The evaluated timer state is stored. The last true program statement has the highest priority, and sets the timer state.
4. If the evaluated timer state is different than the actual timer state then a control command is sent out. The actual timer state is updated.
5. Steps 3 & 4 are continually executed as fast as possible. Depending on the program complexity the lists are usually evaluated 1 to 2 times/sec.
[\quote]

That said, technically you have the statements in the order that they would be processed anyway but the order of 'If Time' doe snot matter, only the other statement's order is important!