On Tue, 2008-10-21 at 14:10 -0700, Colin MacKenzie wrote: ... snip > Here is how I would think a component would work...I suspect some hal > event is triggered when a tool change is requested. ...snip > Colin
In the .ini file... ... # create signals for tool loading loopback linkpp iocontrol.0.tool-prepare iocontrol.0.tool-prepared linkpp iocontrol.0.tool-change iocontrol.0.tool-changed ... You can break the prepare/prepared and change/changed links and put in your own component. The g-code Tx activates the prepare pin, the M3 activates the change pin. My lathe turret change is shown here: ### TURRET ### # create signals for tool loading loopback linkpp iocontrol.0.tool-prepare iocontrol.0.tool-prepared linkpp iocontrol.0.tool-change turret.0.position-change linkpp turret.0.position-changed iocontrol.0.tool-changed Since I don't do anything to prepare a tool, I left the prepared/prepared link connected. For something like a carousel, you would have a component linked between prepare and prepared that would take the requested tool number and position the carousel to the proper location. From above you can see that change calls my turret component. When the component is done, activates changed. HAL component information is here: http://www.linuxcnc.org/docview/html//hal_comp.html There are other ways to make components, such as using Python, Bash or Classic Ladder. I am not an expert on this so others can help with this. Basically, you need something with HAL pins that can handle the function you need. As for a manual tool change, there has been some work done to automate it, but I just position the axes to a tool change pose, pause the program, do the tool change, set the offsets, and continue; all in g-code. Hopefully others will enlighten me as to why other methods might be better. Kirk ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users