Hi all
Does anyone know how to read the system time from rasbian to use in CoDeSys?
The Raspberry is set up for ntp, and i would like to use that for a project where i need actual time and date without the need to readjust the clock after a power off.
Probably there is already a function somewhere and i just have not found it
Helpful could also be the possibility to run a pyton/php (or any other language) script on rasbian by codesys code and read in the result...
Thanks for help, i work for years with codesys, but our controllers have RTC and we don't do the integration by our self
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
Does anyone know how to read the system time from rasbian to use in CoDeSys?
The Raspberry is set up for ntp, and i would like to use that for a project where i need actual time and date without the need to readjust the clock after a power off.
Probably there is already a function somewhere and i just have not found it
Helpful could also be the possibility to run a pyton/php (or any other language) script on rasbian by codesys code and read in the result...
Thanks for help, i work for years with codesys, but our controllers have RTC and we don't do the integration by our self
Hi,
use attached example,
The projectarchive is using the calendar from the oscat libraries too!
BR
Edwin
TimerExample.project [148.72 KiB] (forum.codesys.com)
Hi Edwin
Big thanks for the fast help and the working solution, perfect!
Cheers
impius