LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Connection to Ethernet IP I/O

There is no magic behind 101. it just points to a normal PLC register. As you wired the For loop variable [i] to update into 102nd register, i wanted you to check whether that register is getting updated properly..
 
Cruz,
 
I am sorry for having  no documentation over the components.

Message Edited by sivamgr on 10-04-2007 09:20 PM

Best regards
Siva
sivamgr@gmail.com
Message 21 of 31
(6,276 Views)
While developing the component, I couldnt find much reference meterial on the internet at free of cost. rather, I used some network  freeware tools and the partial information available in the following meterials to build the component. I did some crude reverse engineering on the packets sent by RS-Linx and PLC for understanding the concepts like vendorID and other parameters..,

 




 

I beleive that the code might require some work around. But, unfortunately I dont have access to AB-PLCs at this stage. I would appriciate,  If anybody plans to optimize the code or to build a new component. The above reference might be useful to them.

 

As far as the relaiablity of those components concern, I am using these set of libraries in all my recent automation projects dealing with AB-PLCs. In one of the project that runs 24x7, the software reads 450 tags across 5 PLCs(MLX Series) every second.  Its running here at bangalore (IFB Automotive) fine for the past 4 months with no crash reported till date. (Despite of the extensive usage of Build Array in the SubVIs)

 

For Communicating with CompactLogix, ControlLogix PLCs, the components available at this link might be useful,
http://forums.lavag.org/index.php?act=attach&type=post&id=6948 . This uses pure CIP (Command & Information Protocol / Common Industrial Protocol) Service Messages for tag access. Recently, I helped a software team to make use of it for a project  at Delphi-TVS, Chennai. I am yet to receive any crash information from them.

 

I beleive that  the DeviceNET Protocol is a simple Implementation of CIP over CAN. please correct me if I am inaccurate.

 

If the TCP-Open,Send, Close used in the EtherNET_CIP VIs are replaced with CAN Open, Send and Close then, it would be able to communicate with the DeviceNET supported devices. But unfortunately, I dont have enough resources to test the theory here at bangalore at my own cost. I would appreciate if anydoes check this out and brings out a component to communicate over DeviceNET.

 

Message Edited by sivamgr on 10-04-2007 10:16 PM

Best regards
Siva
sivamgr@gmail.com
Message 22 of 31
(6,279 Views)


@sivamgr wrote:

While developing the component, I couldnt find much reference meterial on the internet at free of cost. rather, I used some network  freeware tools and the partial information available in the following meterials to build the component. I did some crude reverse engineering on the packets sent by RS-Linx and PLC for understanding the concepts like vendorID and other parameters..,


 








 


I beleive that the code might require some work around. But, unfortunately I dont have access to AB-PLCs at this stage. I would appriciate,  If anybody plans to optimize the code or to build a new component. The above reference might be useful to them.


 


As far as the relaiablity of those components concern, I am using these set of libraries in all my recent automation projects dealing with AB-PLCs. In one of the project that runs 24x7, the software reads 450 tags across 5 PLCs(MLX Series) every second.  Its running here at bangalore (IFB Automotive) fine for the past 4 months with no crash reported till date. (Despite of the extensive usage of Build Array in the SubVIs)


 


For Communicating with CompactLogix, ControlLogix PLCs, the components available at this link might be useful,

http://forums.lavag.org/index.php?act=attach&type=post&id=6948 . This uses pure CIP (Command & Information Protocol / Common Industrial Protocol) Service Messages for tag access. Recently, I helped a software team to make use of it for a project  at Delphi-TVS, Chennai. I am yet to receive any crash information from them.


 


I beleive that  the DeviceNET Protocol is a simple Implementation of CIP over CAN. please correct me if I am inaccurate.


 


If the TCP-Open,Send, Close used in the EtherNET_CIP VIs are replaced with CAN Open, Send and Close then, it would be able to communicate with the DeviceNET supported devices. But unfortunately, I dont have enough resources to test the theory here at bangalore at my own cost. I would appreciate if anydoes check this out and brings out a component to communicate over DeviceNET.


 

