User Guide

Table Of Contents
Program Methodology—Logical Operators
Siemens Building Technologies, Inc. 1-21
Exclusive Or (.XOR.)
Unitary pre-APOGEE APOGEE BACnet
Syntax
if (cond1.XOR.cond2) then...
cond1,
cond2
Defines a condition that is the result of a comparison
between two values.
Use
Used to compare two logical conditions.
If cond1 is true and cond2 is false, the result of the statement is
true. If cond1 is false and cond2 is true, this statement is also
true.
A single statement can incorporate a combined total of 16
relational and logical operators.
See Table 1-3 for a comparison of conditions used with the .XOR.
logical operator:
Table 1-3. Truth Table for .XOR. Logical Operator.
Condition 1 False Condition 1 True
Condition 2 False
Result is False Result is True
Condition 2 True
Result is True Result is False
Example
200 IF (PMP1.EQ.ON.XOR.PMP2.EQ.ON) THEN NORMAL(PMPALM)
APOGEE PPCL User’s Manual
1-22 Siemens Building Technologies, Inc.
Arithmetic Operators
Arithmetic operators are mathematic functions that are performed on
two or more numbers (operands). When used in PPCL, the result of
a calculation is determined and assigned to a point name or local
variable for future reference. For information on the order in which
arithmetic operators are evaluated, see the Order of Precedence
section in this chapter.
NOTE: A maximum of 15 arithmetic operators can be used in
one PPCL program line.
PPCL supports the following arithmetic operators:
Addition (+)
Assignment (=)
Division (/)
Multiplication (*)
Subtraction (-)
Each arithmetic operator is described in more detail on the following
pages.