Simple time delay E-Mail

I don't know what these other guys are talking about. Your RAM1 = CH flag is fine.  And your GOTO/CALLSUB combination is fine because there is still only 1 RET per CALLSUB.
 
I don't know what these other guys are talking about. Your RAM1 = CH flag is fine. And your GOTO/CALLSUB combination is fine because there is still only 1 RET per CALLSUB.

Yup. AZ is correct. We have been so caught up in educating the noobie about efficient usage of flags and basic internal workings of the ZERO BIT  the original questions were forgotten about!
 
Thanks AZ for the kick-in-the-pants!!
 
 
The RAM1 will work as the flag, being discussed, and the code looks fine, to me also, for an every hour repeating  event.  It would seem the OP has a handle on using flags. 
Apologies for the sidetrack and confusion.
 
The problem with the program is that it will keep sending email for that whole period of time, instead of sending one per hour.   That might  not be intended.
 
The problem with the program is that it will keep sending email for that whole period of time, instead of sending one per hour. That might not be intended.

Read again.
If a send happens, then also SET RAM1 == CH.  Next loop through they are equal and TSTNE is FALSE so does it  not send it again.
 
It was pretty ingenious, just not economical.
 
TY all very much!
The PLC is actually a pretty ingenious tool!
I have had the code running all day yesterday and it does send once per hour.
Now I will have to read up on how to mkae the data log into a file, preferably database. i have a tad Access experience, will look into that.
Great forum!
 
Rainer
 
Thanks Tom!
 
Can you give some detail of what this logger does? Where does it run? iOS? Win? WC8? Android?
I see no description on the website.
 
LarrylLix said:
Can you give some detail of what this logger does? Where does it run? iOS? Win? WC8? Android?
Larry,
 
It runs on Windows systems. I've downloaded it to play with it a little but have not yet used it seriously. It is one of the many items  on my To-Do list. :mellow: 
 
LarsK is one of the regular posters on this forum.  You can try searching previous posts.
 
/tom
 
Back
Top