FB_BA_AV_Op

FB_BA_AV_Op 1:

The function block represents an analog Value object. It is used to display or enter an analog value.

If the input variable fValuePgm is linked, then the function block automatically recognizes that it is used to display the connected value. In the other case, it is used to enter a setpoint, for example.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

Syntax

FUNCTION_BLOCK FB_BA_AV_Op EXTENDS FB_BA_Object IMPLEMENTS I_BA_AnalogOpObject, I_BA_AnyValue
VAR_INPUT
  fValuePgm          : REAL;
END_VAR
VAR_OUTPUT
  fPresentValue      : REAL;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    eUnit            : E_BA_Unit := E_BA_Unit.Invalid;
    fCOVIncrement    : REAL := BA_Param.fDefCOVIncrement;
  {endregion}
  {region 'Operational Parameters'}
    fValueRm         : REAL;
  {endregion}
END_VAR
VAR
  {region 'Interface'}
    eValueSource     : E_BA_ProcessSignalSource;
  {endregion}
END_VAR

FB_BA_AV_Op 2: Inputs

Name

Type

Description

fValuePgm

Real

Output values of the analog object for the "Program" priority.

FB_BA_AV_Op 3: Outputs

Name

Type

Description

fPresentValue

REAL

Current analog output value of the object.

FB_BA_AV_Op 4: Inputs CONSTANT PERSISTENT

Name

Type

Description

eUnit

E_BA_Unit

Unit of the input or output value of an analog object.

fCOVIncrement

REAL

The variable specifies the minimum change in present value that will cause a COV notification to be issued to subscribed COV clients. This property is required if COV reporting is supported by this object.

fValueRm

REAL

Variable for overwriting an analog object from the HMI.

VAR

Name

Type

Description

eValueSource

E_BA_ProcessSignalSource

The variable indicates whether an object of the type FB_BA_..._OP serves as a display or input object.

eVarInput = 1 The object is used to display a value. The value is passed to the object at an input within the PLC.

eParameter = 2 The object is used to enter a parameter that can be changed by a BACnet client or the TwinCAT HMI.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0