FB_BA_BaseAI

FB_BA_BaseAI 1:

The function block FB_BA_BaseAI is the base of all analog input objects.

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_BaseAI EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_AnalogInObject, I_BA_AnyValue
VAR_OUTPUT
  fPresentValue        : REAL;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    fResolution        : REAL := BA_Param.fInput_DefResolution;
    fScaleOffset       : REAL := BA_Param.fInput_DefScaleOffset;
    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}
END_VAR

FB_BA_BaseAI 2: Outputs

Name

Type

Description

fPresentValue

REAL

Current analog output value of the object.

FB_BA_BaseAI 3: Inputs CONSTANT PERSISTENT

Name

Type

Description

fResolution

REAL

Resolution of an analog signal for scaling a measured value.

fScaleOffset

REAL

Scaling offset

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.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0