95
« on: February 14, 2016, 11:49:59 AM »
Before you worry about doing multiple parts, learn the basics.
I only used G0 G53 X0 Z0 as an example, you can change tool anywhere.
A major benefit of not having a fixed tool change position (i.e. coding it into the M6 macro), is you can command a tool change anywhere, however it is then up to you to ensure any tool changes are done in a 'safe' position. Some CAM packages are capable of doing that, however it normally means the CAM package has access to a 3D model of the machine, so it can simulate changes and know how much clearance is needed. But such CAM packages are expensive, and even more time consuming to setup.
Normally you'd pick a point where everything is clear of the spindle/work piece for all tools, however if you're wanting to minimise cycle time as much as possible, you can take the generated g-code from the CAM, and manually alter the tool change positions. However you would only normally do that if you're expecting to run a high quantity of identical parts, as it could easily take you 10-15minutes to find the optimum tool change positions, yet only save seconds of each cycle time, and you also risk the possibility of getting it wrong and causing a crash.
Regarding doing multiple parts, you can either rely on the CAM to simply generate additional lines to machine additional parts nearer the chuck, or re-use the code but insert temporary/work offsets to move everything nearer the chuck. However, before you get to that level of complication, learn and understand how to make single parts first.