Modbus Library in MATLAB

R

Thread Starter

reza_Hdr

Hi.

I want to communicate with UDC2500 Honeywell controller with Matlab via Ethernet cable. The UDC2500 setups on the process training system (TE3300) which works with Modbus over Ethernet protocol. This system has a software (specview). I analyse the packets via wireshark. I found that the TE3300 works with TCP/IP, Modbus, Modbus/TCP and some other protocols. Matlab has the command to connect with TCP/IP protocol but it hasn't any commands for Modbus. I need a library for Modbus and Modbus/TCP.

I thanks you a lot if you help me.
 
I
Hello reza_Hdr,

Matlab has no ready to use Modbus instruction in its library but it is possible to develop in m-code, you will find program sample at Matlab Answer of Mathworks.com. Below just one sample from Matlab answer that you can start to develop your own code with :

https://www.mathworks.com/matlabcen...mmunication?requestedDomain=www.mathworks.com

http://www.mathworks.com/matlabcentral/fileexchange/27815-modbus-rs232-ascii-communication-functions

Other idea are to use 3rd party Modbus OPC server software such as KEPServer or Matrikon as a gateway between Matlab and the Modbus devices, Matlab will read and write to the Modbus OPC server using one of two possible methods below :

1. Use OPCLink toolbox to acquire data from OPC server:

http://www.mathworks.com/help/opc/examples/acquire-data-from-an-opc-data-access-server.html

2. From Simulink you can use library of OPC Configuration, OPC Read, or OPC Write block

https://www.mathworks.com/help/opc/ug/using-the-opc-client-manager.html

Hope this helps
 
Hi my friend

You have been extremely supportive. I downloaded both Matrikon and Kepware OPC server for UDC2500 as you said and install them on my computer. I am sure that I used my device IP address and port number correctly, but when I run the OPC explorer to see my items in Matrikon, it doesn't recognize them at all. In Kepware fortunately it identifies all the items and categorize them in some groups but the quality of some group's items is still bad. I checked the communication settings and kepsever settings hundred times. But still I got message:

"Device 'Chanel. Device' with ID 'IP address' is not responding"

I also send an email to Kepware Help Center but they said your Device configuration is probably wrong.

Here is the link of my device:
http://www.tecquipment.com/Control/Process-Control/TE3300/02.aspx

Thank You.
 
Top