Online documentation, manuals and tutorials
< All Topics
Print

Modbus

Description

This action is used to send Modbus commands to the Modbus server. If coils are read, then the read value will be passed through output values as a value of type array:boolean, and in the case of registers, then a value of type array:integer will be passed through output values.

Properties

Specific

Connection

EXPRESSION (any)

Serial connection used to send Modbus commands.

Server address

EXPRESSION (integer)

A number between 0 and 255 used to select the Modbus server on the serial connection.

Command

Enum

Command to be sent:

  • 01 (0x01) Read Coils
  • 02 (0x02) Read Discrete Inputs
  • 03 (0x03) Read Holding Registers
  • 04 (0x04) Read Input Registers
  • 05 (0x05) Write Single Coil
  • 06 (0x06) Write Single Register
  • 15 (0x0F) Write Multiple Coils
  • 16 (0x10) Write Multiple Registers

Register address

EXPRESSION (integer)

Register address for single write: 05 (0x05) Write Single Coil or 06 (0x06) Write Single Register.

Starting register address

EXPRESSION (integer)

The address of the first register for multiple read and write.

Quantity of registers

EXPRESSION (integer)

The register number for multiple read and write.

Coil value

EXPRESSION (boolean)

Coil value (boolean) that is sent during a single write (i.e. when 05 (0x05) Write Single Coil is used).

Register value

EXPRESSION (integer)

Register value (integer) that is sent during a single write (i.e. when 06 (0x06) Write Single Register is used).

Coil values

EXPRESSION (array:boolean)

Coil values (of type array:boolean) when multiple writes are performing.

Register values

EXPRESSION (array:integer)

Registar values (of type array:integer) when multiple writes are performing.

Timeout (ms)

EXPRESSION (integer)

Maximum waiting time for server response. It is set in milliseconds.

Inputs

seqin

SEQ | OPTIONAL

A standard sequence input.

Outputs

seqout

SEQ | OPTIONAL

A standard sequence output.

Page content