Retaining current tool number after shutdown

More
06 Oct 2017 23:19 #100030 by babinda01
Hi Guys
I am sure other people have encounted this problem before, but I cant find an answer. I want to be able to have the control startup with the last used tool in memory.
I have assigned variable #4999 = #5400, and then created a Remapped MCode that simply does a M71 Q#4999. This works perfectly for me except I cant get it to exercute automatically on startup.
I have added it to STARTUP_CODE under the [RS274NGC] Section. If I change the title as RS274NGC_STARTUP_CODE - Linuxcnc hangs on startup, if I leave it as STARTUP_CODE linuxcnc starts but it has no effect.

Can someone please tell me what I am doing wrong.

Best regards
Andrew

Please Log in or Create an account to join the conversation.

More
09 Oct 2017 08:13 #100115 by newbynobi
Durring start, the axis are not homed! You are only allowed to set a tool with mdi command with homed axis!

If you use gmoccapy 2 from master, just go to the settings page and enable reload tool on start up.
After that step the tool number will be stored in your pref file and will be set with M61Qtollnumber automatically after homing the machine.

Norbert

Please Log in or Create an account to join the conversation.

More
10 Oct 2017 01:30 #100130 by babinda01
Hi Norbert

Thanks a lot for the info. I will upgrade to master and try that.

Andrew

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.059 seconds
Powered by Kunena Forum