Wednesday, March 30, 2011

Time synchronization PLC, PC with NTP protocol

 His name is also a standard protocol, must have felt was more than ordinary aja eg
It is possible to synchronize with international servers are scattered in cyberspace. So who got more accurate time. From the client side either a PC or PLC is very simple configurations. Servers can be made redundant, so if one server is automatically ko'it NTP client will move to a backup server.
Wow interesting also yes, then how to do?
Okay, let's start with the hardware first. First of all ignore the first connection to the internet, let alone the PC and the PLC's time we will only be synchronized with the local computer in one network only. Since there is no connection to the internet, then inevitably we have to build their own server time (which we call the next NTP Server) at least one in a network. Next we need a client PC and a PLC that will we sinkrosisasi time to NTP server. About his physical description as below:. 



1. Make NTP Server Now a PC with IP 192.168.105.21 was functioning as NTP servers, PCs can be built on Unix OS or Windows-base-base. This tutorial explains the steps how to make a PC with Windows XP as a NTP Server.
2. PC Synchronization with NTP Servers For those who use Windows XP and higher who is very easy. Live double-click the time icon in the tray icon -> open the Internet Time tab and enter the name or address of the NTP server as below: 
3. PLC Synchronization with NTP Servers Toekang yg pake PLC is Siemens S7-400 with CP 443-1 (Ethernet), to another PLC please find yourself a mouthful PLC is already support NTP protocol ..:) For the S7 PLC, the programming must ngak some touched, for purposes of synchronization via NTP that needs to be done is some setting in the hardware configuration. The first open configuration of CP-443 (CP-343 For those who could use S7-300), then open the tab 'Time-of-Day Synchronization' fill in the address of the NTP server as below: 

We can set the synchronization interval time between every 10 seconds to 24 hours (86,400 seconds) once.
Next, open its properties CPU, open the tab 'Diagnostics / Clock' set Clock Synchronization In the PLC as Slave as below: 


Then download this configuration change to the PLC.
If the configuration went smoothly, then the PLC will always update to the NTP server as below: 


How? easy right?

2 comments:

  1. Awesome post!
    Thanks for your sharing.
    For additional information, if you need Syncronize Genset for anything likes event, meeting, exhibition, etc.
    You can always try to contact us Arthur Teknik.

    If you at Indonesia, you can find more information about us here : http://id.arthurteknik.com/

    ReplyDelete