I’m trying to sync the date and time between 2 CPU.
CPU can be 1583, 1585, 1684, connection via PLK or ETH.
I went with the CfgSetSntpClient function in the AsARCfg Library to set up the client and I think NTP might be the way to go.
Server IP: 192.168.12.5
Client IP: 192.168.12.8
The watch window of CfgSetSntpClient shows
syncStatus = 1
i_state = changes between 0 and 1 about every second.
Disable and enable of CfgSetSntpClient hasn’t shown a change in the time of the Client.
Thank you Tommi for the fast reply.
I set the “Stratum” value to 2, and the synchronization worked!
But if the server time changes manually, the client won’t update.
The article you mentioned says that NTP sync can take up to 17 minutes to start from the client. So I waited about 25 minutes for that to happen but nothing changed.
Do you have any recommendations to trigger the sync process?
Disabling and re-enabling CfgSetSntpClient doesn’t trigger the process either.