主要内容

Modbus Explorer

Read and write to Modbus coils and registers

Description

The Modbus Explorer app provides a graphical interface to configure a Modbus connection, connect to a Modbus server, read and write data to registers, and visualize live data.

Using this app, you can:

  • Connect to Modbus devices over TCP/IP or Serial RTU.

  • Read data from coils, inputs, input registers, and holding registers.

  • Write data to one coil or one holding register at a time.

  • Import and export register information using MAT-files.

  • Monitor data in real time using live plots.

  • Organize and manage multiple read addresses using a tabular view.

  • Generate scripts in the Live Editor from the app.

The app does not support the writeRead or maskWrite functions available in the MATLAB® Modbus interface.

To use the Modbus Explorer, you must configure your device and connect over TCP/IP or Serial RTU. For more information, see Configure Connection in Modbus Explorer. Once you configure a device and it is recognized by MATLAB, you can select it on the startup page of the Modbus Explorer app. You can then perform read and write operations.

The app supports importing register information as a MAT file. You can import MAT files previously exported from the app. You can also import MAT files exported from the Modbus Client Read and Modbus Client Write Simulink® blocks.

Modbus Explorer App

Open the Modbus Explorer App

  • MATLAB Toolstrip: On the Apps tab, under Test & Measurement, click the app icon.

  • MATLAB command prompt: Enter modbusExplorer.

Version History

Introduced in R2019a