For emc2.1 systems with manual tool change, I recommend using
'hal_manualtoolchange'.  This is demonstrated in the 'sim/axis'
configuration.  When you issue a tool change g-code like 'M6 T1', the
machine goes to a location defined in the INI, then a dialog appears on
the screen with a button for you to press when the new tool is in place.
Then the machine returns to the previous location and continues with the
file.  The HAL lines for this are:
    loadusr -W hal_manualtoolchange

    # in case they were linked already
    unlinkp iocontrol.0.tool-change
    unlinkp iocontrol.0.tool-changed

    linkpp hal_manualtoolchange.change iocontrol.0.tool-change 
    linkpp hal_manualtoolchange.changed iocontrol.0.tool-changed
    linkpp hal_manualtoolchange.number iocontrol.0.tool-prep-number

You can specify the location to move to in the ini file:
    [EMCIO]
    TOOL_CHANGE_POSITION = 0 0 2

If you prefer to use only tkemc, then the button you are looking for is
the one marked "Resume", in the center just above the program listing.

Jeff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to