FB_BA_MI_IO

FB_BA_MI_IO 1:

The function block FB_BA_MI_IO represents the Multi-State_Input object.

The Multi-State_Input object specifies an object type whose object properties represent externally visible characteristics of a data point for multiple binary inputs. The object is derived from physical or virtual data points, e.g. the limit messages of several analog inputs or analog values or from a mathematical calculation.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_EventObject

                FB_BA_EventObjectEx

                    FB_BA_ComEventObject

                        FB_BA_BaseMI

Illustration

FUNCTION_BLOCK FB_BA_MI_IO EXTENDS FB_BA_BaseMI IMPLEMENTS I_BA_RawMI
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    nDefaultValue          : UDINT := 1;
  {endregion}
END_VAR
VAR
  {region 'Raw I/O'}
    stRawVal    AT %I*     : ST_BA_Byte;
  {endregion}
END_VAR

FB_BA_MI_IO 2: Inputs CONSTANT PERSISTENT

Name

Type

Description

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

stRawVal

ST_BA_Byte

Structure variable for linking to the process image.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0