F_BA_MapUDIFromRawByte

The function F_BA_MapUDIFromRawByte converts a raw byte value into a UDINT value. The input/output variable nValue is converted from the raw byte value stored in the stRawValue structure according to the selected mapping mode eMappingMode.
![]() | This function is used to convert raw byte formats to UDINT process values. |
Syntax
FUNCTION F_BA_MapUDIFromRawByte : BYTE
VAR_IN_OUT
nValue : UDINT;
END_VAR
VAR_INPUT
stRawValue : POINTER TO ST_BA_Byte;
eMappingMode : E_BA_ByteMappingMode;
nDefaultValue : UDINT;
END_VAR
Inputs/outputs
Name | Type | Description |
|---|---|---|
nValue | UDINT | The converted value. |
Inputs
Name | Type | Description |
|---|---|---|
stRawValue | POINTER TO ST_BA_Byte | Raw byte structure pointer. |
eMappingMode | Mapping mode. | |
nDefaultValue | UDINT | Default value in case of an error. |
