07-22-2019 11:14 AM
Hello,
Does anyone have a good example of how to communicate with the following protocol via RS232 MODBUS16 CRC?
Thanks,
07-22-2019 12:00 PM
Modbus16 - I don't know about such a protocol.
There are several LabVIEW libraries available for download that are capable of
Modbus ASCII, Modbus RTU and Modbus TCP.
All of these include examples.
Regards, Jens
07-22-2019 12:33 PM
Thanks for the information. Where can I find the libraries?
Thanks,
07-22-2019 01:20 PM
Easiest way is the VI Package Manager https://vipm.jki.net/
If you don't use that just do a search for "LabVIEW Modbus".
07-22-2019 03:52 PM
I was able to install the libraries, however, how can I send the following command to a device? None of the functions have a data send input.
0xA5 0x05 0x0D CRC
Thanks,
07-22-2019 04:11 PM
What does that command mean?
Did you look at the examples for Modbus that are installed with the libraries such as the Master?
07-22-2019 05:23 PM
There's like 3 or 4 MODBUS libraries, so without you telling us which one you actually got, it's difficult to help.
As a general note, to send what you're trying to send, you're probably looking for something called "Modbus write multiple holding registers.vi", and you need to convert those 3 things you're trying to write from hex into 16-bit unsigned integers. So the "data send input" might be labeled something like "Registers", and would be an array of U16.
07-24-2019 10:58 AM
Thanks to everyone for all the help. I was able to get it to work:)