Tov 1 Area
Tov 1 Area
// Written: 4/17/97
// Modified:
// Properties Read:
// Properties Modified:
// Routine Summary:
/// This routine monitors the timed override request from all the
/// vav boxes in an area and controls the area's {Present Value} to
/// occupied for a user-edited amout of time. It also monitors all the
/// timed override cancel requests and releases the area from TOV if
/// there is a cancel request.
// We recommend that this cpl object, the Area object and all the
// VAV objects reside in the same BCU. If possible, do not put this
// cpl object in one BCU to control Areas in another BCU.
// This routine is currently written for the VAV II/III UCM. Other
// UCMs also recognize the TOV (and cancel) signal, but their property
// names may not be exactly the same. This routine should work
// very well for other UCMs as long as the correct properties are used.
DEFINT
On = 1, // Enumeration for On
Up = 1, // Enumeration for Up
Occupied = 2, // Enumeration for Occupied
Unoccupied = 0, // Enumeration for Unoccupied
Remaining_Time, // time remaining in the override
TOV_Flag, // Status of TOV condition
i, // FOR Loop counter
Cancel_Flag, // Status of TOV cancel condition
Override_Time, // Length of time area will be overridden
DEFOBJ
Area, // the Area object to be overridden
VAV[Group_Size] // the array of VAV objects in the Area
// Important! Use the Add Object selection under the Edit menu
// to select the correct objects.
// Assign the Area object. This routine will control this Area to
// occupied mode if a timed override request is received from any
// of its VAV boxes.
Area = {1st Floor Area}
// Assign the array of VAV Objects. An override signal from any VAV
// box in this array will override the Area into the occupied mode for
// Override_Time minutes.
VAV[1] = {VAV Box -01-067}
VAV[2] = {VAV Box -01-068}
VAV[3] = {VAV Box -01-069}
VAV[4] = {VAV Box -01-070}
VAV[5] = {VAV Box -01-071}
// Initialize Variables:
IF (TOV_Flag = 1) THEN
IF ((Remaining_Time = 0) or (Cancel_Flag = 1)) THEN
TOV_Flag = 0
Cancel_Flag = 0
Remaining_Time = 0
CONTROL (Area, {Present Value}, Unoccupied, 14, RELEASE)
ELSE
IF (Remaining_Time = Override_Time) THEN
CONTROL (Area, {Present Value}, Occupied, 14, SET)
END IF
Remaining_Time = Remaining_Time - 1
END IF
END IF