Programming Cai WebControl PLC

Old thread... Still needed though.
 
Is there a way to attach information to the email that is sent by the webcontrol board using PLC?
 
For example, how long OP1 was turned on.   How long a variable was not zero,  etc?  I know you can enter a fixed subject and text, but can that be changed on the fly?
 
Thanks!
 
Hi Frank,
Thanks for the asking. The answer is yes and no. Because email is event trigged, it will send all the VAR value in the email. You could calculate the OP1 turn on time and update one of the VAR to reflect how long OP1 was on. However, by default, it will not calculate that by itself.
 
Thank you for the help!
 
I wanted to get duration of the cycle to the nearest tenth of a minute.
 
I assigned CTS to VAR1 at the beginning of the cycle.  Then, at the end of the cycle, I subtracted the new CTS value from VAR1 to get seconds.
 
Then divided the result by 6 to get tenths of a minute and assigned that to VAR8.  When the email is sent, it shows the duration period in tenths of minutes under VAR8.  I believe that is best I can do.  No way to display a decimal number in the email. 
 
Thanks again,
 
Frank
 
Although VAR is integer, it can not stop you to times 10 before doing divide, so that you will get value that is 10 times of the original.
 
Back
Top