Unitary

Pre-APOGEE

APOGEE

BACnet

PXC.A

Syntax

WAIT(time,pt1,pt2,mode)

NOTE:
Valid mode values are described in the table following the parameter descriptions.

time

Time delay in seconds.

- This parameter can be entered an integer (1 to 32,767), a point name, or a local variable.

pt1

Point name of a digital trigger point.

- This parameter can be a LDI, LDO, L2SL, L2SP, LOOAL, or LOOAP point.

- Local variables can also be used.

pt2

Point name of digital point to be commanded.

- This parameter can be an LDI, LDO, L2SL, L2SP, LOOAL, or LOOAP point.

- Local variables can also be used.

mode

Defines the value to which pt2 should be commanded based on the value of pt1.

- Valid values are 11, 10, 01, and 00.

Valid WAIT Modes.

Mode

Trigger Point (pt1) Action

After Wait (time) Seconds

11

Turns ON

pt2 turns ON

10

Turns ON

pt2 turns OFF

01

Turns OFF

pt2 turns ON

00

Turns OFF

pt2 turns OFF

Use

The WAIT command turns a point ON or OFF based on the trigger point switching ON or OFF. Selection of trigger/result action is based on the mode you enter.

Example

70  C  WHEN CNPUMP IS TURNED ON,

72  C  THE FIELD PANEL WAITS 60 SECONDS

74  C  BEFORE TURNING CHPUMP ON.

75  WAIT(60,CNPUMP,CHPUMP,11)

76  ON(CNPUMP)

Notes

  • The position of the WAIT statement in a program affects its operation. The WAIT statement only works if it sees a change of value (COV) through both states for the trigger point.
  • On a return from power failure or when the WAIT command is enabled, the trigger point must be toggled before the command executes regardless of the current state of either pt1 or pt2.
  • The command to pt2 is only issued once during the normal operation of the program until triggered again.