Unitary | Pre-APOGEE | APOGEE | BACnet | PXC.A |
---|---|---|---|---|
● | ● | ● |
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
00 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)