If I use M***P(Toolnumber) and allow a number to be specified is P the only letter that can be used?
From my understanding you would need to allow the user to specify the M number, for example custom macros are 100 and above so one user may wish to use M101 to write their preselect VB in, another may use M234 etc. So you would need to allow that to be entered.
So the preselect line would be something like M234P2.
I guess then I should add the option the return the head to the tool change position in case the M6 macro does not do this?
Would you typically expect to see a G28/G30 Z0?
Is G91 in conjunction with needed as per Fanuc?
Thanks for your help
Julian
Senior Developer
SharpCam Ltd: http://www.sharpcam.co.uk
I would write that into my M6 macro, what I would do is have
Code("G53G0Z0")
As the first part of my toolchange, that would move the Z Axis to the machine coords zero position but again not sure how others would do it.
Hood