I am trying to set up an IOC with the ether_ip driver to talk to a ControlLogix PLC. I got the most recent release from GitHub and was able to successfully run the example IOC app in the release and follow the steps in the INSTALL file up to part III where
I run into problems with what files to modify.
I've followed the appropriate steps to make an IOC using the makeBaseApp.pl executable for my EPICS base. If I do not try to add the ether_ip driver, the IOC app works fine, I can't seem to find the correct files to modify to get the ether_ip driver to load.
For the sake of my questions, this IOC I've made will be called "test". My questions are inline below within Part III of the INSTALL document.
2. Set up ETHER_IP definitions in the configuration directory for your application by:
2.1. cd <your ioc application>/configure
>>>> Should <your ioc application> in this step be <TOP> for the IOC or testApp?
2.2. edit the file RELEASE file, add the line
ETHER_IP=/cs/epics/ADE/R3.14.11/support/ether_ip/<RELEASE>
>>>> I'm guessing I should modify the line above to point to where the ether_ip source files are?
2.3. Make sure the new definitions take effect by
make clean
make
in the configure directory.
3. Set up the dbd include file in your src directory to include ether_ip.dbd by adding the line
include "ether_ip.dbd"
after the line include "../base.dbd".
>> The only place I can find a dbd include file is under testApp/src/O.Common. Is this the one to modify?
Now that RELEASE file has been edited and config or configure has been rebuilt the Makefile will be able to find ether_ip.dbd when it expands your dbd file.
4. Set up your application to include the object libraries by including the following lines in Makefile:
<app>_LIBS += ether_ip
ether_ip_DIR = $(ETHER_IP_LIB)
>>>> Which Makefile do I modify? The one in testApp/src?
Thanks in advance for any help or advice that can be given!
Best regards,
Tyler Lemon