Hi, I am using APC 2200 and a TSN switch. Switch is the master and APC is slave. I have done time synchronization and it is showing succeeded in the logs. In watch window i can see, IsSync=TRUE, IsOffsetValid=TRUE and a very small offset value but still timestamps displayed for master and slave is different. other devices attached to the switch are showing correct timestamp but APC is still showing completely different time zone.
Please guide.
Regards
Hi,
I found the following information in the PTP help:
Only the synchronization of a PTP domain is currently supported. This allows the “working clock” to be synchronized, for example. The absolute value of this time is not related to the AR system time; instead, it corresponds to a globally valid, strictly monotonically increasing time in the network (like NetTime in POWERLINK, for example). The AR system time, which can be displayed in Automation Studio or in logbook entries is not set by PTP synchronization and also advances with a different understanding of time (e.g. based on the real-time hardware clock or NTP server).
So if you want to synchronize the RTC (real time clock), for example you need setup NTP client additionally.
As I understood from here, for example the B&R TSN switch can also act as a NTP server (but I’m not sure which TSN switch you’re using). Of course, any other reachable NTP server could be used also.
Best regards.
Hi,
in addition to the statement above, you could also consider the function blocks provided in the FxClock library. It is part of the OPC UA FX technology package, and allows you to get the time value of the synchronized time.
Corresponding Automation Help pages.
Best regards.