RTCLK.SetDateAndTime (FB prefix: sdt)

This function block of the CAA_RealTimeClock.library sets the realtime clock of the target system.

Input:

xExecute

BOOL

A rising edge starts the execution

see: “CAA 指南”

dtDateAndTime

DATE_AND_TIME

Time to be set

Output:

xDone

BOOL

Execution terminated successfully

see: “CAA 指南”

xBusy

BOOL

Module active 

see: “CAA 指南”

xError

BOOL

Error occurred

see: “CAA 指南”

eError

RTCLK.ERROR

Error ID for diagnosis

(see RTCLK.ERROR)