Running into something odd with the graphing screen on my PRO4896 (EX/Acorn, CNC12, MTC with a deployable laser on tool 99) and wondering if anyone’s seen it.
When I run a laser job, the white position dot on the graphing screen doesn’t track where the laser actually is — it’s offset from the toolpath, like it’s still showing the spindle’s position. The actual cut comes out exactly right though, so it’s not a real positioning problem, just the on-screen dot.
I dug into it a bit with some debug prompts watching #150 (current tool) and #157 (previous tool), and found a pattern: whenever those two don’t match, the dot is offset. Whenever they match, it tracks dead-on the cut line. Confirmed it twice with the same result both times.
So it looks like the graphing dot is somehow keying off the previous tool instead of the current one for its position offset. Anyone know where in CNC12 the graphing overlay pulls that from, or seen this before?
Update: Dug into this more and my original theory was wrong — turns out it wasn’t about previous tool (#157) at all. I found and fixed a separate bug that was corrupting #157 on back-to-back laser jobs, but even with that fixed, the graphing dot still does the exact same thing: offset on the first laser deploy from a cold start, dead-on for every run after that. So the correlation with #157 was coincidental, not the actual cause.
New theory: enablelaser.mac applies the laser’s XY offset directly to the active WCS (adjusting #2500/#2600), but it’s guarded by a flag (#158) so it only happens once per laser session — meaning on the very first deploy, that shift happens mid-job, after the graphing preview has already been drawn. On every subsequent deploy the WCS is already corrected before the job even starts, so the preview is right from the first line. If the graphing engine only reads the WCS once at job start rather than live, that’d explain exactly what I’m seeing.
Haven’t fully confirmed this one yet, but it fits the data a lot better than my first guess. Will update again once I’ve verified it.
yes this is what it does. It’s the only way to get a “head shift” to work reliably. The job is previewed before this shift is applied (because it happens mid job) so it’s not shown.
I think you created a bug here that might effect tool custody. I highly highly recommend you DO NOT monkey with those macros, you can really get things messed up.