DTU.SetDateAndTime (FB prefix: sdt)

提示!

If the time is within the not-unique interval shortly after the switch to standard (winter) time, standard time will be assumed. This case occurs in the Central European countries, if for example on the last Sunday of October the time is set at 2:30 a.m.. Here it is not clear, whether 2:30 a.m. is still summer time or already standard (winter) time. In this case the module assumes standard (winter) time.

Input:

xExecute

BOOL

A rising edge will start the action 

dtDateAndTime

DATE_AND_TIME

Current time

Output:

xDone

BOOL

Action terminated successfully

xBusy

BOOL

Module is active 

xError

BOOL

Error occurred

eError

WORD

Error ID for diagnosis (see DTU.ERROR)