SYNC plc RTC with GPS clock

Hi, I would be happy to hear any ideas of how I could syncronize (manually triggered), a PLC RTC with an external GPS clock. I am using schneider electric PLCs and I have tried in the past to syncronize RTC with a GNSS device of ocean controls (Electronics & Automation Engineering T/A Ocean Controls > Gateways > GNSS Modbus Gateway) via modbus RTU communication. The problem was that due to delay between triggering the request and getting the reply, the time was never correct. I have to note that I am looking for accurancy of at least 1/10 of second.
 
Maybe this will help you:
Hi thanks for the info, that could be a solution, but I forgot to mention that we are talking about a mobile application, with no internet on board.
In fact for this application I am using the HMISCU8A5 (HMI-PLC combination) and it is installed in rallying cars. (www.regularitymaster.com)
Rally official timing is based on GPS clock, so it's important that instruments used by the crew to be syncronized as well with GPS time.
For the moment they are doing so manually, with a more or less good accurancy, but the main issue is that during the day, RTC drifts, so they need to re-adjust now and then.
 
If you dive into the details and algorithms of the Network Time Protocol (NTP; RFC-5905), you might find a way to do this that even takes into account the transmission delay.

It does not need internet, but I assume there is a local connection between the Ocean Controls GNSS device and the PLC to pass Modbus protocol.
 
Welcome to the PLCTalk forum community !

I have done a similar system with a GPS receiver that transmitted unsolicited NMEA-0183 sentences over RS-232. But it also had a discrete 1/sec output that went True at the start of the NMEA sentence, so I was able to capture that timestamp and adjust the PLC logic to accommodate for the time between the discrete input and when the serial sentence had been received, parsed, and was ready to be applied to the system clock. I was able to get that to be accurate to within a few milliseconds, using an old platform Rockwell SLC-500.

That Schneider Magelis device uses "EcoStruxure Machine Expert", which is largely based on CoDeSys, correct ?

I agree that a GPS device that provides SNTP or any other network time protocol, or one with Modbus+discrete sync signal, are your two best approaches.
 

Similar Topics

I currently have a site with roughly 7 servers and maybe 40 or so Allen Bradley PLCS Ranging from SLCs to brand new CLX. I need to get everything...
0
Replies
224
Views
Does anyone know what the AB Time Sync PLC is? I would like to install this on a master computer to time sync to the PLCs. Thanks guys.
12
Replies
1,355
Views
Hi everyone I am using Contrologix (Allen Bradley) as a slave and Honeywell as the Master. So i am stuck in how to perform time sync between both...
2
Replies
1,388
Views
Hi, I have a multiple PLCs (AB) running multiple applications, inc Motion, on different VLANS, but connected via Stratix5700 (CGN) switches and...
15
Replies
5,042
Views
Hi All, How can I configure the PLC to be a "Synchronized Time Slave" ? When I enable Time sync, it sets the PLC as the master by default...
19
Replies
24,498
Views
Top