OK, modified the .comp file with the new reg numbers and blanket replaced 
"wj200" to "x200".

first tried:
cd /home/atxhacker/linuxcnc-2.7.4/src 
sudo ./configure
sudo make
sudo make setuid 

That compiled ok, but running linuxcnc got "execv x200_vfd no such file or 
directory".

Tried your halcompile link.  Build, but still the same exev error.  x200_vfd 
executable was in ~/linuxcnc-2.7.4/bin.

So just stabbing, we moved x200_vfd into /usr/bin, and now it gives:
RTAPI: ERROR: could not open shared memory (No such file or directory)
HAL: ERROR: could not initialize RTAPI
./7i92_spid.hal:313: waitpid failed x200_vfd x200_vfd
./7i92_spid.hal:313: x200_vfd exited without becoming ready

??


Danny

---- Sebastian Kuzminsky <[email protected]> wrote: 
> On 03/02/2016 02:59 AM, andy pugh wrote:
> > On 2 March 2016 at 06:24, Danny Miller <[email protected]> wrote:
> >> So, the wj200 driver needs to be modified into an x200 and recompiled.
> >> We're working through how to do all that right now. The code
> >> modification seems trivial, the compile stage is a lot more.
> > 
> > The component is written in the "comp" format, so there is a chance
> > that halcompile will work.
> > http://linuxcnc.org/docs/2.7/html/hal/comp.html
> > 
> > There is also a fair chance that it won't work due to the includes,
> > but it is probably worth a try.
> > 
> > If you change the name of the file you need to also change the name of
> > the component (in the "component" line of the source file)
> 
> It's a little hairier than that, the wj200_vfd is written as a .comp
> file but it needs to link against libmodbus, so the normal halcompile
> work flow does not work.
> 
> Danny, check out the linuxcnc git repo (instructions here:
> http://linuxcnc.org/docs/html/code/contributing-to-linuxcnc.html#_the_git_revision_control_system).
> 
> Make sure you can build the code before you make any changes.  See
> instructions in the top-level README file for details on how to build.
> 
> In src/hal/user_comps there's a subdirectory named wj200_vfd, you're
> probably best off copying that whole directory, renaming all the files
> and variables from wj200 to x200, and making your modifications in the
> renamed files.
> 
> Let me know if you get stuck in this process, I'll be happy to help.
> 
> 
> -- 
> Sebastian Kuzminsky
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to