Page 1 of 1

Tool change not updating system parameter? < needs initialized>

Posted: Wed Dec 18, 2024 1:45 am
by LinkCNC
I have a custom M6 macro that for the most part works, well sort of.
With T1 in the spindle, a T2 request results in a perfectly executed unloading of T1 and loading of T2 into the spindle.
Once the macro is complete, CNC 12 displays T2 H1 at the top of the screen.

Now with T2 in the spindle, a T1 request results in CNC12 updating the display to read T1 H1 but no physical tool change occurs.
This leads me to think that my macro is missing something and #9976 is not being updated after a tool change.

If anyone has any thoughts on what I might be missing...

Thanks

Reported Generated: Wed Dec 18 15:02:44 2024
MPU12 serial number: 0035FF62198D-0505214745
License: ACORN ROUTER PRO
Version: CNC12 Acorn Router v5.20

Re: Tool change not updating system parameter?

Posted: Wed Dec 18, 2024 2:52 pm
by cnckeith
the H value is separate from the T value you have to set both. just changing to T2 doesn't mean that CNC12 is going to use H2.
H120 can be used with T2 or T56 or T87 etc..

Re: Tool change not updating system parameter?

Posted: Wed Dec 18, 2024 5:20 pm
by LinkCNC
Yes, the Height offset would typically be called in the G code job file.

The issue I'm experiencing is to do with the CNC "thinking" that T1 is in the spindle regardless of which tool it has just picked up.
Even though CNC12 shows the correct T# at the top of the screen.

When I first initialised the ATC feature T1 was in the spindle as per the instructions. I assume at this point #9976 is set to 1.
In the M6 macro #9976 (current tool) is compared to #4120 (requested tool) and if they are different the macro progresses.
What should happen, but doesn't appear to in my situation, is that #9976 is set to #4120 once the change is complete.

With #9976 always set to 1, a T1 request will always result in no physical action. And any other T# request will result in the CNC trying put away T1 regardless on the tool # in the spindle.

Hopefully this explains my issue better.

Thanks

Re: Tool change not updating system parameter?

Posted: Wed Dec 18, 2024 6:40 pm
by Gary Campbell
The system variable #150 must be updated (written) to reflect the current tool in the spindle

Re: Tool change not updating system parameter?

Posted: Wed Dec 18, 2024 8:00 pm
by LinkCNC
Yep I just discovered that also... re-initializing the ATC has resolved the issue.

Thanks Gary