NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
blewis
Posts: 4
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

The PLC5/40E I'm trying to talk to is a Series F, A.2.

 

Barbara

Active Participant
BlueCheese
Posts: 1,018
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

[ Edited ]

Hi Barbara,

 

Unfortunately I am not sure what might be the issue. It seems like the presence of EtherNet/IP support (not just Ethernet) varies based on which version PLC5 you have and while it seems like yours should support it based on Rockwell's app notes, I cannot say for certain. I also am not 100% certain if the PLC5 supports the type of message we are using (Rockwell's documentation is somewhat lacking in this regard). Since I do not have a PLC5 here to play with I can't really examine it to see what the problem may be. Perhaps if there are any other users with PLC5s here that may be able to test it out and comment on whether it works for them it may help out.

 

Eric

Message Edited by BlueCheese on 04-08-2009 10:41 AM
Active Participant
pallen
Posts: 647
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

Sweet!  

 

And incredibly timely.

 

I'm looking forward to trying this out.     

---------------------

Patrick Allen
Member
JF3M
Posts: 10
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

Are there any issues with building this into an .exe and executing it on a different machine (non-development machine with runtime installed)?  A colleague of mine just tried it and was getting an error of something missing, I think it was a library file (not ethernetIPInterface.dll).  He even tried installing the driver on the remote machine.  Is this supposed to work, and if so, what is the recommended procedure?
Active Participant
BlueCheese
Posts: 1,018
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

Hi JF3M,

 

There should be no issues building this into an EXE. The only requirement should be getting the driver's DLL onto the remote system. If you are running into other errors it may be due to not building all the LabVIEW support VIs you need into the EXE. You may want to verify that all the VIs from vi.lib that you are using are included and such.

 

As you said, one way to get the DLL installed is by running the installer on the system. I have to admit that I have not tested running the installer on a machine with only the LabVIEW runtime installed so it is possible that the installer ends up finding nothing to install since there are no supported versions of LabVIEW (though you may be able to force it by manually selecting some version of LabVIEW to install support for). You can confirm this by checking for ethernetIPInterface.dll in your Windows\System32 directory.

 

Another option you could try is to place the ethernetIPInterface.dll next to your built EXE. This would eliminate the need to install the whole driver on a system you distribute your app to. 

 

Eric 

Member
dazach
Posts: 12
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

I was just checking in to report this build issue. I have the same issue. The ethernerIPInterface.dll is in the build but does not get installed to the system32 folder. Tried several build configs but no luck. I manually had to install the dll.

 

Mike

Active Participant
BlueCheese
Posts: 1,018
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

Dazach,

 

Where are you getting the DLL to install manually? Is it possible that it is not in System32 because you are running on a 64-bit OS? If so, the installer will put it into the SysWoW64 directory.

 

Eric 

Member
dazach
Posts: 12
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

The ethernetIPInterface.dll is on my WIN XP 32bit development pc that has LV and the EnetIP add on installed. That dll is put on your system when you install the add on package. It also appears in your LV project directory tree under dependencies if one or more of your project files are using the EnetIP VIs. I've created a stand alone executable that I should be able to install on any PC. The problem is the Installer does not install the ethernetIPInterface.dll on the target pc. If I copy the dll from my development pc system32 directory to the target machines system32 directory the application runs fine. I would expect that the installer would add the ethernetIPInterface.dll during instal of the executable for me since it is a dependacy of the LV project executable.
Member
JF3M
Posts: 10
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

I have since tried this as an .exe and it worked.  My colleague had some problems with this but found out it was some settings issue he had.  When I first tried to make an installer, I had also assumed it would pull in the .dll since it was a dependancy.  Apparently Labview doesn't work that way, so I tried it again specifically including it and it worked.  In my case I used/made an installer.  I did a mass compile, then right clicked My Computer in the project tree, then selected Add>, then File..., then picked the .dll.  Now it appears in my project tree under My Computer.  In the installer config, under Source Files, the .dll appears (again under My Computer) and can be selected to go to any folder you want.  In my case, I just put it in the same folder as the .exe and it worked fine.
Active Participant
BlueCheese
Posts: 1,018
0 Kudos

Re: Welcome to EtherNet/IP Driver for Communication to Allen Bradley ControlLogix PLCs

Hi JF3M and dazach,

 

It doesn't look like LabVIEW will automatically pull SystemRoot-based DLLs into an installer. However, as you found out, you can tell it to do so manually and put it alongside the EXE and it will work.

 

Eric 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page