F_BinPV_XOR : E_BACNETBINARYPV

F_BinPV_XOR : E_BACNETBINARYPV 1:

Application

Function for logical linking of BACnet BinaryPV values. The following table shows the logic:

eBinPV1

eBinPV2

Return value

INACTIVE

INACTIVE

NOTHING

INACTIVE

ACTIVE

ACTIVE

INACTIVE

NULL

INACTIVE

INACTIVE

NOTHING

INACTIVE

 

ACTIVE

INACTIVE

ACTIVE

ACTIVE

ACTIVE

NOTHING

ACTIVE

NULL

ACTIVE

ACTIVE

NOTHING

ACTIVE

 

NULL

INACTIVE

INACTIVE

NULL

ACTIVE

ACTIVE

NULL

NULL

NOTHING

NULL

NOTHING

NULL

 

NOTHING

INACTIVE

INACTIVE

NOTHING

ACTIVE

ACTIVE

NOTHING

NULL

NULL

NOTHING

NOTHING

NOTHING

The basic rule: If only one of the two values is ACTIVE, the result is ACTIVE. If only one of the two values is INACTIVE and the other is not ACTIVE, the result is INACTIVE. If only 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