Create program to run on units
Add points to control as Absolute (hardcoded to id). In this case we only want to bring in points from units 2-4 since the first one starts from the schedule.
Create two time variables.
nowTime - this variable is used to get the current time. (its just for visual representation, no need to create it. In the logic below, we would just link the "time" block to second input of "timeToTimeAdd" block)
schedTime - this variable is used to specify the schedule start time which in our case is 6 am
Then configure the below logic and done.
Logic Flow:
Set nowTime variable as now + time. This will get the current time.
IF schedTime + nowTime (using timeToTimeAdd block) are inRange of min=0 and max=10, then set Unit 2 to UnOccupied else null. (The timeToTimeAdd block returns duration in minutes so we look if its within 10 mins. If its not, it writes null which means it lets the schedule control it again)
Next IF schedTime + nowTime (using timeToTimeAdd block) are inRange of min=0 and max=20, then set Unit 3 to UnOccupied else null.
Next IF schedTime + nowTime (using timeToTimeAdd block) are inRange of min=0 and max=30, then set Unit 4 to UnOccupied else null.