F_Bool_To_BinPV : E_BACNETBINARYPV

F_Bool_To_BinPV : E_BACNETBINARYPV 1:

Application

Function for implementing a value with data type BOOL of the PLC in the process data value of a BACnet binary* object / property Present_Value. This function can be used to write BACnet binary* objects, for example, which are only linked to a BACnet object via a primitive PLC variable (e.g.

bBV0 AT%Q* : E_BACnetBinaryPV; (* ~(BACnet_ObjectType : BV : NOLINK)(BACnet_ObjectIdentifier : 0 : NOLINK)(BACnet_PresentValue_Priority12 : : LINK) *)

).

 

The following table shows the logic:

bEnable

bNull

bBool

 

Return value

FALSE

-

-

NOTHING

TRUE

TRUE

-

NULL

TRUE

FALSE

FALSE

INACTIVE

TRUE

FALSE

TRUE

ACTIVE

 

VAR_INPUT

bEnable  : BOOL;
bNull    : BOOL;
bBool    : BOOL;

 

bEnable: TRUE = The process data is enabled; the value resulting from bNull or bValue is written to the corresponding BACnet object, FALSE = process data is disabled

bNull: TRUE = zero writing of the BACnet object (e.g. for deleting a priority), FALSE = write value from bValue

bBool: Value that is written to the BACnet object, if bEnable = TRUE and bNull = FALSE.

 

Return value: Function result of type E_BACNETBINARYPV.