Thanks,
But, there is still a problem when there are 2 programs with a gap between each other.
Second one will always try to make it off as the current time is not in its range, while the first one is on
Thanks,
But, there is still a problem when there are 2 programs with a gap between each other.
Second one will always try to make it off as the current time is not in its range, while the first one is on
yeah,
The device can have several programs
e.g
Start 13:00:00 End 13:30:00
Start 14:00:00 End 14:30:00
Start 17:00:00 End 17:30:00
You need to start telling us those things at the beginning.
If you change all the Start/Stop/Flag variables to arrays, it should work with multiple programs.
.
DT
Sure,
If Stop_H was an array of bytes ...
Stop_H VAR BYTE[3]
Then you could access each different programmed period like this
Stop_H(Period)
Same thing for the other variables too.
<br>
DT
Bookmarks