FB_BACnet_AnalogOutput_EX

FB_BACnet_AnalogOutput_EX 1:

Application

The function block FB_BACnet_AnalogOutput can be used for read access with priority 12 to the property Present_Value and for write access to a BACnet object of type AnalogOutput (AO).

VAR_INPUT

bEnablePV        : BOOL;
bNullPV          : BOOL;
fPV              : REAL;

bEnablePV: TRUE = write enable of the property value; FALSE = do not change the entry in the BACnet object (bNullPV and fPV have no effect).

bNullPV: TRUE = delete the property entry (NULL); instead of the value of fPV; FALSE = write value of fPV as property value.

fPV: Value to be written to the property Present_Value, if bEnablePV = TRUE and bNullPV = FALSE. The process data are written when there is a change.

VAR_OUPUT

bReady                   : BOOL;
fPresentValue            : REAL;
bOverridden              : BOOL;
bOutOfService            : BOOL;
bFault                   : BOOL;
bInAlarm                 : BOOL;
bNoOutput                : BOOL;
bOpenLoop                : BOOL;
bShortedLoop             : BOOL;
bOtherFault              : BOOL;
eEventState              : E_BACNETEVENTSTATE;
bAckedTrans_ToOffNormal  : BOOL;
bAckedTrans_ToFault      : BOOL;
bAckedTrans_ToNormal     : BOOL;
nActivePrio              : UINT;
tObjectID                : T_BACnet_ObjectIdentifier:=16#FFFFFFFF;
bError                   : BOOL;
nErrorId                 : UINT;

bReady: Notification of general readiness. If this output is set, the other status outputs are valid (PresentValue, Overridden ...). If the output is FALSE, the corresponding function block FB_BACnet_Device does not report "Operational", or the block instance was not linked correctly in the TwinCAT System Manager.

fPresentValue: Current value of the BACnet object (see also BACnet specification DIN EN ISO 16484-5 for BACnet object AnalogOutput and property Present_Value).

bOverridden, bOutOfService, bFault, bInAlarm: See BACnet specification DIN EN ISO 16484-5 for BACnet object AnalogOutput and property Status_Flags.

bNoOutput, bOpenLoop, bShortedLoop, bOtherFault: See BACnet specification DIN EN ISO 16484-5 for BACnet object AnalogOutput and property Reliability.

eEventState: See BACnet specification DIN EN ISO 16484-5 for BACnet object AnalogOutput and property Event_State.

bAckedTrans_ToOffNormal, bAckedTrans_ToFault, bAckedTrans_ToNormal: Flags of property Acked_Transitions (see BACnet specification DIN EN ISO 16484-5 for BACnet object AnalogOutput and property Acked_Transitions).

nActivePrio: Indicates the currently active priority of the priority array, which acts on the Present_Value (see also BACnet specification DIN EN ISO 16484-5 for BACnet object AnalogOutput and property Present_Value).

tObjectID: Object ID of the BACnet object (object type and object instance).

bError: An error is pending.

nErrorId: see global constants (BACnet_Globals).

VAR_IN_OUT

Device               : FB_BACnet_Device;

Device: Specification of the instance of the local corresponding BACnet server block. For each BACnet adapter one BACnet server is possible. See FB_BACnet_Adapter and FB_BACnet_Device for further information.