I'm not using the latest firmware, so it's possible this is old news. I'm running v03.02.17f.
I'm using the bits in RAM82 to signify if a notification email needs to be sent -- one bit for each email. I'm doing the same with RAM83 for the WEBSETs. I then have a subroutine that turns on my router, sets a timer, does the EMAIL and/or WEBSET, and clears out RAM8H.
CNZ RAM8H WEBNOTIFY
Seems like it should work, but it seemed like WEBSETs were only happening when emails were being sent (when RAM82 != 0). I copied RAM8H into VAR2 where I could see it. I can see that a couple bits in RAM83 get set, but they just stay set, and no WEBSET happens (I didn't wait for an email to be requested).
I changed the above line to this:
TSTNE RAM8H 0
CALLSUB WEBNOTIFY
Now it works as I wanted it to. WEBSETs and EMAILs go out, and RAM8H (visible in VAR2) never stays at a non-0 value long enough for me to see it.
So should I be able to use CNZ with the upper 16 bits of a RAM location or was that not intended to work?
Thanks,
-Ben
I'm using the bits in RAM82 to signify if a notification email needs to be sent -- one bit for each email. I'm doing the same with RAM83 for the WEBSETs. I then have a subroutine that turns on my router, sets a timer, does the EMAIL and/or WEBSET, and clears out RAM8H.
CNZ RAM8H WEBNOTIFY
Seems like it should work, but it seemed like WEBSETs were only happening when emails were being sent (when RAM82 != 0). I copied RAM8H into VAR2 where I could see it. I can see that a couple bits in RAM83 get set, but they just stay set, and no WEBSET happens (I didn't wait for an email to be requested).
I changed the above line to this:
TSTNE RAM8H 0
CALLSUB WEBNOTIFY
Now it works as I wanted it to. WEBSETs and EMAILs go out, and RAM8H (visible in VAR2) never stays at a non-0 value long enough for me to see it.
So should I be able to use CNZ with the upper 16 bits of a RAM location or was that not intended to work?
Thanks,
-Ben