Engee documentation

Modbus Bytes to single

Create a single-precision floating-point number (data type Float32) from two 16-bit integers (data type UInt16).

blockType: CFunction

Path in the library:

/RITM/RITM Modbus/Modbus Bytes to single

Description

The Modbus Bytes to single block is used to create a single-precision floating-point number (data type Float32) from two 16-bit integers (data type UInt16). During the conversion it is possible to set the byte order in the final value.

Ports

Input

# Bytes — a pair of integers to convert to a floating point number
scalar

Details
Data types

UInt16

Complex numbers support

No

Output

# Single — conversion result as a floating point number
scalar

Details
Data types

Float64.

Complex numbers support

No

Parameters

Параметры:

# Порядок байтов: — byte order
ABCD | BADC | CDAB | DCBA

Details
Values

ABCD | BADC | CDAB | DCBA

Default value

ABCD

Program usage name

m_ByteOrder

Tunable

No

Evaluatable

Yes