User Guide
Table Of Contents
- Table of Contents
- How to Use This Manual
- Chapter 1–Program Methodology
- Overview
- Introduction to PPCL
- PPCL Rules
- PPCL Program Design Guidelines
- Relational Operators
- Logical Operators
- Arithmetic Operators
- Arithmetic Functions
- Special Functions
- Order of Precedence
- Resident Points
- Local Variables
- Point Priority Overview
- At (@) Priority Status Indicators
- Point Status Indicators
- Converting a Sequence of Operation intoProgram Code
- Chapter 2–Control OptionComparisons
- Chapter 3–Command Syntax
- Overview
- ACT (Activate lines)
- ADAPTM (Adaptive control, multiple)
- ADAPTS (Adaptive control, single)
- ALARM (Alarm state)
- AUTO (Auto status)
- DAY (Day mode)
- DBSWIT (Dead band switch)
- DC (Duty cycle)
- DCR (Duty cycle routine)
- DEACT (Deactivate lines)
- DEFINE (Define abbreviation)
- DISABL (Disable lines)
- DISALM (Disable alarm)
- DISCOV (Disable COV)
- DPHONE (Disable phone)
- EMAUTO (Emergency, Auto status)
- EMFAST (Emergency, Fast status)
- EMOFF (Emergency, Off status)
- EMON (Emergency, On status)
- EMSET (Emergency, set value)
- EMSLOW (Emergency, Slow status)
- ENABLE (Enable lines)
- ENALM (Enable alarm)
- ENCOV (Enable COV)
- EPHONE (Enable phone)
- FAST (Fast status)
- GOSUB (Go to subroutine)
- GOTO (Go to line)
- HLIMIT (High limit)
- HOLIDA (Holiday)
- IF/THEN and IF/THEN/ELSE (Conditional control)
- INITTO (Initialize totalized value)
- LLIMIT (Low limit)
- LOCAL (Local variable)
- LOOP (Loop control)
- MAX (Maximum value)
- MIN (Minimum value)
- NIGHT (Night mode)
- NORMAL (Normal operating mode)
- OFF (Off status)
- OIP (Operator interface program)
- ON (On status)
- ONPWRT (On after power return)
- PDL (Peak demand limiting)
- PDLDAT (PDL, define load attributes)
- PDLDPG (PDL, digital point group)
- PDLMTR (PDL, meter monitor)
- PDLSET (PDL, setpoints)
- RELEAS (Release)
- RETURN (Return/end subroutine)
- SAMPLE (Sample a statement)
- SET (Set point value)
- SLOW (Slow status)
- SSTO (Start/stop time optimization)
- SSTOCO (SSTO coefficients)
- STATE (State text command)
- TABLE (Table of coordinates)
- TIMAVG (Average over time)
- TOD (Time of day, digital points)
- TODMOD (TOD modes)
- TODSET (Time of day, analog points)
- WAIT (Wait time)
- Overview
- Glossary
- Appendix A—PPCL Reserved WordList
- Index
Program Methodology—Relational Operators
Siemens Building Technologies, Inc. 1-13
Greater than (.GT.)
Unitary pre-APOGEE APOGEE BACnet
Syntax
if (value1.GT.value2) then...
value1,
value2
These values are defined as analog or digital numbers,
local variables, or point names.
Use
Compares two values to determine if the first value (value1) is
greater than the second value (value2). The comparison is true if
value1 is greater than value2.
Example
250 C IF THE ROOM TEMP IS GREATER THAN
260 C 80, THEN SET THE SET POINT TO 70
270 C
280 IF (RMTEMP.GT.80.0) THEN RMSET = 70.0
APOGEE PPCL User’s Manual
1-14 Siemens Building Technologies, Inc.
Less than or equal to (.LE.)
Unitary pre-APOGEE APOGEE BACnet
Syntax
if (value1.LE.value2) then...
value1,
value2
These values are defined as analog or digital numbers,
local variables, or point names.
Use
Compares two values to determine if the first value (value1) is less
than or equal to the second value (value2). The comparison is true if
value1 is less than or equal to value2.
Example
300 C IF THE ROOM TEMP IS LESS THAN OR
310 C EQUAL TO 80, THEN SET THE SET POINT
320 C TO 70
330 C
340 IF (RMTEMP.LE.80.0) THEN RMSET = 70.0