> > LinuxCNC shouldn't update its internal idea of which tool is in the > spindle until iocontrol.0.tool-changed goes to true. > > Is it possible that your toolchanger is setting that flag too early?
It shouldn't. I'm setting *iocontrol.0.tool-changed* to TRUE just after the turret validates the clamping and the comparison between *iocontrol.0.tool-prep-number *and the actual tool indexed on the turret is correct. The odd behaviour only shows when in the middle of a tool change running a program (I didn't try MDI but I guess it will be the same) I push program stop. Then, it's like LCNC aborts the tool change sequence and retains the last tool update (i.e. the one that was in use). But my turret component continues until it finishes the tool change sequence, although IOCONTROL is not waiting for a *iocontrol.0.tool-changed *TRUE anymore. I guess I'm used to the way the Mazak control handled this. I could see the tool number changing even if I turned on one of the proximity switches by hand. So it was like, the tool change logic was always reading the tool number. Anyway, I just set the logic of my turret component to avoid any problems with this. Just as I also set a limit to not allow the tool sequence to take place if the absolute coordinate of the X axis is under a minimum diameter. That's the wonderful thing about HAL :). El mar., 12 may. 2020 a las 10:12, andy pugh (<[email protected]>) escribió: > On Tue, 12 May 2020 at 04:50, Leonardo Marsaglia <[email protected]> > wrote: > > > Well, I thought about doing that internally in the component. But what I > > would like to know is if there's the possibility, on future releases may > be > > or as a patch, to let the IOCONTROL only call and wait for the tool > change, > > but not having any register about the tool in use. > > LinuxCNC shouldn't update its internal idea of which tool is in the > spindle until iocontrol.0.tool-changed goes to true. > > Is it possible that your toolchanger is setting that flag too early? > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
