F_BinPV_OR : E_BACNETBINARYPV
Application
Function for logical linking of BACnet BinaryPV values. The following table shows the logic:
eBinPV1 | eBinPV2 | Return value |
---|---|---|
INACTIVE | INACTIVE | INACTIVE |
INACTIVE | ACTIVE | ACTIVE |
INACTIVE | NULL | INACTIVE |
INACTIVE | NOTHING | INACTIVE |
| ||
ACTIVE | INACTIVE | ACTIVE |
ACTIVE | ACTIVE | ACTIVE |
ACTIVE | NULL | ACTIVE |
ACTIVE | NOTHING | ACTIVE |
| ||
NULL | INACTIVE | INACTIVE |
NULL | ACTIVE | ACTIVE |
NULL | NULL | NULL |
NULL | NOTHING | NULL |
| ||
NOTHING | INACTIVE | INACTIVE |
NOTHING | ACTIVE | ACTIVE |
NOTHING | NULL | NULL |
NOTHING | NOTHING | NOTHING |
The basic rule: If one of the two values is ACTIVE, the result is ACTIVE. If one of the two values is INACTIVE and the other is not ACTIVE, the result is INACTIVE. If one of the two values is NULL and the other is not ACTIVE and not INACTIVE, the result is NULL. Otherwise, the result is NOTHING.
VAR_INPUT
eBinPV1 : E_BACNETBINARYPV;
eBinPV2 : E_BACNETBINARYPV;
eBinPV1: Input value 1.
eBinPV2: Input value 2.
Return value: Function result of type E_BACNETBINARYPV