FB_BA_BV_Op

FB_BA_BV_Op 1:

The function block FB_BA_BV_Op represents a binary value object.
It is used to display or input a binary value.

If the input variable bValuePgm 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 binary value.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

Illustration

FUNCTION_BLOCK FB_BA_AV_Op EXTENDS FB_BA_Object IMPLEMENTS I_BA_AnalogOpObject, I_BA_AnyValue
VAR_INPUT
  bValuePgm        : BOOL;
END_VAR
VAR_OUTPUT
  bPresentValue    : BOOL;
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 := E_BA_ProcessSignalSource.Invalid;
{endregion}
END_VAR

FB_BA_BV_Op 2: Inputs

Name

Type

Description

bValuePgm

BOOL

Value of a binary object for the "Program" priority.

FB_BA_BV_Op 3: Outputs

Name

Type

Description

bPresentValue

BOOL

Current binary output value of the object.

FB_BA_BV_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