FB_BA_BaseAO

FB_BA_BaseAO 1:

The function block FB_BA_BaseAO represents the object of an analog output.
It is the base of all analog outputs.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_EventObject

                FB_BA_EventObjectEx

                    FB_BA_ComEventObject

Illustration

FUNCTION_BLOCK ABSTRACT FB_BA_BaseAO EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_AnalogOutObject, I_BA_AnyValue
VAR_INPUT
  bEnSfty              : BOOL;
  fValSfty             : REAL;
  bEnCrit              : BOOL;
  fValCrit             : REAL;
  bEnManLoc            : BOOL;
  fValManLoc           : REAL;
  bEnPgm               : BOOL;
  fValPgm              : REAL;
END_VAR
VAR_OUTPUT
  fPresentValue        : REAL;
  eActivePrio          : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    fResolution        : REAL := BA_Param.fOutput_DefResolution;
    fScaleOffset       : REAL := BA_Param.fOutput_DefScaleOffset;
    fDefaultValue      : REAL;
    bEnOutOfService    : BOOL;
    eUnit              : E_BA_Unit := E_BA_Unit.Invalid;
    fCOVIncrement      : REAL := BA_Param.fDefCOVIncrement;
    stLowLimit         : ST_BA_LimitParam;
    stHighLimit        : ST_BA_LimitParam;
    fLimitDeadband     : REAL := BA_Param.fDefLimitDeadband;
  {endregion}
  {region 'Operational Parameters'}
    bEnManualRm        : BOOL;
    fValManualRm       : REAL;
  {endregion}
END_VAR

FB_BA_BaseAO 2: Inputs

Name

Type

Description

bEnSfty

BOOL

Enabling the "Safety" priority.

fValSfty

REAL

Analog value for the "Safety" priority.

bEnCrit

BOOL

Enabling the "Critical" priority.

fValCrit

REAL

Analog value for the "Critical" priority.

bEnManLoc

BOOL

Enabling the "Manual Local" priority.

fValManLoc

REAL

Analog value for the "Manual Local" priority.

bEnPgm

BOOL

Enabling the "Program" priority.

fValPgm

REAL

Analog value for the "Program" priority.

FB_BA_BaseAO 3: Outputs

Name

Type

Description

fPresentValue

REAL

Current analog output value of the object.

eActivePrio

E_BA_Priority

Active priority

FB_BA_BaseAO 4: Inputs CONSTANT PERSISTENT

Name

Type

Description

fResolution

REAL

Resolution of an analog signal for scaling a measured value.

fScaleOffset

REAL

Scaling offset

fDefaultValue

REAL

Value that is assumed if all 16 priorities of the Priority_Array of a commandable object have no entry or are NULL.

bEnOutOfService

BOOL

This variable sets an object out of service. It is thus OutOfService.

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.

stLowLimit

ST_BA_LimitParam

Parameterization of the lower limit value monitoring of an analog object.

The variable bEnable must be TRUE to enable limit value monitoring.

The variable fValue is used to parameterize the lower limit value.

stHighLimit

ST_BA_LimitParam

Parameterization of the upper limit value monitoring of an analog object.

The variable bEnable must be TRUE to enable limit value monitoring.

The variable fValue is used to parameterize the upper limit value.

fLimitDeadband

REAL

Dead band or hysteresis for the values HighLimit and LowLimit of the limit value monitoring of an analog object.

bEnManualRm

BOOL

Enabling the "Manual Remote" priority.

fValManualRm

REAL

Analog value for the "Manual Remote" priority.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0