Unitary | Pre-APOGEE | APOGEE | BACnet | PXC.A |
---|---|---|---|---|
● | ● | ● | ● | ● |
Syntax
TIME
Use
This resident point maintains the current time and stores the value in military time.
The TIME value can contain a value from 0:00 to 23:59. The following examples show how TIME stores values follows:
7:15 a.m. = 7:15
7:30 p.m. = 19:30
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.
502 C
510 IF(TIME.GE.6:45.AND.TIME.LE.17:30)THEN ON(SFAN)ELSE OFF(SFAN)
Notes
The time is updated every second. TIME cannot be used to assign a value to a virtual point since its value is not in a standard decimal form. CRTIME should be used for this purpose. TIME can be used in PPCL for comparison in the IF/THEN/ELSE statement.