FB_BA_SchedM

FB_BA_SchedM 1:

The function block FB_BA_SchedM represents a multi-state scheduler within the project structure of TF8040.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_BaseSched

Illustration

FUNCTION_BLOCK FB_BA_SchedM EXTENDS FB_BA_BaseSched IMPLEMENTS I_BA_SchedM
VAR_OUTPUT
  nPresentValue      : UDINT;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Fixed Parameters'}
    aStateText       : T_BA_StateTextArray;
    nDefaultValue    : UDINT := 1;
  {endregion}
END_VAR
VAR
  {region 'Output-Properties'}
    nStateCount      : UDINT;
  {endregion}
END_VAR

FB_BA_SchedM 2: Outputs

Name

Type

Description

nPresentValue

UDINT

Current value for multi-stage outputs.

FB_BA_SchedM 3: Inputs CONSTANT PERSISTENT

Name

Type

Description

aStateText

T_BA_StateTextArray

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

nDefaultValue

UDINT

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

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