CLOCK (FB)
FUNCTION_BLOCK CLOCK
This function block allows to set and display the current time and date. 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
HOUR_SETBYTE0
Set input for hours
MIN_SETBYTE0
Set input for minutes
SEC_SETBYTE0
Set input for seconds
YEAR_SETWORD0
Set input for years
MON_SETBYTE0
Set input for months
DAY_SETBYTE0
Set input for days
Output
ERRBOOLFALSE
Error identifier
HOUR_ACTBYTE0
Output hours
MIN_ACTBYTE0
Output minutes
SEC_ACTBYTE0
Output seconds
YEAR_ACTWORD1970
Output years
MON_ACTBYTE1
Output months
DAY_ACTBYTE1
Output days
W_DAY_ACTBYTE4
Output weekday no.