Message Edited by sivamgr on 10-04-2007 10:16 PM



Hi everybody,

Please keep the below point in mind while using EIP Scan Register/Update Register

 

1) In EtherNet/IP, it cannot be read more than 90 registers in single read. This is because of the TCP/IP Packcet Size Constraint. The Scan/Update VIs would return a Data error in case it cannot get the values in a single TCP Packet. In case of bulk read/write, please perform a segmentised read/write

 

2) For Example, if you want to read 256 registers from N7 File, Do it in 3 steps


STEP 1: Scan (Offset=0, NoOfElement=90)
STEP 2: Scan (Offset=90, NoOfElement=90)
STEP 3: Scan (Offset=180, NoOfElement=76)

 
Best regards
Siva
sivamgr@gmail.com
0 Kudos
Message 23 of 31
(6,233 Views)
Hi all
I am surprised by this library performance. I downloaded it and tested. The output matches the jpg file imagem.jpg posted by cruz. the first value 111 and last 768 are the same. The middle once keep changing. I wonder if everything is ok. I am able to write and read the n7 registers using an activex control (third party development).But this library does not return any values. can some throw some light. I contacted sivamgr though he replied, he  seems to busy afterwards. Has any one else been able to work with this library. If so can the guide me
I attaching the screen shot to show the similarity of the imagem.jpg posted by curz in this thread.

0 Kudos
Message 24 of 31
(6,069 Views)
Hello,

Unfortunately we do not have the 3rd party hardware available to us at this time to test this out. 
Is anyone else able to answer this question?

Regards,
FieldKam
Kameralina

0 Kudos
Message 25 of 31
(6,035 Views)
Hi,

I would like to get some suggestions from you (I am a novice in the field of communications) about project I have (concerning Ethernet/IP). Let me explain it briefly:

I have a system with few commercial power converters equipped with RS232 ports. You can write/read from these ports (read data as current, voltage, power, THD, etc... and write commands as turn on/off etc...)
The main controler is NI compactRIO, and I have
WAP-3701 wireless access point, UES-3880 hub and RS232 to Ethernet/IP cards (for converters).

Now, we have to establish an Ethernet/IP in our system. One power converter should talk wirelessly with the compactRIO (WLAN), and LAN should be also attached to the hub (compactRIO will be getting some commands from the website, as well as from the PC).
Other 3-4 converter will be controlled via Ethernet/IP. So, is this possible with equipement we have? My biggest concern is can I use the same hub for Ethernet/IP, and have attached wireless access point and LAN to that hub. Of course, I have to use some of the siva's VI's.

Thanks guys,

cvelle
0 Kudos
Message 26 of 31
(5,845 Views)

Hi cvelle,

As far as I know the set up you are speaking of should work. It sounds like a basic network with a wireless access point for the connection to one of the converters. There should be no issue with the cRio communicating across the network, wired or wireless As long as you have the network configured properly.

If you have any questions about how to set this up, feel free to ask. Here is some useful information for configuring your network:

http://digital.ni.com/public.nsf/websearch/320E6D748361351A8625704A000D68CF?OpenDocument

Let me know if you have any other questions.

Sappster
0 Kudos
Message 27 of 31
(5,806 Views)
Thanks Mark...

- cvelle
0 Kudos
Message 28 of 31
(5,769 Views)

For future reference to those who come across this old thread, NI now has a library (currently under NI Labs) that allows various types of communication with supported EtherNet/IP devices. The current link is here: http://decibel.ni.com/content/docs/DOC-4065

 

Eric

0 Kudos
Message 29 of 31
(5,175 Views)

how to connect labview and adam 5000 tcp/ip

what kind a protocol should have used???is there any driver between that devices??

somebody can help me...thx a lot

i think we can use a modbus protocol for solve this problem...

but, i didn't have any code to apply modbus protocol between that...

maybe...somebody have a tutorial for used this library...

thanks...^^

0 Kudos
Message 30 of 31
(5,055 Views)