Network Modbus Client Read

Reads Modbus registers of a device using the Modbus TCP protocol. Each read reads all the registers of the module and updates the value N outlets.

For example, to read a temperature stored as a float in the input registers 10 and 11 of a device, set register num 1=10, type 1=input register and format 1=float32.

Settings

query

Number of Modbus registers handled by the module, asked when the module is created (1 to 128). The module exposes one group of terminals per register, numbered from 1 (name 1, register num 1, value 1...).

To change it afterwards, recreate the module: the query is asked again and the connections are restored by name.

ip-name

IP or host name of the Modbus devices.

port

Network port of the Modbus device (502 by default).

unit ID

Modbus unit ID of the device to read, from 0 to 255 (1 by default), sent in each request. The read only gets the answer of the device at ip-name: 0 (the Modbus broadcast address) does not read several devices.

read

Process the read operation.

name

Optional name of the register (for display purpose only).

register num

Address of the register to read or write, from 1 to 65535. It is sent as is in the Modbus request (protocol address, which starts at 0): a register numbered N in a documentation that counts from 1 (or written 3000N / 4000N) has the address N - 1.

type

Type of the register to read or write (input or holding).

format

Format the register to read (float32,uint32,int32,uint16,int16).

uint16 by default. float32, uint32 and int32 values use two consecutive registers.

value

Read value output of the nth register (value 1 to value N).

Common Settings

info

show manual

Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.

For more details about information/help creation, see create-help-file.

description

Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.

Object Remote Address

absolute

Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.

See also

version 7.0.250921

Edit All Pages