Chapter 8 Logic Instructions
8-49
FB/FC
FB
Sys_ReadTime reads the time of the real-time clock of the controller.
Sys_ReadTime
Enable Done
Sys_ReadTime_instance
Year
Month
Day
Week
Hour
Second
Minute
Input Parameter
Parameter name Function Data type
Validation timing
Enable
executed when Enable
changes from FALSE to
BOOL
TRUE or FALSE
(FALSE)
When Enable is
TRUE.
Output Parameters
Function Data type Valid range
Done
TRUE when the instruction execution is
completed.
BOOL TRUE/FALSE
Year Year UINT 1970~2106
Month Month UINT 1~12
Day Day UINT 1~ 31
Week Week UINT 1~7
Hour Hour UINT 0~23
Minute Minute UINT 0~59
Second Second UINT 0~59
Function Explanation
Sys_ReadTime reads the time of the real-time clock of the controller. When Enable is TRUE, the real-
time clock information in the controller such as year, month, day, week, hour, minute and second will be
read in the specified variables.