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-109
10 C SIX SAMPLES WILL BE TAKEN TO
20 C CALCULATE THE RMAVG.
30 C THE INTERVAL BETWEEN EACH SAMPLE
40 C WILL BE 10 MINUTES. RMTEMP WILL
50 C BE AVERAGED EVERY 60 MINUTES.
60 TIMAVG(RMAVG,600,6,RMTEMP)
Notes
On a return from power failure, after an ENABLE command, or
during the first execution of PPCL following a database load, the
TIMAVG command begins executing with one sample. The value of
the result will equal the current value of input.
APOGEE PPCL User’s Manual
3-110 Siemens Building Technologies, Inc.
TOD (Time of day, digital points)
Unitary pre-APOGEE APOGEE BACnet
Syntax
TOD(mode,recomd,time1,time2,pt1,...,pt12)
NOTE: Valid mode values are described in the table following the
parameter descriptions.
mode Mode number.
• Valid values are any combination of 1, 2, 4, 8, or 16.
• Mode numbers can be added together to create
customized schedules for the TOD program.
• Mode number 16 should only be used with the
HOLIDA command.
recomd Determines if the points defined will be commanded after a
return from a power failure (fail-safe position). Recomd (re-
command) is sometimes necessary for field panel
warmstarts.
• Valid values are 0 and 1.
0 = Does not re-command pt1 through pt12 on return
from power failure.
1 = Re-commands pt1 through pt12 on return from
power failure.
time1 Time at which an ON command is executed.
• This parameter can be a military time (7:30 p.m. =
19:30), a decimal time (7:30 p.m. = 19.50), a logical
point name, or a local variable.
time2 Time at which an OFF command is executed.
• This parameter can be a military time (7:30 p.m. =
19:30), a decimal time (7:30 p.m. = 19.50), a logical
point name, or a local variable.
pt1
through
pt12
Point names of digital output points that are commanded ON
or OFF.