Is there a way to set the RTC clock in the program?
Currently my only way to change the RTC clock is through the Device's PLC shell command.
I've tried calling SysTimeRtcSet() and pass in the EPOC value but it doesn't change the RTC clock.
I don't know if some other library exists that makes this easier if it's possible. Appreciate any help.
https://forge.codesys.com/prj/codesys-example/date-and-time/home/Home/
Which PLC are you using? Some vendors manage their own RTC and have specific ways of setting the clock.
Ok yeah thanks. That makes sense now, being that some things are vendor specific.
Log in to post a comment.
Is there a way to set the RTC clock in the program?
Currently my only way to change the RTC clock is through the Device's PLC shell command.
I've tried calling SysTimeRtcSet() and pass in the EPOC value but it doesn't change the RTC clock.
I don't know if some other library exists that makes this easier if it's possible.
Appreciate any help.
https://forge.codesys.com/prj/codesys-example/date-and-time/home/Home/
Which PLC are you using? Some vendors manage their own RTC and have specific ways of setting the clock.
Ok yeah thanks. That makes sense now, being that some things are vendor specific.