LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus libraries for LabView 8.0

Hi,

Yes, this is working Smiley Happy

I am using the LV 7.0 libraries provided by unclebump. (I have only tried serial communication, not tcp/ip)

-Christian

0 Kudos
Message 21 of 81
(3,328 Views)

Dear UncleBump,

Do you mind sharing the TCP version of your Modbus VIs?

Thank you,

-Khalid

0 Kudos
Message 22 of 81
(3,341 Views)

Manfred (and others),

Have you been able to use the TCP Modbus Slave example to write out any values succesfully?  I am able to read values into my Slave VI example, but I can't seem to be able to write values out. 

Thank you,

-Khalid

0 Kudos
Message 23 of 81
(3,331 Views)
Here is a link to a modbus ethernet query llb file. I've never used the ethernet slave vi's.
 
0 Kudos
Message 24 of 81
(3,327 Views)
Modbus slave devices can only receive data. It takes a master device to write data.
Message 25 of 81
(3,327 Views)
Thank you UncleBump.  What I meant by slave writing was, when I change the values within the Slave (Coils and Registers), these do not get picked up by the Master.  This should be doable. 
 
In any case, thank you.
 
-Khalid
0 Kudos
Message 26 of 81
(3,318 Views)
Another question. I am supposed to write data to address 429 and 430. Something is not right, I am trying to write 14 to 429 and 5 to 430, 14 is correct read and the module replies. But the module is not sending any datas to 430(at least that is what the module says). See attatched figure for my configuration. Anyone?
0 Kudos
Message 27 of 81
(3,287 Views)
There are different modbus function codes for writing single registers and multiple registers at one time. Try changing the six to the appropriate number for write multiple registers.
0 Kudos
Message 28 of 81
(3,312 Views)

Here is a link to the modbus function codes manual.

http://www.eecs.umich.edu/~modbus/documents/PI_MBUS_300.pdf

0 Kudos
Message 29 of 81
(3,310 Views)

Thanks, but this did not work. I changed to function code 16, which is supposed to be preset Multiple registers. See attatched configuration. Now none of the datas were accepted.

 

 

0 Kudos
Message 30 of 81
(3,295 Views)