Engee documentation

Modbus Single to bytes

Page in progress.

Creating a vector consisting of two 16-bit integers (data type UInt16) from a single-precision floating-point number (data type Float32).

blockType: EngeeFunction

Path in the library:

/Interfaces/Modbus/Modbus Single to bytes

Description

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

Block Modbus Single to bytes It is used to create a vector consisting of two 16-bit integers (data type UInt16) from a single-precision floating-point number (data type Float32). During the conversion, it is possible to set the byte order in the resulting vector.

Ports

Input

# Single — a floating-point number
scalar

Details
Data types

Float64

Complex numbers support

No

Output

# Bytes — the result of the conversion is two integers in the specified byte order.
scalar

Details
Data types

UInt16

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