Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 02:58:19 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: ecom100 email  (Read 619 times)
rubberboy
Newbie
*
Posts: 9


« 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
Logged
franji1
Bit Weenie
Host Moderator
*****
Posts: 1035



WWW
« Reply #1 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?
Logged

rubberboy
Newbie
*
Posts: 9


« Reply #2 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
Logged
franji1
Bit Weenie
Host Moderator
*****
Posts: 1035



WWW
« Reply #3 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
Logged

rubberboy
Newbie
*
Posts: 9


« Reply #4 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM