On Sat, 2008-02-23 at 08:50 -0600, Jeff Epler wrote: > On Thu, Feb 21, 2008 at 01:43:13PM -0800, Kirk Wallace wrote: > > I just noticed the --userspace flag for comp. Can I just massage my C > > file into comp form and have comp do all the real work? Then just use > > "loadusr" instead of the "loadrt" I am used to with comp files? What do > > I do with "main"? > > comp --userspace is not as well-tested as comp for building realtime > modules. But I do think that it works. > > There is a "comp --userspace" example in the manual: > http://linuxcnc.org/docs/html/hal_comp.html#r1_13_6 > and a tiny bit more documentation above about the userspace-specific > things -- "option userspace yes" and "option userinit yes". > > However, comp and modbus are probably a bad match -- my impression of a > generic modbus component is that it will be desirable to read a > configuration file when the component is initialized; however, comp > requires that the pins and parameters of the component be declared when > the component is compiled. > > Jeff
Thanks Jeff. I keep forgetting that the current manual is there. I just want to get a most basic form of modbus transaction working and then expand on it later. Like open the serial port with assumed parameters (unit 6, 57600, 8N1) send a command to read the digital input register, put the result on a u32 HAL pin, then display the bit status in pyVCP. I get bound up in the details if I don't work at keeping things simple. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users