Jeff, For some reason, I was unable to get Les Newell's tool change script to run UNLESS I named it the default name - hal_manualtoolchange.
Per your suggestion, I tried naming Les's script to hal_manualtoolchange_new, and then changing the reference to it in the .ini file. But when I started EMC2, no window appeared. So I waited a minute, and tried starting EMC2 again. This time I got a dialog box saying it was already running. There is a reference to the name in the script itself: h = hal.component("hal_manualtoolchange") Do I need to change the name here too? Also, in the .ini file, the name appears in four places: loadusr -W hal_manualtoolchange net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared Should I change the name in all four places? Thanks, Tony ----- Original Message ----- From: "Jeff Epler" <jep...@unpythonic.net> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> Sent: Thursday, March 15, 2012 10:37 PM Subject: Re: [Emc-users] Tool change question >I assume that you are talking about the script linked at > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?ManualToolChangeMacro > > It looks like this version of the tool change script is a bit out of > date with respect to LinuxCNC. > > LinuxCNC removed the need to specify [EMC]NML_FILE in the inifile in > version 2.4, and this same setting was removed from most sample > configurations and configurations generated by stepconf. > > However, this toolchange script is still referring to it and doesn't > work if it's not specified. > > Until the author of the version on the wiki can correct the script, it > may work simply to remove the two lines > emc.nmlfile = > os.path.join(os.path.dirname(os.environ['INI_FILE_NAME']), > iniFile.find("EMC", "NML_FILE")) > > You should also be aware that since you gave this file the same name as > a file installed by linuxcnc, an upgrade will overwrite the file. You > should give it a different name, and then refer to that name in your hal > file instead. This will save you heartache later. > > Jeff > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users