2 programs? What?
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