
EMBEDDED
PLC BL2500 User’s Manual
Software Reference
OEM Technology Solutions
Page 46
If Sel = 2, Q output format is the day of the week
Description:
Gives the time, date and the day of the week depending on the value of argument sel.
(* ST Equivalence *)
result := rd_time(sel);
Remarks:
Not available for simulation.
5.2.3 ISaGRAF C Function Blocks
5.2.3.1 SET_TIME
Arguments:
Trigger
BOO if Rising edge, sets the time and date of the BL2500
yy
INT
Year (1900 - 2050)
mm
INT
Month (1 - 12)
dd
INT
Day of month (1 -31)
hh
INT
Hour (0 - 23)
minute
INT
Minute (0 - 59)
ss
INT
Second (0 - 59)
DOFWEEK
INT
Day of the week (0 - 6, 0 means Sunday)
result
BOO 1 if operation was successful; 0 otherwise
Description:
Set the time and date of the BL2500 Real Time Clock.
(* ST Equivalence *)
result := set_time(trigg, yy, mm, dd, hh, minute, ss, dOfWeek);
Remarks:
Not available for simulation.
set_time
Trigger
yy
mm
dd
hh
minute
ss
dOfWeek result