CAI_Support
Senior Member
Great!
In your first subroutine:
THERM005:
TSTLT CT 0:0:1
GOTO THE05SKIP
TSTLT T1 680
CALLSUB HEAT_ON
TSTGT T1 690
CALLSUB HEAT_OFF
THE05SKIP:
RET
You don't have to test for 0:0:1, since that will include all time from 0:0:0
without TSTLR CR 0:0:1 and next line GOTO THE05SKIP and the THE05SKIP: label.
In your
THERM0817:
TSTLT CT 0:0:0
GOTO TH817SKIP
TSTLT T1 690
CALLSUB HEAT_ON
TSTGT T1 700
CALLSUB HEAT_OFF
TH817SKIP:
RET
I think you mean "TSTLT CT 8:0:0"
And in your
THERM1723:
TSTLT CT 17:0:0
GOTO THE58SKIP
TSTLT T1 710
CALLSUB HEAT_ON
TSTGT T1 720
CALLSUB HEAT_OFF
THE58SKIP:
RET
The goto label and label itself should probably THE2359SKIP, instead of reuse THE58SKIP.
Please note labels are global, even in subroutines.
In your first subroutine:
THERM005:
TSTLT CT 0:0:1
GOTO THE05SKIP
TSTLT T1 680
CALLSUB HEAT_ON
TSTGT T1 690
CALLSUB HEAT_OFF
THE05SKIP:
RET
You don't have to test for 0:0:1, since that will include all time from 0:0:0
without TSTLR CR 0:0:1 and next line GOTO THE05SKIP and the THE05SKIP: label.
In your
THERM0817:
TSTLT CT 0:0:0
GOTO TH817SKIP
TSTLT T1 690
CALLSUB HEAT_ON
TSTGT T1 700
CALLSUB HEAT_OFF
TH817SKIP:
RET
I think you mean "TSTLT CT 8:0:0"
And in your
THERM1723:
TSTLT CT 17:0:0
GOTO THE58SKIP
TSTLT T1 710
CALLSUB HEAT_ON
TSTGT T1 720
CALLSUB HEAT_OFF
THE58SKIP:
RET
The goto label and label itself should probably THE2359SKIP, instead of reuse THE58SKIP.
Please note labels are global, even in subroutines.