On Wed, Sep 17, 2008 at 08:36:37PM +0100, Simon Daykin wrote:
> I have been searching but can't seem to find much information on how to do 
> toolchanger macros in EMC.
> 
> My toolchanger uses a rotary axis to index round to a position and then 
> reverse the drive to lock it into position. I should be able to write a 
> macro to do it but I can't find much information or examples.
> 
> Can someone point me at some information please.
> 
> Thanks
> Simon

You might want to use Classic Ladder for this.  How does the turret
sense when it's in the right position?

My HNC turret has two bits for control: one lifts and spins the
turret, and the other puts a stop in the way for it to stop against in
a proper position.  The feedback is a binary position sensor that
tells which tool is in position.  

So when you get a tool change request, you turn off the stop, and turn
on the lift-and-spin.  When you see it's in the right location, you
pop up the stop.  Then you keep the lift-and-spin bit active for a
little while so it settles firmly against the stop.  Then you turn off
the lift-and-spin bit and the turret drops.  There is a prox that says
it has seated properly.  This prox signifies the end of the tool
change.

Here is what my ladder looks like.  Names starting with > are HAL
inputs to ladder.  Names ending in > are output bits to the
hardware.  Names with neither > are internal 'variables' in ladder.

TCReq is the iocontrol.0.tool-change pin that signals a tool change
is requested.  TCDone is iocontrol.0.tool-changed pin that tells emc
the tool change succeeded and emc can continue.

TurInPos is a comparison of iocontrol.0.tool-prep-number and the
turret position sensor.  prep-number is the tool emc wants to find.

TurDown is the prox that says the turret is down and in position.

TurIndex and TurStop are the two output bits that control the turret
as described above.

http://timeguy.com/cradek-files/emc/hnc-toolchange.png

If you are new to ladder, be sure to also see

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder#Cradeks_Classicladder_Cheatsheet



-------------------------------------------------------------------------
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

Reply via email to