Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview communicating Modbus device

Solved!
Go to solution
Hi All,


I am trying to communicate with modbus device using labview 8.5, which I did communicate using windows hyperterminal.

Can anyone help me in this regard

I would appreciate quick help

thanks

Nadz
0 Kudos
Message 1 of 20
(6,225 Views)
Help with what?
By the way don't duplicate posts.
greetings from the Netherlands
0 Kudos
Message 2 of 20
(6,218 Views)
Solution
Accepted by Cube404
Hello,
You will need to download and install the ni_Modbus_8.2.exe
and follow the instructions to install this for LabVIEW 8.5
There are examples on how you use the modbus vi's.
Christian A
National Instruments
Applications Engineer
Message 3 of 20
(6,208 Views)
Hey Christian,


Thanx for that, I will download it and follow the instructions..

cheers

Nadz
0 Kudos
Message 4 of 20
(6,166 Views)
Hey Albert,

I am new to Labview and modbus...

I appreciate your reply too.

thanx
0 Kudos
Message 5 of 20
(6,164 Views)
Hi Christian,

Thanks for the solution..
 
Now I can communicate with the device,

one more help please, how can I read particular register value of the device?

Thankx

Nadz


0 Kudos
Message 6 of 20
(6,136 Views)
Hello Nadz,
If you take a look at the Master and Slave vi's there are case structures where input registers and coils are being read.
Please go over these and let us know if you have any further questions.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 7 of 20
(6,096 Views)
I'm using the same modbus drivers with and emerson AC drive, I have an issue when I'm trying to read negative numbers (data) from the registers i'm receiving the data as a U16. does anyone know if these drivers exist for signed integers as well or what the procedure would be to convert the modbus data recieve as signed integers?
 
PS . I have the NI Modbus library and  my code works just fine when I'm moving in the positive firection the problem arises obviously when I reverse directions I receive a large number and even though it still sounts down.
 
thanks for any input...
SB
0 Kudos
Message 8 of 20
(5,605 Views)
Hey SB,

Even I had the same negative values problem...but it solved by doing some calculations....

please let me know, what are the values ur getting there, when u were expecting 0,-1, -2....
so that I can help u in a right way....thanx

Cube


0 Kudos
Message 9 of 20
(5,580 Views)

Mr_TesT,

The modbus library returns an unsigned integer that in your case needs to be converted to a signed integer.  Just use one of the conversion functions located on the Numeric>Conversion palette change to a signed integer.

0 Kudos
Message 10 of 20
(5,566 Views)