LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I can't read from start byte register to n byte register from mod bus library. just cane read only 1st byte register

Hello everyone

 

I’ve used modbus library (ni modbus121). I’ve some problems. I set to read data from 0-4 byte register as fig. ni_modbus01. But Labview only show just one 1st byte register as fig ni_modbus_02

 

I've tested by modbus poll from 0-10 byte register as fig. ni_modbus03. it can show all.

 

Please suggest me how to readdata from 0-4 byte register for modbus library.

 

Thanks

Waa

Download All
0 Kudos
Message 1 of 5
(2,684 Views)

Hi,

 

I am not sure if this helps, but once I had similar problems. Some manufacturers use the register address (starts at 0) in their documentation, while others use the register number (starts at 1). Try to increase or decrease your register address, it might help.

More information about this here.

Best regards,

CsabaF
0 Kudos
Message 2 of 5
(2,646 Views)

Thanks, CsabaF

It still have same error. it just show 1st register byte.

 

the data register :

address 0 = 22

address 0 = 24

 

I think adress is the same as starting with 0.

because if i set..

starting address : 0

quantity : 4

it show-> temp value only = 22

 

if i set..

starting address : 1

quantity : 4

it show-> temp value only = 24

 

please suggest me again 

waa

 

 

 

0 Kudos
Message 3 of 5
(2,637 Views)

sorry, my wrong as above reply,

my correction is

 

address 0 : 22

address 1 : 24

0 Kudos
Message 4 of 5
(2,614 Views)

You should check to see if you're generating any errors on that modbus request function. 

 

If you aren't, you might try out this library:

https://decibel.ni.com/content/docs/DOC-30140

(its also included in LV 2014 as part of the RT or DSC modules)

There is an example on the master palette which should do exactly what your tool does (pic 3).

 

If both libraries show the same behavior I'm not sure whats going on.

0 Kudos
Message 5 of 5
(2,601 Views)