ATC Toolnumber after restart

Post anything you want to discuss with others about the software.

ATC Toolnumber after restart

Postby CNC_WW » Tue Mar 26, 2024 12:53 pm

Hi,
Unfortunately I couldn't find anything on this topic.

Is there a possibility for UCCNC to save the tool number when exiting the software?

For me, jobs always end with a tool in the spindle. Then UCCNC is ended and the PC is shut down.
When I start again, the tool number is always set to zero and I have to set the correct number using an "exec.Setcurrenttool - macro". Only then a normal ATC is possible again.

Thank you for your help.
CNC_WW
 
Posts: 2
Joined: Tue Mar 26, 2024 12:41 pm

Re: ATC Toolnumber after restart

Postby ger21 » Wed Mar 27, 2024 10:36 am

Use the Constructor and Deconstructor macros to save and restore the tool #.
M99998
M99999
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: ATC Toolnumber after restart

Postby CNC_WW » Wed Mar 27, 2024 12:36 pm

I tried to experiment with those two macros. But how to i save the Toolnumber, which variable retains its value after a restart? Or do I have to write the number in a Label-ID?
CNC_WW
 
Posts: 2
Joined: Tue Mar 26, 2024 12:41 pm

Re: ATC Toolnumber after restart

Postby ger21 » Wed Mar 27, 2024 2:09 pm

Read the label and save it to the profile when closing with exec.Writekey. (M99999)
Then retrieve the tool number with exec.Readkey and use this when UCCNC starts (M99998).
Code: Select all
exec.Setcurrenttool(Newtool);
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: Dawid92 and 34 guests