To read the clock of a NTP server from the application controller, use the R_NTPC function in the fast main task or interruption.
The R_NTPC function is available for M340, M580, Premium and Quantum PLCs. It is used to recover the date and time for an NTP server in two formats:
- A display format.
- A calculation format.
NOTE: This function requires connection to an Ethernet network enabling access to an NTP server.