Engee documentation

Modbus RTU Setup

Setting up a connection to a server (slave device) using the Modbus RTU protocol.

blockType: CFunction

Path in the library:

/RITM/RITM Modbus/Modbus RTU Setup

Description

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

The block is used to configure the connection to the server (slave device) using the Modbus RTU protocol.

Parameters

Port name — Port name to configure

+ "/dev/ttyS0" (by default)

Details

The names of the available ports can be obtained in a pop-up window by clicking on the button "Get information about available ports" in the block mask.

Speed — receive-transmit speed

+ 9600 (by default) | 19200 | 38400 | 57600 | 115200

Parity bit — method for determining reception and transmission errors
No (by default) | Even | Odd

Details
  • Even — check for odd;

  • Odd — parity check.

Data bits — Number of receive-transmit data bits
8 (by default) | 7 | 6 | 5

Stop bits — number of receive-transmit stop bits

+ One (by default) | Two

Server ID — Connection ID for receiving and transmitting blocks

+ 0 (by default)

Details

Valid values are from 0 to `15'.

Maximum number of reconnection attempts — number of reconnection attempts to the server during model initialization
5 (by default)