clockGet (Functionblock) |
Top Previous Next |
This function block can be used to read the real time clock on the RTCU device.
Input: None
Output: year : INT (1980 .. 2048) The current year.
month : SINT (1 .. 12) The current month.
day : SINT (1 .. 31) The current date.
hour: SINT (0 .. 23) The current hour.
minute : SINT (0 .. 59) The current minute.
second : SINT (0 .. 59) The current second.
linsec : DINT Seconds since 1980-1-1 00:00:00.
Declaration: FUNCTION_BLOCK clockGet;
Example: INCLUDE rtcu.inc |