On Wed, 2008-09-17 at 23:04 +0100, Simon Daykin wrote: > Presumably there is a way to make EMC remember, even if I have to write a > HAL command which responds to the iocontrol.0.tool-prepared signal and write > the current tool number to a text file. I could then respond to the > tool-prepare command and ignore the current tool number that EMC tells me > and read it from the file to calculate the move required. > > Thanks > Simon
Another open loop makes my teeth hurt but you can easily save variable values to the .var file. All you'd need to do is edit the file you use in your config and add a tool number variable. Something like 1000 0 on a line by itself at the top of the file would create a variable that would be read in at startup and saved at shutdown. You'd have to be certain that you update var 1000 every time you change tools. M2CW Rayh ------------------------------------------------------------------------- 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