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: EngeeFunction

Path in the library:

/Interfaces/Modbus/Modbus Bytes to single

Description

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

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_bytes_order

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes