FB_BA_AI_Raw

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
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
Inputs
Name | Type | Description |
|---|---|---|
nRawState | USINT | Variable for linking the status information of a terminal. |
nRawVal | INT | Raw value. |
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 |