F_BA_MapUDIFromRawByte

F_BA_MapUDIFromRawByte 1:

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.

F_BA_MapUDIFromRawByte 2:

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

F_BA_MapUDIFromRawByte 3: Inputs/outputs

Name

Type

Description

nValue

UDINT

The converted value.

F_BA_MapUDIFromRawByte 4: Inputs

Name

Type

Description

stRawValue

POINTER TO ST_BA_Byte

Raw byte structure pointer.

eMappingMode

E_BA_ByteMappingMode

Mapping mode.

nDefaultValue

UDINT

Default value in case of an error.