FB_BACnet_Accumulator_R6
Application
The function block FB_BACnet_Accumulator_R6 can be used for reading and write access to a BACnet object of type Accumulator. Write access in this version (_R6) is the same as in the previous library version (Revision 6): The value of nPV is transferred directly into the property Present_Value.
VAR_INPUT
nPV : UDINT;
nPV: Value that is written directly to the Property Present_Value.
VAR_OUPUT
bReady : BOOL;
nPresentValue : UDINT;
bOverridden : BOOL;
bOutOfService : BOOL;
bFault : BOOL;
bInAlarm : BOOL;
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.
nPresentValue: Current value of the BACnet object (see also BACnet specification DIN EN ISO 16484-5 for BACnet object Accumulator and property Present_value).
bOverride, bOutOfService, bFault, bInAlarm: See BACnet specification DIN EN ISO 16484-5 for BACnet object Accumulator and property Status_Flags.
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.