Home
Help
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 22, 2012, 02:58:42 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Host Engineering Forum
>
General Category
>
DirectSOFT
>
ecom100 email
Pages: [
1
]
« previous
next »
Print
Author
Topic: ecom100 email (Read 619 times)
rubberboy
Newbie
Posts: 9
ecom100 email
«
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
Re: ecom100 email
«
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
There are only 10 kinds of people in this world: those who know binary, and those who don't
rubberboy
Newbie
Posts: 9
Re: ecom100 email
«
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
Re: ecom100 email
«
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
There are only 10 kinds of people in this world: those who know binary, and those who don't
rubberboy
Newbie
Posts: 9
Re: ecom100 email
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> MX Technology Preview
=> General Discussion
=> CTRIO
=> DirectSOFT
=> DNLoader
=> DSData
=> EBCs and EBC100s
=> ECOMs and ECOM100s
=> EDRV
=> ERM
=> Ethernet SDK
=> MB-GATEWAY
=> NetEdit
=> Profibus
=> WinPLC
Loading...