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
Command Syntax
Siemens Building Technologies, Inc. 3-93
Example 2
120 RELEAS(@SMOKE, PT1, PT2, PT3)
In this example, all three points will be released to NONE priority if
they currently have a priority of SMOKE, EMER, or PDL. If any point
is in OPER priority, it will not be released.
Notes
• With APOGEE and pre-APOGEE firmware, always use a priority
at least as high as the one that the point will be in to ensure
proper release. If the point has been commanded from the
keyboard, it will require an @OPER entry to release the priority of
the point to NONE.
• With BACnet firmware, the RELEAS(@prior, pt1,…,pt15)
command releases the BACnet slot which is mapped to the
stated APOGEE priority, but it may not release all the way to
NONE priority. The BACnet Command Priority levels must be
emptied to allow lower priority levels to control the point.
The standard BACnet Priority Array rules control the @prior
release process as follows:
— If a value exists in a higher priority slot than the slot mapped
to @prior, the value is not released.
— If the slot mapped to @prior is the highest slot, the value is
released. The new value is determined by the presence, in
order from higher to lower priority levels, of values in the
slots below.
— If no values exist in the lower priority slots, the relinquished
default value is used.
APOGEE PPCL User’s Manual
3-94 Siemens Building Technologies, Inc.
RETURN (Return/end subroutine)
Unitary pre-APOGEE APOGEE BACnet
Syntax
RETURN
Use
Marks the end of a subroutine.
RETURN must be the last command of any GOSUB subroutine.
When a RETURN command is encountered, the program returns to
the line following the GOSUB command
Example
100 GOSUB 310
110 ...
120 ...
130 ...
290 ...GO TO 350
300 C THIS SUBROUTINE PERFORMS...
310 ...
320 ...
330 ...
340 RETURN
350 CONTINUE WITH REST OF PROGRAM
See also
GOSUB, GOTO