FB_BA_BaseMO

FB_BA_BaseMO 1:

The function block FB_BA_BaseMO represents a multi-level output.

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_BaseMO EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_MultistateOutObject, I_BA_AnyValue
VAR_INPUT
  bEnSfty                   : BOOL;
  nValSfty                  : UDINT := 1;
  bEnCrit                   : BOOL;
  nValCrit                  : UDINT := 1;
  bEnManLoc                 : BOOL;
  nValManLoc                : UDINT := 1;
  bEnPgm                    : BOOL;
  nValPgm                   : UDINT := 1;
END_VAR
VAR_OUTPUT
  nPresentValue             : UDINT := 1;
  eActivePrio               : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    eMappingMode            : E_BA_ByteMappingMode := E_BA_ByteMappingMode.eIndex1N;
    eFeedbackMappingMode    : E_BA_ByteMappingMode := E_BA_ByteMappingMode.eIndex1N;
    nDefaultValue           : UDINT := 1;
    bEnOutOfService         : BOOL;
  {endregion}
  {region 'Fixed Parameters'}
    aStateText              : T_BA_StateTextArray;
  {endregion}
  {region 'Operational Parameters'}
    bEnManualRm             : BOOL;
    nValManualRm            : UDINT := 1;
  {endregion}
END_VAR
VAR
  {region 'Output-Properties'}
    nStateCount             : UDINT;
  {endregion}
END_VAR

FB_BA_BaseMO 2: Inputs

Name

Type

Description

bEnSfty

BOOL

Enabling the "Safety" priority.

nValSfty

UDINT

Analog value for the "Safety" priority.

nValCrit

UDINT

Analog value for the "Critical" priority.

bEnCrit

BOOL

Enabling the "Critical" priority.

bEnManLoc

BOOL

Enabling the "Manual Local" priority.

nValManLoc

UDINT

Analog value for the "Manual Local" priority.

bEnPgm

BOOL

Enabling the "Program" priority.

nValPgm

UDINT

Analog value for the "Program" priority.

FB_BA_BaseMO 3: Outputs

Name

Type

Description

nPresentValue

UDINT

Analog output value.

eActivePrio

E_BA_Priority

Active priority

FB_BA_BaseMO 4: Inputs CONSTANT PERSISTENT

Name

Type

Description

eMappingMode

E_BA_ByteMappingMode

Mode for configuring the terminal link.

eFeedbackMappingMode

E_BA_ByteMappingMode

Structure for mapping the feedback inputs.

nDefaultValue

UDINT

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.

aStateText

T_BA_StateTextArray

The array is used to declare the state texts of a multi-state object.

bEnManualRm

BOOL

Enabling the "Manual Remote" priority.

nValManualRm

UDINT

Variable for writing a value to the "Manual Remote" priority.

VAR

Name

Type

Description

nStateCount

UDINT

Number of states of a multi-state object.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0