Lost G54, G55 etc. location, and Tool Height Offset Switching from Laser to Spindle

I’m combining router and laser operations in Aspire pp toolpaths. If there are no issues the files run end to end with no problem. If I need to stop and re-start on a particular line I often loose tool height and today the spindle adopted the laser X Y offset in G54 after a tool change. I start and stop jobs all the time and the issue typically only arises when a laser toolpath is part of the mix. My fixture setting used to remain the same for weeks. Is there a process or code that maintains a fixtures coordiantes when switching from spindle to laser? Or… what worst practice have I adopted that I need to get rid of as this seems kind of random to me and it certainly could be something I’m doing.

Your G5x offset is added to when the laser is deployed, and subtracted from when it’s retracted. There’s a potential for some weird looking behavior if you stop a job at the right moment.

Are you saying your G54 is changing and that’s causing your jobs to be off?

I’m working with a particular offset in G54 set by the MDI. I have a vetric file that combines laser and router paths. During the job I break a bit or forget to arm the laser and need to start in the middle some place. When I restart a laser process via search and line number the machine runs in something similar to absolute stop and smokes all the image boarders. When I select a router toolpath after laser use the laser offset does not get cancelled and the spindle X Y and Z does not return to the original G54 X Y and Z zero. Is there a way to manually reload the laser parameters prior to running mid job and a way to manually cancel the laser offset when starting a spindle job after laserr use? My understanding is that to start mid job you just pick a tool or line, accept, and run from there. Is there something I’m missing? The files cut flawlessly when run from end to end without interuption. Thanks!

A tool change is what sets, or removes the offset to your work coordinates, so changing to the laser tool (T99 M6) adds the offset, changing away from the laser tool (Tx M6) takes away the offset.

So if you stopped a laser job during lasering and you wanted to switch back to the work offset without the laser accounted for, just to a Tx M6 to whatever tool is in your spindle and it will remove the offset

is the TX M6 a MDI input or an MTC tool change or does it matter? When the new tool is selected does it need to be re-measured if it had an Hx before the laser use?

If you do it on the MTC button it will force a re-measure of the tool. If you do it in MDI and your spindle tool is already measured it will skip that and just set the offset. That’s a little trick that might save you some time

Does the M6 require a G43 afterwards?

I also place a M94/63 in the header just before the first tool is called. After an E stop and line search I have to manually activate relay one when restarting a toolpath mid job.

N0380 ; Absolute Positioning Mode
N0390 G90
N0400 M94/63
N0410 ; ---------------------------------------------
N0420 ; Toolchange: T5 - Speed: S18000

Shouldn’t this code be reloaded along with the others that restore the machine state?

Nope, that’s all baked into our M6 script

For what purpose?

Only if you start at or before that line. The “smart restart” has a specific list of things it looks for through the g code (tool changes, feedrates, spindle on, etc) before arriving at the line you specify. Generic output commands like M94/M95 are not on that list

The coded M94/63 relay starts the vacuum hold down for the work material as I often forget to turn it on when multitasking. A click on a job restart is not a big deal and glad to know all is working as designed. I appreciate the insight.

Of course! Happy to help!

I had a job that combined spindle and laser toolpaths that was interupted at laser deployment. Low air pressue. I corrected the issue, hit start, and the G code reset to line one. I then searched and selected T99, hit start and the laser smacked into the work surface. In the display T99 was selected however the H value had the number of the previous tool. I used the MDI and entered T99 M6 and selected a couple of lines past the T99 tool start. The machine moved and stopped due to a Z error. No H value was displayed. I tried a couple of more times and ended up with G54 XY moved by at least the distance of the laser offset. I think there are a few things going on however the first to address is why laser tool height is not being picked up on a job restart. I’m on profile manager 1.14.8.1 and Router Ver v5.42 u11.

Can you attach your g code you were running here?

2 5mm_1500 BLS Custom Jennifer Giraffe.cnc (2.4 MB)

Thanks for taking another look.

Ok, here’s my suggestion:

For some reason (one that I haven’t figured out yet) the resume function in Centroid (which is a bit of a black box to us) is not setting tool height for the laser as you found.

What I would do is this:

Save your laser toolpath as a separate G code file. Run your routing tool paths, and then run the laser tool paths.

That should force the tool heights to be set properly and allow you to resume the file.

I will move forward as suggested. Consolidated toolpaths are however my preferred work process as it eliminates so many operator errors in file selection etc and time rounding up files . Would ATC help this issue as the tool heights remain in the registry vs MTC which clears the registry on each tool change? I’m getting an AVS 40 tomorrow with the understanding that tools only need remeasured when table height or bit changes occur. Is a tool height measurement valid across all WCS or only specific to the WCS in which it was measured? I appreciate your efforts on this and look forward to a mid toolpath start workflow or solution in the future.

I tried your file… it’s doing exactly what you described: On a resume it’s going to do the T99 (laser) tool change like it should, but it’s setting the wrong tool height. that shouldn’t happen.

This is a Centroid issue. We can get it fixed but it won’t be immediate.

Two workarounds: Separate files like I suggested. OR you ca edit the G cod and right after the T99 M6 you can put on the next line “H99”

That fixed it. That way you could resume in the middle of a large job without having to save out a new set of G code files.

I’ll log this one as a bug on our end so we can look into it

I’ll edit the Vetric pp and add the height to tool changes. I know the effort it takes to chase down bugs and appreciate the help! Cheers.