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-47
Alarm count (ALMCNT)
Unitary pre-APOGEE APOGEE BACnet
Syntax
ALMCNT
Use
The value of ALMCNT represents the number of points within a field
panel or unitary controller that are currently in the ALARM state.
When a point enters the ALARM state, the computer adds one (1) to
the value of ALMCNT. When a point returns to the NORMAL state,
the computer subtracts one (1) from the value of ALMCNT.
Example
340 IF (ALMCNT.GT.0) THEN ON(ALARM7)
Notes
• A point must be defined as alarmable in order to be counted
when that point enters the ALARM state.
• In all revisions of field panel firmware, the ALMCNT and ALMCT2
counters work the same with enhanced alarms as they do with
regular alarms.
• The level of alarm does not affect ALMCNT and ALMCT2. In
other words, the counters do not increment again when an
enhanced alarm point changes from one alarm level to another.
• If a point is disabled (*PDSB*) or operator disabled (*ODSB*),
ALMCNT will still increment and decrement accordingly.
See also
ALMCT2, ENALM, DISALM
APOGEE PPCL User’s Manual
1-48 Siemens Building Technologies, Inc.
Alarm count 2 (ALMCT2)
Unitary pre-APOGEE APOGEE BACnet
Syntax
ALMCT2
Use
This resident point is similar to the ALMCNT point. ALMCT2
specifies if the second alarm counter should be incremented when a
point enters the ALARM state.
When a point enters the ALARM state, the computer adds one (1) to
both the value of ALMCNT and ALMCT2. When a point returns to
the NORMAL state, the computer subtracts one (1) from both values.
Example
300 C IF THE SECOND LEVEL ALARM COUNTER BECOMES
310 C GREATER THAN 5, COMMAND ON ALARM8
320 C
330 IF (ALMCT2.GT.5) THEN ON(ALARM8)
Notes
• A point must be defined as alarmable and enabled for ALMCT2 in
order to be counted when that point enters the ALARM state.*
• In all revisions of field panel firmware, the ALMCNT and ALMCT2
counters work the same with enhanced alarms as with regular
alarms.
• The level of alarm does not affect ALMCNT and ALMCT2. In
other words, these counters do not increment again when an
enhanced alarm point changes from one alarm level to another.
*For pre-APOGEE, ALMCT2 can only be used with digital points.
See also
ALMCNT, ENALM, DISALM