FB_BA_AI_Raw

FB_BA_AI_Raw 1:

The function block represents the object of an analog input.

It has input variables for connecting the process values of the terminal.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_EventObject

                FB_BA_EventObjectEx

                    FB_BA_ComEventObject

                        FB_BA_BaseAI

Syntax

FUNCTION_BLOCK FB_BA_AI_Raw EXTENDS FB_BA_BaseAI
VAR_INPUT
  nRawState    : USINT;
  nRawVal      : INT;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    {attribute 'parameterCategory':='Hardware'}
      fResolution : REAL := XBA_Param.fInput_DefResolution;
    {attribute 'parameterCategory':='Hardware'}
      fScaleOffset : REAL := XBA_Param.fInput_DefScaleOffset;
  {endregion}
END_VAR

FB_BA_AI_Raw 2: Inputs

Name

Type

Description

nRawState

USINT

Variable for linking the status information of a terminal.

nRawVal

INT

Raw value.

FB_BA_AI_Raw 3: Inputs CONSTANT PERSISTENT

Name

Type

Description

fResolution

REAL

Default value for the Resolution parameter of inputs (XBA_Param.fInput_DefResolution).

fScaleOffset

REAL

Default value for the Offset parameter of outputs(XBA_Param.fInput_DefScaleOffset).

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0