F_BA_MapToRawByte

F_BA_MapToRawByte 1:

The F_BA_MapToRawByte function converts a process value into a raw byte value. The input variable nProcessValue is converted according to the selected mapping mode eMode.

F_BA_MapToRawByte 2:

This function is used to convert process values to raw byte formats.

Syntax

FUNCTION F_BA_MapToRawByte : BOOL
VAR_INPUT
  nProcessValue  : BYTE;
  eMode          : E_BA_ByteMappingMode := E_BA_ByteMappingMode.eIndex1N;
END_VAR
VAR_OUTPUT
  nResult        : BYTE;
END_VAR

F_BA_MapToRawByte 3: Inputs

Name

Type

Description

nProcessValue

BYTE

The value to convert.

eMode

E_BA_ByteMappingMode

Mapping mode (default: eIndex1N).

F_BA_MapToRawByte 4: Outputs

Name

Type

Description

nResult

BYTE

The converted raw value.