Re: [foxboro] AW51B time synchronization to Windows box

These may be silly questions (and probably already answered...), but what
will happen if I just use a date command from the the AW51 station? will it
adjust the time only for the AW and not the entire network?. My original
idea was to use rdate, but after reading  the answers in the list, I found
that I could enable the daytime service on the Win machine so I was tempted
to use the following script:

#!/bin/sh
remDayTime=`telnet IP_Address_Windows_Box daytime | grep ':'`
HH=`echo $remDayTime | awk '{printf $1}' | cut -d: -f1 | awk
'{printf("%02d\n",$1); }'`
MM=`echo $remDayTime | awk '{printf $1}' | cut -d: -f2 | awk
'{printf("%02d\n",$1); }'`
SS=`echo $remDayTime | awk '{printf $1}' | cut -d: -f3 | awk
'{printf("%02d\n",$1); }'`
dd=`echo $remDayTime | awk '{printf $2}' | cut -d'/' -f1 | awk
'{printf("%02d\n",$1); }'`
mm=`echo $remDayTime | awk '{printf $2}' | cut -d'/' -f2 | awk
'{printf("%02d\n",$1); }'`
newDate="$mm""$dd""$HH""$MM"".""$SS"
date $newDate

I have tested it on a different Solaris machine and it runs fine, but
document B0193JC prevent users from doing this on the IA, and mentions that
the network will not be synchronized.




-----Mensaje original-----
De: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]En
nombre de William C. Ricker
Enviado el: viernes, 17 de septiembre de 2004 16:01
Para: foxboro@xxxxxxxxxxxxx
Asunto: Re: [foxboro] AW51B time synchronization to Windows box


If you have C programming ability, there is an
IA time change program on the Cassandra site. Program
"set_mtk" is available for download.  Various of us IA
grunts have built time sync functions around that.

My own version used a telnet call to get the time from
a windows box, then adjusted the IA clock accordingly.
I havent had to worry about the existance of a historian
anyplace I used it; changing time with a historian
running imposes special considerations.

Also, some versions of FoxView have a problem with time changes
forward.  Mine was set up to only do minor adjustments to the
clock.  Bigger changes requires an operator.  That way we didn't
run afoul of FoxXiew.

Anyway, it is there, and it works.  Good luck.

Regards,
William C. Ricker
FeedForward, Inc.
Marietta, GA, USA
wcricker@xxxxxxxxxxxxxxx
770-426-4422




_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html

foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave



 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: