Skip to main content
Version: v9

Set Modbus/TCP

With a Set Modbus/TCP Node, you can write single coils and single registers on a Modbus/TCP server, one function call after the other.

Connection​

Modbus/TCP Connection lists the connections from Robot Configuration → Modbus/TCP. The pencil on an entry opens that connection there.

Add Modbus/TCP Connection at the end of the list creates "New Modbus/TCP Connection" (host 0.0.0.0, port 502, unit ID 1), selects it, and opens the Robot Configuration so you can enter the address of the server.

  • With no connections, the list reads "No Modbus/TCP connections defined yet".
  • Without a selection, the field shows "Please select a connection or create a new one".
  • If the connection is deleted, the selection of the Node is cleared.

Function calls​

The open Node lists its Function Calls. An empty list reads "Please specify one or more Function Calls".

Click a call to open the Set Modbus TCP panel. In the panel, Add Function Call adds more calls. The ⋮ menu of a call offers Duplicate and Delete, and you can reorder the calls by dragging them.

Each call has these fields:

  • Name: optional. Without a name, the calls are called "Function Call 1", "Function Call 2" and so on.
  • Function Type: Write Single Coil (default) or Write Single Register.
  • Bit address or Register address: a whole number.
  • Bit value: a switch, for a coil. Register value: a number of 0 or more, for a register.
  • Delay: in seconds, default 0. The delay is applied after the call.

When the Node runs​

The calls run in list order. A failed write is reported in the Message Log, and the Flow pauses (when running continuously).

Validation​

  • "Modbus TCP connection is required".
  • "At least one function call is required".
  • Address: "Field is required" or "Enter a valid integer".
  • Value and delay: "Value must be positive" or "Field is required".
tip

For a value that several Nodes or a Dashboard use, map a Variable to the register instead. See Mapping a Variable to a fieldbus.