F_BACnet_AnalogPV : REAL
Application
Function for implementing a REAL value of the PLC in the process data value of a BACnet analog* object property Present_Value. Using this function, it is possible to write BACnet analog* objects, for example, which are only linked to a BACnet object via a primitive PLC variable (e.g.
rAV0 AT%Q* : REAL; (* ~(BACnet_ObjectType : AV : NOLINK)(BACnet_ObjectIdentifier : 0 : NOLINK)(BACnet_PresentValue_Priority12 : : LINK) *)
).
VAR_INPUT
bEnable : BOOL;
bNull : BOOL;
rValue : REAL;
bEnable: TRUE = The process data is enabled; the value resulting from bNull or rValue 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 rValue
rValue: Value that is written to the BACnet object, if bEnable = TRUE and bNull = FALSE.