Modbus Explorer App Overview
The Modbus Explorer App lets you read and write data to any Modbus® device without writing MATLAB® code. With this app you can configure Modbus communication, read and write to Modbus registers, view live plots of register data, and automatically generate a MATLAB live script. The app supports communication over Modbus TCP/IP and Modbus Serial (RTU). Using interactive panels, you can set the baud rate of the communication, define the word and byte order, and set the timeout. You can add coils, input registers, and holding registers. You can save your configuration for future use, eliminating the need to set up the device each time you open MATLAB. The app automatically reads the register data and provides live plots. You can also interactively write data to registers from the app.
We'll demonstrate how to use the app to set up Modbus communication with a Click Koyo Programmable Logic Controller (PLC). The controller is programmed with two holding registers and 3 coils/switches. The holding registers are set up as counters. We'll show how to use the app to change the switch values, which will turn the counters on and off. The effect of our changes can be easily viewed in the live plots, which display the values stored in the counter registers.
At the end of the demonstration, we'll show how to automatically generate a MATLAB live script, which can be used as reference for building test programs that require Modbus connectivity.
Published: 12 Feb 2019
Up Next:
Related Videos:
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)