Tool Changer M06 control for carousel system.

More
11 Jan 2010 21:04 - 13 Jan 2010 19:51 #1492 by greeder88
Resurrected my carousel tool changer project and I'm clear as mud on how to get the available signals from the M06 command to tie into the programmable M101 & M102 codes. My changer requires a (4-pin 10-step) M101sequence to "Load" and a (4-pin 9-step) M102 sequence to "Unload" the tools. At this stage all I want to do is get the M06 commands out to pins so I can do stuff.

My old notes on the M06 command say: iocontrol.0.tool-change sends a True signal and waits for iocontrol.0.tool-changed to be driven True to continue. I also see iocontrol.0.tool-prep-number, iocontrol.0.tool-prepare, and iocontrol.0.tool-prepared are programmed in the M06 command.


Now how to get them out to some pins?

Example I found from the shizuoka Hal file:
# create signals for tool loading loopback
###net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared
###net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed

net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed hal_manualtoolchange.changed => iocontrol.0.tool-changed
net tool-prep-number hal_manualtoolchange.number => iocontrol.0.tool-prep-number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

#net ToolIn parport.2.pin-03-out # set by M105 and M106
#net ToolOut parport.2.pin-04-out # set by M105 and M106



My questions are:

1- What would I write in the Hal file to get M06 to make for example PARPORT.2.PIN-08-OUT start the tool change sequence and PARPORT.2.PIN-09-IN recieve a signal to continue with the rest of the program?

This gives me the option of controlling all my tool changer moves outside of EMC2 with a mechanical timer cam.

Maybe the best idea is to do everything individually in each program I use.
To do a tool change would be:

M101 (Unloads Tool)
A4.0 (Rotates carousel to tool 4)
M102 (Loads new tool)
M6T4 (Changes tool length offset)

2- Anyone see a way to do these 3 steps inside a M6T4 ?
Last edit: 13 Jan 2010 19:51 by greeder88.

Please Log in or Create an account to join the conversation.

More
26 Oct 2014 05:15 #52395 by microsprintbuilder
here is my carousel tool change setup. I use a remap.
Attachments:

Please Log in or Create an account to join the conversation.

More
26 Oct 2014 05:32 #52396 by BigJohnT
Here is a sample tool changer simulator so you can watch what is going on. At the bottom of that page.

gnipsel.com/linuxcnc/index.html

JT

Please Log in or Create an account to join the conversation.

More
26 Oct 2014 14:09 #52397 by ArcEye
This is a carousel toolchanger component I wrote for cncbasher.

wiki.linuxcnc.org/cgi-bin/wiki.pl?Contri...oolchanger_component

If your carousel is rotated by a motor, has tool indexes and rams or slides to move it, it could be quite similar.
The problem comes if your Z axis has to move up and down to load the tool, this one had a pneumatic drawbar and the carousel moved up to the quill.

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.217 seconds
Powered by Kunena Forum