Hello colleagues!
Please advise what could be causing the system time on the X20CP1686X PLC to reset after the power is turned off.
The date resets to 2022.03.03-01:00:00 after removing and restoring power to the PLC, even if it was set using Online->Info->Date/Time.
In SDM Battery status: OK.
Hi Pavel,
it is helpful to determine whether the set time is being overwritten with an incorrect value by another service.
There are three ways to set the controller time:
1: Setting the CPU time via Automation Studio or RUC
The controller time can be set from the AS via the Online => Info option. In this case, the info 2075 is displayed in the logger.
2: From the Application
The time can be set from the application using the function blocks DTSetTime, UtcDTSetTime, and UtcExDTSetTime. Typically used to give the machine operator the opportunity to set the time correctly via the visualization. Logger entries should also be made here.
3: Net Time Protocol NTP Client
In the controller configuration, the controller can be configured as an NTP client. The time is then obtained from an NTP server available on the network. Logger entries should also be made here for setting the CPU time, but also for inconsistencies related to the NTP client-server connection.
Is there a NTP Configuration done?
If there are no logger entries and there are increasing indications that the time set on the controller has not been overwritten externally with an invalid value, it would be interesting to determine whether the controller only loses the time during a power cycle or also during a warm restart using the AS without disconnecting the power supply. => Indication of a hardware problem.
If it’s possible to test the project configuration on a different hardware, I would also try that. B&R support would be happy to help.
Best regards Stefan
Hello Stefan!
Thank you for your reply.
NTP is disabled. I do not call any functions that work with system time in the program.
I did not encounter this problem on a similar physical configuration with the same project. I think yes, it is worth writing to technical support.