> On Sun, 2009-05-03 at 18:28 +0100, robert wrote: >> i just asked on IRC about the var file, cradek said you cant realy do it >> and looking through the docs i cant see any ref to setting a parameter >> in atxt file from hal, unless one makes there own hal comp file > > I guess I never worried about getting it from HAL since tool number is > an EMC global variable. You mentioned iocontrol and that system does > reference it but then so does emcsh, emcrsh and other stuff that was > more common years ago. > > When I was working with mini or tkemc I wrote a bit of a process that > saved it just like any other variable is saved to that file. > > Rayh >
For a simple toolchanger, you are correct. You can just save the tool number in the spindle, and reload that after a restart. For a more complex toolchanger (like Robert asked for) you also need to remember the carusel number that's currently in the tool-change position. That number is probably also in the status struct, but I'm not sure it's the best place to remember it. The whole tool changing part needs some rework, as it's designed to be specific for a certain type of tool-changer. (e.g. a rack toolchanger won't work). Regards, Alex ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users