Modbus+Tango+Taurus
|
|
---|---|
Hello everyone, I am a little bit noobie in Tango & very bad programmer, but I really want to figure it out So, I have Windows 7, where I have last Tango, PyTango & Taurus versions. Also I have a simple Digital Input-Output device with Modbus RTU protocol & RS-485/usb adapter. I want make a demonstration, where there will be leds in Taurus widget, showing the value of each I/O. So I had started a new Devise server, I had found Modbus Device server, but when I try to start this new server I get an error (image 1). I understand, that I need to show the path to the files of Modbus Device server, but I don't know how. Also I can't understand, how link TaurusLeds in Taurus Designer with device attributes. Please help, it's really difficult without mentoring! I think it's not my last question at this topic, please be tolerant |
|
|
---|---|
Hello, Concerning the Modbus server, did you manage to compile it ? |
|
|
---|---|
no, to my shame, I don't even know what files I need to download from Modbus Device class page |
|
|
---|---|
You can only download the source code via SVN and you need to compile it. As I understand, you want a serial version so you need to compile with the serialline class. It is not an obvious task. I compiled a Win32 executable. You can download it from: http://www.esrf.eu/computing/cs/tango/tango_classes/Modbus/Modbus.exe |
|
|
---|---|
Hi, First of all, I would split the task in smaller bits:
I hope it helps, Cheers, Carlos |
|
|
---|---|
So, I don't really understand what is "serial version" and "serialline class", is this a big omission? So I had downloaded it and I recieved: (image 1) |
|
|
---|---|
The Modbus.exe is statically linked with the serialine class so you need only this file. You need now to configure the server using Jive. Basically you need to create 2 devices (one for the modbus itself and an other for the serialline). I don't use Modbus using serial line on Windows so I don't know what to put inside the serialine property (/dev/ttyR31) for accessing a serial port on windows. |
|
|
---|---|
I wonder if COM1, COM2 still work? According to this post yes: http://gaiger-programming.blogspot.com/2015/07/methods-collection-of-enumerating-com.html |
|
|
---|---|
Carlos1st step – ok, without difficults 2nd step – result at pinned image |
|
|
---|---|
Jean-LucI had created 2 devices, but i can't start my new device server, an error at attachment |