How Accurate Is my PC Clock? As Windows w32time (NTP Client) knows this, zenon and zenon Logic can know it too.
This zenon demo project contains a zenon Logic program and checks the synchronization of the Windows PC clock with an external time source, such as an NTP server on the intranet or public extranet that broadcasts a time signal (e.g., from a GPS receiver). The resulting zenon variables (from the stratonNG driver) are updated with information from the NTP packets, such as the local time offset - in (milli)seconds, indicating how far the PC clock is ahead of or behind the GPS time; or information about a time signal loss.
How it works:
Windows built-in service - w32time - synchronizes the PC clock. It is an NTP client that is enabled by default and runs in the background. This Windows service does not provide an API, but when configured appropriately (via regedit), w32time can generate a regularly updated log file on your hard drive. The zenon Logic is programmed to analyze the log updates - yields values for zenon variables.
In general, zenon gets information that a Windows user can see by running the command (cmd) w32tm /query /status /verbose, but without having to manually use the Command Prompt (or PowerShell).