Modbus RTU Setup
Configuring the connection to the server (slave device) using the Modbus RTU protocol.
blockType: CFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package RITM blocks. |
Block Modbus RTU Setup It is used to set up a connection to a server (a slave device) using the Modbus RTU protocol.
Parameters
Parameters
# Имя порта: — the name of the port to configure
Details
The names of the available ports can be obtained in a pop-up window by clicking on the "Get information about available ports" in the block mask.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Скорость: —
receiving and transmitting speed
9600 | 19200 | 38400 | 57600 | 115200
Details
Select the receive/transmit speed.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Бит четности: —
method for detecting reception and transmission errors
Нет | Even | Odd
Details
-
Even— check for odd numbers; -
Odd— check for parity.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Биты данных: —
the number of receiving and transmitting data bits
8 | 7 | 6 | 5
Details
Select the number of receiving and transmitting data bits.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Стоповые биты: —
number of receive-transmit stop bits
Один | Два
Details
Select the number of receive-transmit stop bits.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Идентификатор сервера: — connection ID for receiving and transmitting blocks
Details
Acceptable values from 0 before 15.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Максимальное количество попыток переподключения: — the number of attempts to reconnect to the server during initialization of the model
Details
The number of attempts to reconnect to the server during initialization of the model.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
