Without setting RAM1 or VAR1 1 after sending an email the board keeps on sending emails (more or less one every two seconds) as long as IP5 is high.rossw said:Can you tell me what the bits indicated in green are for??
The way the original code was submitted, you couldn't actually reach the "turnon" routine unless it had done an off-to-on transition and stayed on for at least 5 mins (or whatever), so the extra code to make sure it hadn't sent the email (tsteq ram1 0) is unnecessary, as is setting ram1 (because you turn op1 off, so it will not execute the same code again until it has had another transition), which renders the "turnoff" clearing of ram1 unnecessary too!
(I'm using a VAR now because I can check this through the GUI)
If IP5 stays high after 5min the board sends another mail but this is ok.