Engee documentation

Modbus Write Registers

Page in progress.

Write values to multiple consecutive storage registers.

modbus write registers ru

Description

The block is used to write values to multiple consecutive storage registers.

Modbus function: 16 (0x10).

Ports

Input

Data is. scalar or vector of 16-bit unsigned unsigned integers for recording
scalar | vector

Details

The length of the vector must not exceed 123.

Data type

UInt16.

Output

Status - operation status
scalar

Details

Designed for error control and error handling in the model. Error codes:

  • -1 - operation error.

If the operation is successful, the number of written registers will be returned.

Parameters

*Server identifier slave device identifier
`0 (By default).

Record starting address - starting address for recording, without offset
`0 (By default).

*Number of registers number of registers for writing
`1 (By default).

Calculation Step - calculation step in seconds for sending data from the real-time application
`-1 (By default).