Unitary | Pre-APOGEE | APOGEE | BACnet | PXC.A |
---|---|---|---|---|
● | ● | ● | ● | ● |
Syntax
CRTIME
Use
This resident point maintains the current time and stores the value in a decimal format. The following examples show how CRTIME stores values:
7:15 a.m. = 7.25
7:30 p.m. = 19.50
The values for this point can range from 0.00 to 23.999721.
Example
500 C
501 C THIS CODE DEFINES A TIME PERIOD
502 C FROM 6:45 A.M. TO 5:30 P.M. FOR
503 C SFAN TO OPERATE.
504 C
510 IF (CRTIME.GE.6.75.AND.CRTIME.LE.17.50) THEN ON(SFAN)ELSE OFF(SFAN)
CRTIME can also be used to assign the current value of time to a virtual LAO type point which allows you to read the current time on a graphic, point log, etc. For example:
100 VTIME = CRTIME
Notes
CRTIME is updated every second.
It is not recommended to check for exact time as the time of execution could create inconsistent results.