CAI_Support
Senior Member
I don't see how that email being sent because you have two goto loop in the main routine:
START
set ram1 0
set ram2 0
loop:
callsub resetrams
delay 1000
tstle t3 800
callsub send_em1
delay 1000
goto loop <<---- first goto loop
tstge t5 1050
callsub send_em2
delay 1000
goto loop <<-----second goto loop
Is that possible you thought em1 was actually em2? To avoid confusion, during debugging, put EM1, EM2, etc to the either subject line or begingin of the email body.
In this section of code. you have
tstle t3 800
callsub send_em1
which is when T3 is less than 80.0 degree you will send email. I thought you want to tstgt t3 800
Also in your
resetrams:
tstle t3 790
set ram1 0
tstle t5 1048
set ram2 0
ret
You reset the t5 at 104.8 degree, that is very close to 105 degree. You may consider to have bigger range than just 0.2 degree.
But I don't see how did your get EM2 to send, since your first "goto loop" already jumpped to the begining of the code.
START
set ram1 0
set ram2 0
loop:
callsub resetrams
delay 1000
tstle t3 800
callsub send_em1
delay 1000
goto loop <<---- first goto loop
tstge t5 1050
callsub send_em2
delay 1000
goto loop <<-----second goto loop
Is that possible you thought em1 was actually em2? To avoid confusion, during debugging, put EM1, EM2, etc to the either subject line or begingin of the email body.
In this section of code. you have
tstle t3 800
callsub send_em1
which is when T3 is less than 80.0 degree you will send email. I thought you want to tstgt t3 800
Also in your
resetrams:
tstle t3 790
set ram1 0
tstle t5 1048
set ram2 0
ret
You reset the t5 at 104.8 degree, that is very close to 105 degree. You may consider to have bigger range than just 0.2 degree.
But I don't see how did your get EM2 to send, since your first "goto loop" already jumpped to the begining of the code.