User manual

IEC61131 User and Reference Manual
April 22, 2008
270
getclock
Get current date and time
Description
The getclock function block returns the controller real time clock information.
getclock
minute
hour
second
month
year
day
weekday
Arguments
Inputs This function block has no inputs.
Outputs
Type
Description
Hour
Integer
Real time clock hour, 0 to 23.
Minute
Integer
Real time clock minute, 0 to 59.
Second
Integer
Real time clock second, 0 to 59.
Year
Integer
Real time clock year, 00 to 99.
Month
Integer
Real time clock month, 1 to 12.
Day
Integer
Real time clock day, 1 to 31.
Weekday
Integer
Real time clock day of week, 1 to 7.
1 = Sunday, 2 = Monday…7 = Saturday.