TimeRead
Last updated
TimeRead (FB)FUNCTION_BLOCK TimeRead
Reading the current date and the current time. Variant 1: Reading as since the start | Attention - always place only one TimeRead block per project. Also only one variant!

xEN
BOOL
Enable / disable time reading
datDateAndTime
DATE_AND_TIME
Current date and current time
todTime
DATE
Current time
dtDate
DATE
Current date
stTimeZoneInformation
DTU.RTCLK.TIME_ZONE_INfO
DTU.gc_tziTimeZoneCET;
Time zone (default: CET)
This function block is used to read the current date and current time. The time zone is set via the data type TIME_ZONE_INFO.
InOut:
Output
datDateAndTime
DT
Output
todTime
TOD
Output
dtDate
DATE
Output
xIsLeapYear
BOOL
Last updated

