F_HighLowArr_TO_UINT

This function converts a byte array consisting of two bytes (represented in Big-endian order) into a 16-bit unsigned integer (UINT). It is primarily used to decode network-ordered data, such as universe numbers or packet lengths, into a format compatible with the TwinCAT environment.

F_HighLowArr_TO_UINT 1: Inputs

Name

Type

Description

Value

ARRAY [1..2] OF BYTE

The 2-byte array to be converted (High byte first).

F_HighLowArr_TO_UINT 2: Returns

Name

Type

Description

UINT

The resulting 16-bit unsigned integer.