WC and server time/date sync

All the internet protocols use UTC internally, like browser, Unix server, same also WC, its internal clock runs on UTC.  timezone and  DST is only for human interfaces.  We could add another function allowing PLC program set internal clock by something like
SET   CTS    VARx/RAMy
Currently CTS can only being referenced.  To avoid 32 bit signed number running out digit, CTS is actually UTS minus a constant number, so that extend the 32 bit signed number not expire at year 2038.
Would that save your trouble for sync clock with your server?   You still need to verify the WSRLY is valid value before set  CTS, Current Total Seconds.
If you have any other suggestion to make it work better, we always listen.
 
Hi, that's really customer service- it would work also the other way round for me, have a getWCTime.cgi so the server may sync time with the WC,
So plse feel free discussing the best suited solution with your customers. Since minutes and seconds are from a time server, one could set hours and date to keep 32bit?
Regarding my decrypting duty a potential operator able to draw roots would be nice....
 
cheers
 
PLC can WEBSET to send CTS to the server, CTS is UTC minus a constant.  If your Unix server running NTP services, you can configure the WC to have UTP server IP address points to your server, then you board will every half hour or so sync clock with your server.  Then you don't need WEBSET to get clock.
 
NTP server setting is in the network tab.
 
CAI_Support said:
PLC can WEBSET to send CTS to the server,
 
indeed, I only run out of notification variables ;-)
So I have to bundle those variables when transmitting, this may introduce errors...
 
Efried said:
Many thanks for explaining. The accuracy is not the problem right now, just the DST changing one hour and breaking the encryption/decryption in the WC to Server communication.
If I may alter the WC time through the WC code (PLC) myself, then I could sync the DST between WC and server, if any. Unfortunately this would eat up another notification variable for WEBSET.
 
It need not. I have a single webset which sends and receives over 30 different (bi-directional) command/response sets.
Multiplexing a function and data into a 32-bit number is easy and means you have virtually unlimited options.
 
rossw said:
It need not. I have a single webset which sends and receives over 30 different (bi-directional) command/response sets.
Multiplexing a function and data into a 32-bit number is easy and means you have virtually unlimited options.
 
yeah of course this is possible. But do you encrypt data transmitted or send it in plain text? Even if we make no errors in our code, as long as you assume that bitwise and algebraic operations behave identical on the WC and on the server, everything is in best order but that is certainly not the case in all cases. In order to avoid errors in our code more support is needed from an development environment, so far we even don't have a documentation possibility. plse see
http://cocoontech.com/forums/topic/26073-statistical-software-test/
 
Back
Top