FB_BA_MI_IO

FB_BA_MI_IO 1:

The FB_BA_MO_IO function block represents the Multi-State-Output object for connection to the local I/O level.

It has a priority array and can therefore be commanded (see Commanding objects).

The Multi-State-Output object specifies an object type whose object properties represent externally visible characteristics of a data point for multiple binary outputs, provided they are connected by any binary logic. The object is derived from physical or virtual data points, e.g. for "active/inactive" states of several binary outputs or the value of an analog output.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_EventObject

                FB_BA_EventObjectEx

                    FB_BA_ComEventObject

                        FB_BA_BaseMI

Syntax

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