On 03/02/2016 02:59 AM, andy pugh wrote: > On 2 March 2016 at 06:24, Danny Miller <dan...@austin.rr.com> 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users