Engee documentation

Arduino-modbusSetup

Serial port configuration and Modbus server configuration.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Arduino/Arduino-modbusSetup

Description

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

Block Arduino-modbusSetup performs serial port configuration and Modbus server configuration.

Ports

Output

# conn — connection descriptor
true | false

Details

It is the input port for the blocks Arduino-modbusWrite and Arduino-modbusRead.

Data types

Bool

Complex numbers support

No

Parameters

Main group

# Идентификатор сервера: — identification number of the Slave device

Details

The identification number of the Slave device from 1 before 247.

Default value

0

Program usage name

m_slave_id

Tunable

No

Evaluatable

Yes

# Номер канала Serial: — list of available channels to use
0 | 1 | 2 | 3

Details

The parameter value determines which object (Serial/Serial1/…​ corresponding to the numbers 0/1/…​) will be used for data exchange.

Values

0 | 1 | 2 | 3

Default value

0

Program usage name

m_serial_channel

Tunable

No

Evaluatable

Yes

# Скорость передачи данных: — the number of bits transmitted on a given serial port

Details

The number of bits transmitted on the specified serial port.

Default value

115200

Program usage name

m_baud_rate

Tunable

No

Evaluatable

Yes

# Шаг расчёта: — the period from which the block will be called

Details

The period for which this block will be called.

Default value

-1

Program usage name

sample_time

Tunable

No

Evaluatable

Yes