Home » Eclipse Projects » Kura » Kura Modbus(Modbus in kura)
| |
Re: Kura Modbus [message #1779013 is a reply to message #1778867] |
Thu, 28 December 2017 13:15 |
Javier A. Messages: 10 Registered: November 2017 |
Junior Member |
|
|
Matteo Maiero wrote on Fri, 22 December 2017 15:03Hello,
if you need only to read/write data from your modbus device, have you tried using Kura Wires?
Maybe you can get the same result without writing lines of code.
If, otherwise, you need to develop a more specific application, I would suggest first to start with the first examples. In this way you can understand how declarative services work and what you need to do to define dependencies between services.
Related to the errors you are having, could you please report them, in order to be able to provide support?
Thanks.
Best regards,
Matteo
Hi Matteo, reference Kura Wires, thank you for your suggest, I have been able to read a register, show it with log and send it a mqtt server but I couldn´t write. I use esf modbus driver.
Some idea why I can´t write a register?
[Updated on: Thu, 28 December 2017 13:16] Report message to a moderator
|
|
|
Re: Kura Modbus [message #1779014 is a reply to message #1779013] |
Thu, 28 December 2017 13:49 |
Matteo Maiero Messages: 423 Registered: July 2015 Location: Italy |
Senior Member |
|
|
Hi,
I believe you have two options if you are using Kura 3.1.0:
- if you only need to change a single time a value in an asset, go to the "Drivers and Assets" section, select your asset, then the "Data" tab and from there perform the write of the specific value you want to change;
- use the graph for that: you need to setup a graph, maybe using the subscriber component, the database and database filter that will determine a graph that is able to produce a value that matches, with its name and type, one of the channels of the Asset. This message is then received, using the data flow model, by the Asset that will write to the specific Modbus register.
Best regards,
Matteo
|
|
|
Re: Kura Modbus [message #1779085 is a reply to message #1779014] |
Tue, 02 January 2018 12:08 |
Javier A. Messages: 10 Registered: November 2017 |
Junior Member |
|
|
Matteo Maiero wrote on Thu, 28 December 2017 13:49Hi,
I believe you have two options if you are using Kura 3.1.0:
- if you only need to change a single time a value in an asset, go to the "Drivers and Assets" section, select your asset, then the "Data" tab and from there perform the write of the specific value you want to change;
- use the graph for that: you need to setup a graph, maybe using the subscriber component, the database and database filter that will determine a graph that is able to produce a value that matches, with its name and type, one of the channels of the Asset. This message is then received, using the data flow model, by the Asset that will write to the specific Modbus register.
Best regards,
Matteo
Hi Matteo, happy new year.
I tried as you said it and all OK, now I can write to, but with this way, the write is very slow and for reduced number of changes.
I need something more complex, so, I have to develop an application in java to deploy it after in kura, here I have two problems:
- The eclipse project "org.eclipse.kura.protocol.modbus" show me an error reference pom.xml (Project build error: Non-resolvable parent POM for org.eclipse.kura:org.eclipse.kura.protocol.modbus:2.0.200-SNAPSHOT: Could not find artifact org.eclipse.kura:kura:pom:3.2.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM).
- Test project "org.eclipse.kura.protocol.modbus.test" isn´t a eclipse project, it is a maven project and when I try to clean, install etc allways I have some error.
|
|
| | | | | | |
Goto Forum:
Current Time: Tue May 21 17:45:22 GMT 2024
Powered by FUDForum. Page generated in 0.05632 seconds
|