On Sat, 2009-05-02 at 21:19 +0100, robert wrote: > hi > > i am just implementing the tool changer and i would like to know when > setting the current tool with > M61 Q02 > this should set current tool in spindle to T02 > will this also set the iocontrol.0.tool-number = 2 > as when issuing the above the tool-number value did not change from 0 to > 2 as exspected > > does M06 (iocontrol.0.tool-change) go high as soon as M06 is issued > or does it wait for the tool prepared function to come back true? > > as when issuing a T03 M06 i found the iocontrol.0.tool-change did not > change state only the iocontrol.0.tool-prepare and tool-prep-number > states changed > > here is snipit of my links into the PLC > > #(bit, out) TRUE when a tool change is requested > net tool-change iocontrol.0.tool-change => classicladder.0.in-06 > > #(bit, in) Should be driven TRUE when a tool change is completed > net tool-changed iocontrol.0.tool-changed <= classicladder.0.out-06 > > #(s32, out) The current tool number > net tool-current-tool iocontrol.0.tool-number => classicladder.0.s32in-00 > > #(s32, out) The number of the next tool, from the RS274NGC T-word > net tool-prep-num iocontrol.0.tool-prep-number => classicladder.0.s32in-01 > > #(bit, out) TRUE when a tool prepare is requested > net tool-toolprep iocontrol.0.tool-prepare => classicladder.0.in-07 > > #(bit, in) Should be driven TRUE when a tool prepare is completed > net tool-preped iocontrol.0.tool-prepared <= classicladder.0.out-07 > > robert
My guess is that you need to make sure that your PLC sets tool-prepared true when the tool is ready to be changed. The T word invokes the prepare - prepared thread, the M invokes the change - changed thread. You should be able to check the prepare and prepared signal status with HALmeter. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
