RTCLK.GetDateAndTime (FB prefix: gdt)
This function of the CAA_RealTimeClock.library polls the realtime clock of the target system. When the module execution starts, the output "dtDateAndTime“ is reset to dt#1970-01-01-00:00:00. After successful execution it contains the current system time.
xExecute |
BOOL |
A rising edge starts the execution see: CAA Guidelines |
dtDateAndTime |
DATE_AND_TIME |
Current date and time |
eTimeZone |
RTCLK.PERIODE |
Current time zone |
xDone |
BOOL |
Execution terminated successfully see: CAA Guidelines |
xBusy |
BOOL |
module active see: CAA Guidelines |
xError |
BOOL |
Error occurred see: CAA Guidelines |
eError |
RTCLK.ERROR |
Error ID for diagnosis (see RTCLK.ERROR) |