CLOCK_DT (FB)
FUNCTION_BLOCK CLOCK_DT
This function block allows to set and display the current time and date in DT format. For compatibility reason the block will look and behave like the V2 function block.
- InOut:
Scope
Name
Type
Initial
Comment
Input
ENBOOLFALSE
Enable block processing
SETBOOLFALSE
FALSE/TRUE edge sets the time and date
DT_SETDTDATE_AND_TIME#1970-1-1-0:0
Set input for date and time in DT format
Output
ERRBOOLFALSE
Error identifier
DT_ACTDTDATE_AND_TIME#1970-1-1-0:0
Actual date and time in DT format