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—Logical Operators
Siemens Building Technologies, Inc. 1-19
Not And (.NAND.)
Unitary pre-APOGEE APOGEE BACnet
2.4 and later
Syntax
if (cond1.NAND.cond2) then...
cond1,
cond2
Defines a condition that is the result of a comparison
between two values.
Use
• Used to compare two logical conditions.
• If both conditions are true, then the result of the .NAND.
statement is false.
• A single statement can incorporate a combined total of 16
relational and logical operators.
Example
100 IF (LDO1.EQ.ON.NAND.LDO2.EQ.ON) THEN ON(LDO3)
ELSE OFF(LDO3)
LDO1 State LDO2 State LDO3 State NAND Result
OFF OFF ON TRUE
OFF ON ON TRUE
ON OFF ON TRUE
ON ON OFF FALSE
Notes
For APOGEE Firmware Revision 2.3 and earlier, AND statements
should be used instead of NAND. In this case, the above example
would be written as:
100 IF (LDO1.EQ.ON.AND.LDO2.EQ.ON) THEN OFF(LDO3)
ELSE ON(LDO3)
APOGEE PPCL User’s Manual
1-20 Siemens Building Technologies, Inc.
Or (.OR.)
Unitary pre-APOGEE APOGEE BACnet
Syntax
if (cond1.OR.cond2) then...
cond1,
cond2
Defines a condition that is the result of a comparison
between two values.
Use
• Used to compare two logical conditions.
• If at least one of the conditions is true, the result of the statement
is true.
• A single statement can incorporate a combined total of 16
relational and logical operators.
See Table 1-2 for a comparison of conditions used with the .OR.
logical operator:
Table 1-2. Truth Table for .OR. Logical Operator.
Condition 1 False Condition 1 True
Condition 2 False
Result is False Result is True
Condition 2 True
Result is True Result is True
Example
200 IF (TIME.LT.5:00.OR.TIME.GT.17:00) THEN ON(LIGHTS)