FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
01-06-2022 01:15 PM - edited 01-06-2022 01:26 PM
How can we set the system time of the ctrlX CORE out of a PLC program?
I've tried the SysTimeRtcSet function block (SysTimeRtc library) but this returns "ERR_NO_ACCESS_RIGHTS".
Thank you in advance.
Solved! Go to Solution.
02-14-2022 01:23 PM - edited 02-14-2022 01:24 PM
Actually the only way of setting the system time is via the REST API:
PUT https://<IP of control>/system/api/v1/time/settings
{"ntpServers":[],"timestamp":"2022-02-14T12:22:26","timeSynchronization":false}
03-18-2022 11:08 AM
Is there a plan to have a possobility to set the time via a PLC Programm with an PLC Function Block?
03-25-2022 09:00 AM
Hello Maurus,
currently there's no plan. But you can create a customer issue as requirement.
kind regards
03-29-2022 05:00 PM
Is it possible to issue the put command from the PLC application?
03-30-2022 10:26 AM
If you have a PLC library that can use SSL encryption you can. You need to get a Token then from the authentication server and use this to send the request. Just like you do it with the REST API outside of the PLC.