Page 1 of 1

Hickory M6 calls missing macro

Posted: Thu Aug 21, 2025 7:57 am
by spumco
Testing out the ATC function after reinstalling CNC12 and got an error about a missing file during a tool change.

Turns out the standard mfunc6.mac file has the following line:

G65 "C:\cncm\system\tt_check_configuration.cnc"

This macro is a safety check to ensure a tool setter is attached and configured properly before doing a tool touch-off. However, the file wasn't installed by CNC12 5.30 for Hickory.

I've downloaded & extracted a number of Acorn report files from the forum (back to 1/2024) and the tt-check file is present under /urf/system.

All three Hickory reports I downloaded (back to early 2024) are missing the file, and in the single report where the user had an ATC their mfunc6.mac file has the entire tool check section commented out.

So... long story short... Centroid might want to take a look at the Hickory installation and if mfunc6.mac calls tt_check_configuration.cnc ensure that file is present after installation.

Re: Hickory M6 calls missing macro

Posted: Thu Aug 21, 2025 3:57 pm
by Allin1Chris
Hello Spumco,

Thanks for reporting this, you are correct that it does appear the hickory install does not install this file. This will be corrected for next release.

You can copy the file found in the acorn/acornsix install to the hickory install or use the one attached here in the mean time.

Re: Hickory M6 calls missing macro

Posted: Thu Aug 21, 2025 7:25 pm
by spumco
Allin1Chris wrote: Thu Aug 21, 2025 3:57 pm This will be corrected for next release.

It may not be necessary to copy the file over. Looks like the Hickory version of tool check from the tool offsets page uses an alternate tool setter config check in the form of tool_offset_auto_measure.cnc. This macro accomplishes the same thing as the 'missing' Acorn file.

So it appears that there is an 'Acorn' scheme and a 'Hickory' scheme, but the current Hickory implementation has some leftover stuff from when it was copied from Acorn.

May make more sense to delete the G65 from Hickory's mfunc6.mac file. Copying the Acorn file to Hickory would essentially be using both schemes.

Re: Hickory M6 calls missing macro

Posted: Thu Aug 21, 2025 9:33 pm
by spumco
Unfortunately, the tt_check_config.cnc file isn't appropriate for Hickory.

The file was written for Acorn and all of the probe input check lines are restricted to inputs 1-16. Hickory has up to 32 inputs. Because my TT-4 is on input 32, I got an error message when the tool touchoff started.

To work with Hickory I edited the file and replaced all instances of "16" with "32", which also covered the plc input lines (50032).

Might want to have a Hickory-specific version for 5.40.

Re: Hickory M6 calls missing macro

Posted: Fri Aug 22, 2025 12:00 am
by suntravel
On Acorn6 the tt_check_config.cnc is installed but not used IMHO.

It looks like a leftover from V4.99, maybe for users with old custom M6 macros.

From V5.18 and up the functionality is built in tool_offset_auto_measure.cnc

I also suggest to update only Hickory's mfunc6.mac

Uwe

Re: Hickory M6 calls missing macro

Posted: Fri Aug 22, 2025 9:56 am
by Allin1Chris
spumco wrote: Thu Aug 21, 2025 9:33 pm Unfortunately, the tt_check_config.cnc file isn't appropriate for Hickory.

The file was written for Acorn and all of the probe input check lines are restricted to inputs 1-16. Hickory has up to 32 inputs. Because my TT-4 is on input 32, I got an error message when the tool touchoff started.

To work with Hickory I edited the file and replaced all instances of "16" with "32", which also covered the plc input lines (50032).

Might want to have a Hickory-specific version for 5.40.
Yeah honestly i forgot about that part of the macro, Thanks for pointing it out. The modification to 32 will do for now. I think its time for me to re-think that macro, the range check makes sense for Acorn, but not the other boards.

Re: Hickory M6 calls missing macro

Posted: Fri Aug 22, 2025 11:01 am
by suntravel
Allin1Chris wrote: Fri Aug 22, 2025 9:56 am
spumco wrote: Thu Aug 21, 2025 9:33 pm Unfortunately, the tt_check_config.cnc file isn't appropriate for Hickory.

The file was written for Acorn and all of the probe input check lines are restricted to inputs 1-16. Hickory has up to 32 inputs. Because my TT-4 is on input 32, I got an error message when the tool touchoff started.

To work with Hickory I edited the file and replaced all instances of "16" with "32", which also covered the plc input lines (50032).

Might want to have a Hickory-specific version for 5.40.
Yeah honestly i forgot about that part of the macro, Thanks for pointing it out. The modification to 32 will do for now. I think its time for me to re-think that macro, the range check makes sense for Acorn, but not the other boards.
I would restrict it to 8 on Acorn because the Ether 1616 is too slow to use for a probe or TT and with one you have 8+16 inputs.

Uwe