John Kasunich <[EMAIL PROTECTED]> writes:

---
> That is difficult at the moment.  We have been unable to come up with a 
> clean and simple way to allow toolchange logic to control machine 
> motion.  This has been discussed in the past, because quite a few 
> machines use the kind of toolchanger where each tool is stored in a 
> different place, and the machine axes are used to move to the proper 
> place for each tool.
> 
> Some of the ideas considered for your kind of toolchanger have involved 
> g-code subroutines, since they can control both motion and logic.

I like the idea of a gcode subroutine, nice and straightforward.
It would work fine for us as we have no custom hardware, apart from a solenoid,
if I remember correctly there is even a (custom?) gcode instruction to control
a digital output.

Pseudocode
1) savecontext
2) let p=current position
3) do change
4) move to p
5) restorecontext
6) signal toolchange done

How do I save the current context including:
feed, spindle speed, direction, position
and
get the current x,y,z, position to be able to return there

If it needs to be written what code should I look at in order to integrate it? 

Although I can see some problems 
how to ensure that the machine has been homed on all axis,
and abort the toolchange if it hasnt
Always move in absolute coordinates even if there is a custom coordinate system
operating.

>  Other 
> possibilities including writing the toolchanger logic in classicladder, 
> and providing hooks to allow classicladder to issue motion commands 
> during a toolchange.  All of the methods discussed so far have had one 
> or more serious problems,

Can you explain what the problems are?

I have had problems using a ladder the gui doesnt work for me, but I dont know
why. I have used a python script to control the spindle and solenoid for a part
of the toolchange. 

How can I issue gcode from a python script.

> and nobody has been sufficiently motivated to 
> work out the details.  (In part because none of the active developers 
> has a machine with such a toolchanger.)  Perhaps your project will be an 
> opportunity to work out a solution.
> 

Ill see what we can do.

Thanks 

Andy Bailey





-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to