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
Siemens Building Technologies, Inc. I
Table of Contents
How to Use This Manual.......................................................................VII
Introduction.......................................................................................VII
Manual Organization .......................................................................VIII
Manual Conventions..........................................................................IX
Syntax Page Example ........................................................................X
Compatibility bar .........................................................................XI
Syntax ........................................................................................XII
Use.............................................................................................XII
Notes (if applicable) ..................................................................XIII
See also (if applicable)..............................................................XIII
Where To Send Comments.............................................................XIII
Chapter 1–Program Methodology ......................................................1-1
Overview..........................................................................................1-1
Introduction to PPCL .......................................................................1-3
PPCL Rules .....................................................................................1-4
General PPCL Rules.................................................................1-4
Defining Points in a PPCL Program..........................................1-6
Rules for Naming Points ...........................................................1-6
Rules for Naming a PPCL Program..........................................1-7
PPCL Program Design Guidelines..................................................1-8
Designing a Program that is Easy to Maintain..........................1-8
Designing a Program that Operates Efficiently.........................1-9
Relational Operators......................................................................1-10
Equal to (.EQ.) .......................................................................1-11
Greater than or equal to (.GE.) ...............................................1-12
Greater than (.GT.)..................................................................1-13
Less than or equal to (.LE.).....................................................1-14
Less than (.LT.).......................................................................1-15
Not equal to (.NE.) ..................................................................1-16
Logical Operators ..........................................................................1-17
And (.AND.).............................................................................1-18
Not And (.NAND.)....................................................................1-19
Or (.OR.) .................................................................................1-20
Exclusive Or (.XOR.)...............................................................1-21
Arithmetic Operators......................................................................1-22
Addition ...................................................................................1-23
Assignment .............................................................................1-24
Division....................................................................................1-25
APOGEE PPCL User’s Manual
II Siemens Building Technologies, Inc.
Multiplication ...........................................................................1-26
Subtraction..............................................................................1-27
Arithmetic Functions......................................................................1-28
Arc-Tangent (ATN)..................................................................1-29
Complement (COM)................................................................1-30
Cosine (COS)..........................................................................1-31
Natural Antilog (EXP)..............................................................1-32
Natural Log (LOG)...................................................................1-33
Root (.ROOT.).........................................................................1-34
Sine (SIN)................................................................................1-35
Square Root (SQRT)...............................................................1-36
Tangent (TAN) ........................................................................1-37
Special Functions ..........................................................................1-38
Alarm priority (ALMPRI) ..........................................................1-39
Totalized value (TOTAL).........................................................1-41
Order of Precedence .....................................................................1-42
Changing Precedence Levels with Parentheses....................1-43
Resident Points..............................................................................1-46
Alarm count (ALMCNT)...........................................................1-47
Alarm count 2 (ALMCT2) ........................................................1-48
Battery condition ($BATT).......................................................1-49
Decimal time (CRTIME) ..........................................................1-50
Day (DAY) ...............................................................................1-51
Day of the month (DAYOFM)..................................................1-52
Communications link (LINK) ...................................................1-53
Month (MONTH)......................................................................1-54
Node number (NODE0 through NODE99)..............................1-55
PDL monitor ($PDL)................................................................1-56
Seconds counter (SECNDS)...................................................1-57
Seconds counters (SECND1 through SECND7) ....................1-58
Military time (TIME).................................................................1-59
Local Variables ..............................................................................1-60
$ARG1 through $ARG15 ........................................................1-61
$LOC1 through $LOC15.........................................................1-63
Point Priority Overview ..................................................................1-64
APOGEE and pre-APOGEE Point Priority Levels ..................1-64
BACnet Priority Array..............................................................1-66
At (@) Priority Status Indicators ....................................................1-68
Testing Point Priorities ............................................................1-68
Commanding Points to a Specific Priority...............................1-68
Pre-APOGEE Firmware ..........................................................1-69
At (@) Priority Status Indicators Supported............................1-71
Emergency (@EMER) ............................................................1-72