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-79
ONPWRT (On after power return)
Unitary pre-APOGEE APOGEE BACnet
Syntax
ONPWRT(line#)
line#
Line number at which execution begins in the control
program after returning from power failure.
• Line numbers must be entered as integers ranging
from 1 to 32767.
• If the line number is invalid, this command is
ignored.
Use
This command is similar to a GOTO command and allows you to
select the first program line that is executed when power has
returned. The ONPWRT command is only executed once and is then
ignored as long as power stays ON.
Example
10 ONPWRT(1800)
Notes
• The ONPWRT command should be the first command in a PPCL
program since program execution returns to the first line of a
PPCL program after a power failure.
• If the database for a field panel is lost due to a power failure, the
ONPWRT command is not executed when power is restored.
APOGEE PPCL User’s Manual
3-80 Siemens Building Technologies, Inc.
PDL (Peak demand limiting)
Unitary pre-APOGEE APOGEE BACnet
Syntax
PDL(area,totkw,target,g1s,g1e,sh1,...,g4s,g4e,sh4)
area
Meter area number.
• Enter this number as an integer.
totkw
Total amount of power consumed by the loads that are
controlled by the PDL command.
• The same virtual LAO point must be used for both
the PDL totkw parameter and the kwtot parameter in
the owning PDLDPG command. The value of this
parameter is calculated by the PDL command.
A power-consuming load is controlled by a PDL command if
the following criteria are met:
• The power-consuming load is defined in a PDLDAT
command that is associated with a PDL command.
• The load is currently in NONE or PDL priority.
• The PDL command is traced and is enabled.
• The PDLDPG command is enabled.
• The PDLDAT command is enabled.
target
Power consumption limit that is maintained by the PDL
command.
• The same virtual LAO point must be used for both
the PDL target parameter and the target parameter in
the corresponding PDLDPG command. The value of
this parameter is calculated by the PDLDPG
command.
g1s
Start line for the group 1 load definition in the corresponding
PDLDAT commands. This is the first group to shed when
demand exceeds the setpoint.
g1e
End line for the group 1 load definition.
sh1
Shedding sequence for group 1.
• Valid values are 0 and 1.
0 = Fixed shedding
1 = Round robin shedding