LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with MODBUS over TCP

Hi all,
 
I have an emergency situation where I'm supposed to integrate an ADAM 6050 (Advantech) Ethernet enabled DIO device into our existing LABview based DAQ system.  It uses a Modbus over TCP protocol(s) to communcate.  I have never even cracked open a MODBUS manual, and I have only ttwo days to complete the project.  Luckily I only need to send one command to device.  Are ther any example programs out there or short tutorials that anyone would recommend?
 
Grub
Hell, there are no rules here...we're trying to accomplish something!!! - Thomas Edison
0 Kudos
Message 1 of 8
(8,330 Views)
Download the modbus library from the NI site. Here is a sample modbus query from an ethernet device. 7.0 format
0 Kudos
Message 2 of 8
(8,321 Views)
Thanks for the reply....I did download the MODBUS DLL that Labview published awhile back.  I tried using some of the code in there, but I couldn't get anything to work correctly.  I finally just used the TCP functions OPEN>WRITE>CLOSE, and wrote the commands that way.  It seems that sometimes the NI engineers get a little too clever with their VI's.  I'm sure they work great, but for somebody that doesn't know much about the protocol, its confusing to go through 5 levels of subvi's and multiple cases. 
 
I'm going to read more about the protocol over the next few weeks and try to decipher what's going on in the NI VI's.
 
Thanks again,
Grub
Hell, there are no rules here...we're trying to accomplish something!!! - Thomas Edison
0 Kudos
Message 3 of 8
(8,314 Views)

Try this link. It is for 7.1 format files. I have 7.0 format at work.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71

0 Kudos
Message 4 of 8
(8,304 Views)


@unclebump wrote:

Try this link. It is for 7.1 format files. I have 7.0 format at work.




Hey there unclebump. Could you please send me the 7.0 version of the library?
I'm really in need of that right now.

Thanks in advance,

Rafael.
0 Kudos
Message 5 of 8
(8,080 Views)
Thanks unclebump, I got the library, and will try to use it.

best regards.
0 Kudos
Message 7 of 8
(8,058 Views)

Grub!

Could you post your TCP vi for the 6050 module?

/Stefan

0 Kudos
Message 8 of 8
(7,710 Views)