I have a time of day based custom function running. I can turn on and off out puts based on time of day and day of week. I am trying to be bale to override the time of setting by seeing if a input is set. When I compile the program , I get a error stating the name is incorrect.
Code is below.
@10 If RLY[1]=1 goto @90
@20 Else
@30 If Date[4]>=1 and Date[4]<=5 and TIME[1]>7 and TIME[1]<16
@40 CLRIO PWR_TV
@50 CLRIO PWR_COMP
@60 CLRIO SPARE_1
@70 CLRIO SPARE_2
@80 Else
@90 Setio PWR_TV
@100 Setio PWR_COMP
@110 ENDIF