05-03-2012 05:00 AM
Hi,
I'm a new user of Labview so I'm quiet lost.
Someone know how to use the modbus library to communicate in ASCII mode with a machine ? An example will be welcome
05-04-2012 05:06 AM
There is a thread in Labview discussion forum related to this please check.
http://forums.ni.com/t5/LabVIEW/modbus-ASCII-library/td-p/641292
05-04-2012 07:05 AM
Hi Danil33,
thank you for your answer.
best regards
05-04-2012 07:08 AM
Peter,
Do you achieved what you are trying to do?
05-04-2012 07:53 AM
no I don't, I've seen the link that you sent to me but there isn't the solution.
I found a VI which works in ASCII mode. The writing in my device works correctly but it lag when I have to read and a error occured : Timeout , but when I click on continue I can see the answer of the device in the box.
Any idea ?
i enclose the Vi
03-15-2013 05:03 AM
Hi Peter,
Thanks for your program!
Labview fails with their Modbus library. It doesn't work. Your program is much easier and (most important thing) it works fine.
The problem with your error is you read too many bits. You can solve this to change ''bytes to read'' in a property node with ''number of bytes at serial port''.
Feromartex
Labview 2010
03-15-2013 07:09 AM
@Feromartex wrote:
Labview fails with their Modbus library. It doesn't work
It works for me.
In any case, you should note that this is an old thread, so presumably Peter no longer needs help with the problem.
03-18-2013 02:27 AM
@tst wrote:
@Feromartex wrote:
Labview fails with their Modbus library. It doesn't work
It works for me.
In any case, you should note that this is an old thread, so presumably Peter no longer needs help with the problem.
Haha I still want to thank Peter and I want to help other people.
Indeed the RTU works fine but the ASCII mode doesn't work to me.