FB_BA_KL32xx
![FB_BA_KL32xx 1:](Images/png/10792032011__Web.png)
The function block FB_BA_KL32xx is for the configuration of Bus Terminals of the types KL3208_0010, Kl3201, KL3202 and Kl3204.
Syntax
FUNCTION_BLOCK FB_BA_KL32xx
VAR_INPUT
bConfigurate : BOOL;
bReadConfig : BOOL;
eSensor : E_BA_MeasuringElement;
END_VAR
VAR_OUTPUT
nState : USINT;
nData : INT;
fVal : REAL;
bErr : BOOL;
bWireBreak : BOOL;
bShortCircuit : BOOL;/
END_VAR
VAR_IN_OUT
nRawState : USINT;
nRawDataIn : INT;
nRawCtrl : USINT;
nRawDataOut : INT;
END_VAR
VAR // [Output-Properties]
nTerminalType : WORD;
nSpecialType : WORD;
nFirmwareVersion : WORD;
sTerminalDescription : STRING;
sSensorName : STRING;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bConfigurate | BOOL | A rising edge starts the configuration of the bus terminal. |
bReadConfig | BOOL | A rising edge starts the reading of the bus terminal. |
eSensor | E_BA_MeasuringElement | Selection of the sensor type. |
Outputs
Name | Type | Description |
---|---|---|
nState | USINT | Output of the present terminal status. |
nData | INT | Output of the present process data. |
fVal | REAL | Scaled output value. |
bErr | BOOL | Error in the terminal configuration. |
bWireBreak | BOOL | A TRUE indicates a wire break at the sensor. |
bShortCircuit | BOOL | A TRUE indicates a short circuit at the sensor. |
Inputs/outputs
Name | Type | Description |
---|---|---|
nRawState | USINT | Linking with the corresponding status byte of the bus terminal in the I/O area of the program. |
nRawDataIn | INT | Linking with the corresponding raw data (Data In) of the bus terminal in the I/O area of the program (0...32767). |
nRawCtrl | USINT | Linking with the corresponding control byte of the bus terminal in the I/O area of the program. |
nRawDataOut | INT | Linking with the corresponding raw data (Data Out) of the bus terminal in the I/O area of the program. |
Properties
Name | Type | Access | Description |
---|---|---|---|
FirmwareVersion | WORD | Get | Display of the terminal firmware. |
SensorName | STRING | Get | Display of the sensor type. |
SpecialType | WORD | Get | Display of the special version of the terminal. |
TerminalDescription | STRING | Get | Display of the terminal type and firmware |
TerminalType | WORD | Get | Display of the terminal type. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc2_BA2_Common from V2.1.20.0 |