Host Engineering Forum

General Category => DirectSOFT => Topic started by: rubberboy on March 25, 2010, 06:33:59 PM

Title: ecom100 email
Post by: rubberboy on March 25, 2010, 06:33:59 PM
Hi, I am using a ecom100 to send an email to myself on a power outage... the problem is I set the values from v7770 to a v mem location and v7767 to another v memory location and in the body I have "Power on at: " v1612 ":" v1613

what i end up getting is Power on at: 262153:589889mins instead of 9:42 am

I even tried _date:us "and" _time:12  and ended up getting 00/00/00 00:00

Thanks in advance
Title: Re: ecom100 email
Post by: franji1 on March 26, 2010, 09:42:53 AM
I'm guessing the _date:us "and" _time:12 did not work because you have an 05, which does not have a built-in clock?  Is it an 05?
Title: Re: ecom100 email
Post by: rubberboy on March 26, 2010, 11:52:30 AM
I guess i should have said that I am using 405 450 cpu with an ecom100... sorry

Thanks
Title: Re: ecom100 email
Post by: franji1 on March 26, 2010, 12:08:00 PM
You may need to upgrade the firmware in the 450 to get its PRINT/EMAIL instructions to support the _date:us _time:12.  Does anybody know if the latest 450 PRINT supports those PRINT date/time commands?

The 450 did not originally support the _date:us _time:12 commands in their PRINT-type instructions, but I do not know if they ever added support for those PRINT sub-commands to the 450.

You could just format them manually, but you will get leading zeros, I believe.  Use the :BCD format modifier on your command (date/time values are in BCD, but print V locations defaults to binary/decimal format), i.e.

"Power on at: " V1612:BCD ":" V1613:BCD

but it won't look as good as
_date:us "and" _time:12
Title: Re: ecom100 email
Post by: rubberboy on March 30, 2010, 12:01:06 PM
Thanks for the help I used the :b and it works... its too bad the _time and _date doesnt work though