Engee documentation

Modbus Bytes to single

Creating 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

To work with the block, install/update the support package RITM blocks.

Block Modbus Bytes to single It 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 — the result of the conversion 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