Isagraf C Function Blocks - OEM BL2500 User Manual

Embedded plc z-world single board computer
Table of Contents

Advertisement

PLC BL2500 User's Manual
EMBEDDED
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
yy
mm
dd
hh
minute
ss
DOFWEEK
result
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.
OEM Technology Solutions
If Sel = 2, Q output format is the day of the week
Trigger
yy
mm
dd
hh
minute
ss
dOfWeek
BOO
if Rising edge, sets the time and date of the BL2500
INT
Year (1900 - 2050)
INT
Month (1 - 12)
INT
Day of month (1 -31)
INT
Hour (0 - 23)
INT
Minute (0 - 59)
INT
Second (0 - 59)
INT
Day of the week (0 - 6, 0 means Sunday)
BOO
1 if operation was successful; 0 otherwise
set_time
result
Software Reference
Page 46

Advertisement

Table of Contents
loading

Table of Contents