Adding a data item to a Modbus RTU server
Data items are used to communicate with a Modbus RTU server. Data items can be mapped to global variables. Each data item represents a request of the Modbus RTU client.
- Prerequisite
- You must add a Modbus RTU server to your device configuration.
- Open the device view.
- In the device tree, double-click the server you want to add a data item to.
- In the Data items table, click the plus icon.
- A new data item is added.
- Name the data item uniquely within the scope of the server.
- Set the function code of the data item.
- Set the offset of the data item.
- If more than one register shall be read or written, set the desired quantity of the data item.

If the request shall not be executed cyclically (default) but by trigger, you can create a trigger channel.
Changing the function code of a data item of a Modbus RTU server
Changing the offset of a data item of a Modbus RTU server
Changing the quantity of a data item of a Modbus RTU server
Creating a trigger channel for a Modbus RTU request
Mapping a data item of a Modbus RTU device to a global variable