Modbus Write Register
Page in progress. |
Writing a value to a single storage register.
blockType: CFunction
Path in the library:
|
Description
The Modbus Write Register block is used to write a value to a single storage register.
Modbus function: 6 (0x06).
Ports
Input
#
Data
—
16-bit unsigned integer for writing
scalar
Details
Data types |
|
Complex numbers support |
No |
Output
#
Status
—
transaction status
scalar
Details
Designed for error control and error handling in the model. Error codes:
-
-1
- operation error.
If the operation was performed successfully, 1
will be returned.
Data types |
|
Complex numbers support |
No |
Parameters
Параметры
# Идентификатор сервера — slave device ID
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
# Начальный адрес записи — write address, excluding offset
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
# Шаг расчёта, с: — calculation step in seconds for sending data from a real-time application
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |