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—Order of Precedence
Siemens Building Technologies, Inc. 1-45
Table 1-5. Order of Precedence for PPCL Operators.
Precedence
Level
Command Syntax
1 (Highest) Parentheses (expression or value)
2 Alarm priority
ALMPRI(pt1)
Arc-tangent
ATN(value1)
Complement
COM(value1)
Cosine
COS(value1)
Natural antilog
EXP(value1)
Natural log
LOG(value1)
Sine
SIN(value1)
Square root
SQRT(value1)
Tangent
TAN(value1)
Totalized value
TOTAL(pt1)
3 Root
(value1.ROOT.value2)
4 Multiplication value1 * value2
Division value1 / value2
5 Addition value1 + value2
Subtraction value1 - value2
6 Equal to
.EQ.
Not equal to
.NE.
Greater than
.GT.
Greater than or equal to
.GE.
Less than
.LT.
Less than or equal to
.LE.
7 And
.AND.
Not and
.NAND.
8 (Lowest) Or
.OR.
Exclusive Or
.XOR.
APOGEE PPCL User’s Manual
1-46 Siemens Building Technologies, Inc.
Resident Points
Resident points provide time-based and system status information.
These points are used to determine the time, date, month, and day
of the month, or to monitor alarms, modes of operation (DAY or
NIGHT), and communication between nodes.
• The value of a resident point can be tested or assigned to other
points.
• Resident points are predefined and maintained by the device.
Since each device maintains its own set of resident points, a
resident point cannot be used across the network.
NOTE: Do not use resident points in TABLE commands.
PPCL supports the following resident points:
• Alarm count (ALMCNT)
• Alarm count 2 (ALMCT2)
• Battery status ($BATT)
• Decimal time (CRTIME)
• Day (DAY)
• Day of the month (DAYOFM)
• Communications link (LINK)
• Month (MONTH)
• Node number (NODE0 through NODE99)
• Peak Demand Limiting point ($PDL)
• Seconds counter (SECNDS)
• Seconds counters (SECND1 through SECND7)
• Military time (TIME)
Each resident point is described in more detail on the following
pages.