Modbus (Built-in)

This section shows how to write drivers for your shop's PLCs, code readers, and specialized devices in x4Trace.
Post Reply
x4Trace
Posts: 58
Joined: Fri Feb 14, 2025 2:24 pm

Modbus (Built-in)

Post by x4Trace »

The x4Trace.Server.Drivers.dll contains a Modbus driver. You can modify this code and develop a driver for x4Trace via Modbus by using this Modbus communication.

During the integration, you have two choices:
1.Use the built-in Modbus driver. In this case, you must create the necessary variables in the PLC, modify the PLC program, and set the memory addresses in x4Trace to communicate with the PLC or other devices via Modbus.

2.Develop a unique driver to handle the Line's PLC or other devices. You can use x4Trace's Modbus communication and all of its classes and algorithms. You have to build your code and copy it into the Driver directory of x4Trace's server.

The Modbus driver uses the ModbusClient. Because these x4Trace codes are open-source, you can modify both the driver and the client.

To develop, please open the x4Trace.Server.UserPlugins.sln.
Post Reply