Engee documentation

Modbus Write Coils

Page in progress.

Writing values in multiple bits.

modbus write coils ru

Description

The block is used to write values to multiple bits.

Modbus function: 15 (0x0F).

Ports

Input

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

Details

The length of the vector must not exceed 1968.

Data type

UInt8.

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 bits 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 bits - number of bits to write
`1 (By default).

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