Just be aware that if you do the modification to the program as listed above it will "lock-up" the plc program in an endless loop (until you fix the temp sensor). This isn't a problem if the only thing the plc code is doing is controlling your heater. But, if you add other tasks, they may stop working as well, depending on how you write them in. If the temp sensor fails, the only lines of code that will get run are the ones between SKIP_HEATR: branch and the GOTO SKIP_HEATR line.
Hello Lou and thank you for the information.
As I am running additional programs besides the heater, the code suggested by Cai is appears correct as far as I can tell from your explanation and if the temp sensor was to fail the only code was to run (hopefully correctly) would be the one I've marked below in red, anything else is related to the heater and would be skipped, right?
START
TSTLT CT 5:0:0
CALLSUB THERMO05
TSTLT CT 8:0:0
CALLSUB THERM58
TSTLT CT 17:0:0
CALLSUB THERM0817
TSTLT CT 23:59:59
CALLSUB THERM1723
SKIP_HEATR:
TSTEQ TS1 0
SET OP2 0
TSTEQ OP2 1
CALLSUB MAILON
TSTEQ OP2 0
CALLSUB MAILOFF
TSTEQ OP1[1000] 1
SET OP1 0
TSTGT IP1 0 EM1
NOP
TSTEQ TS1 0
goto SKIP_HEATR
END