Unitary

Pre-APOGEE

APOGEE

BACnet

PXC.A

Syntax

DEFINE(abbrev,string)

abbrev

Abbreviation used in other PPCL statements. Represents the string parameter

string

Actual text string that will be substituted where the abbreviation is used. The string text usually contains a significant portion of a long point name.

Use

Creates an abbreviated notation for a long point name. DEFINE allows program logic to be easily duplicated provided your facility uses a structured naming convention for point names.

A percentage sign (%) must be placed before and after the abbreviation when it is used in the program.

For PXC.A controllers, it is recommended to use GOTO (Go to line).

Example

10   DEFINE(AHU,”BUILDING1.AHU01.”)

20   ON(“%AHU%SFAN”)

If DEFINE is not used, this same line of code looks like the following:

20   ON(“BUILDING1.AHU01.SFAN”)

Notes

This statement is executed when added to the automation station and does not require enabling or execution in the normal program flow.

Abbreviation texts that begin with C will fail to compile.