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—Resident Points
Siemens Building Technologies, Inc. 1-49
Battery condition ($BATT)
Unitary pre-APOGEE APOGEE BACnet
Syntax
$BATT
Use
This resident point is used with field panels that can monitor the
strength of their backup battery. Either a numeric value or the
backup battery status indicators indicate the current status of
$BATT.
$BATT numeric values are 0, 50, or 100.
• A $BATT value of 0 indicates the battery has discharged and
must be replaced.
• A $BATT value of 50 indicates the battery is about to discharge
and should be replaced to prevent any loss of data.
• A $BATT value of 100 indicates the battery does not need to be
replaced.
$BATT status indicators are LOW, DEAD, or OK.
• If $BATT status is LOW or DEAD, then the battery has
discharged and must be replaced.
• If $BATT status is OK, then the battery does not need to be
replaced.
Example 1
200 IF ($BATT.EQ.0) THEN ALARM(P26BAT)
Example 2
210 IF ($BATT.EQ.DEAD) THEN ALARM(P26BAT)
See also
LOW, DEAD, OK
APOGEE PPCL User’s Manual
1-50 Siemens Building Technologies, Inc.
Decimal time (CRTIME)
Unitary pre-APOGEE APOGEE BACnet
Syntax
CRTIME
Use
This resident point maintains the current time and stores the value in
a decimal format. The following examples show how CRTIME stores
values:
7:15 a.m. = 7.25
7:30 p.m. = 19.50
The values for this point can range from 0.00 to 23.999721.
Example
500 C
501 C THIS CODE DEFINES A TIME PERIOD
502 C FROM 6:45 A.M. TO 5:30 P.M. FOR
503 C SFAN TO OPERATE.
504 C
510 IF (CRTIME.GE.6.75.AND.CRTIME.LE.17.50)
THEN ON(SFAN)ELSE OFF(SFAN)
CRTIME can also be used to assign the current value of time to a
virtual LAO type point which allows you to read the current time on a
graphic, point log, etc. For example:
100 VTIME = CRTIME
Notes
CRTIME is updated every second.