Editing functionality of M61

More
5 years 7 months ago #200832 by tacklem60
I am looking to change the functionality of the M61 Qn button on the Tool screen of QTDragon. I have attempted to make the change in my handler file but have been unsuccessful so far and can't even find the tool page in qtdesigner.

I would like to add tool length compensation automatically during the M61 (or even change the M61 to a M6). I have tried locating the M61 line in the handler file and adding a G43 h{} inside the parentheses but that is clearly not the correct way to do this as it corrupts the load of LinuxCNC until delete those changes in the handler.

I'm really not sure if I am the outlier here, but I can't picture a time when I would want to change the tool number in the spindle and NOT have that tool offset also inserted so I'm hoping this change will also help others if it is simple enough to do. I like the idea of using M61 vs M6 because it removes the additional step of hitting ok on the manual tool change dialog that would be unnecessary in my opinion.

Joe

Please Log in to join the conversation.

More
5 years 7 months ago #200894 by cmorley
Change the line to something like this (this is for master branch)
Code:
ACTION.CALL_MDI("M61 Q{} G43".format(checked[0]))

Please Log in to join the conversation.

More
5 years 7 months ago #200929 by tacklem60
That worked perfectly. I am guessing it was an issue with my formatting and trying to add the h value in there. Simply typing g43 into the existing Q{} line was all that was needed. I think the GUI is finally setup exactly how I want it.

Please Log in to join the conversation.

More
5 years 7 months ago #200975 by cmorley
I think there are two places that require that change - I saw another spot that had m61.

Please Log in to join the conversation.

More
5 years 7 months ago #200979 by tacklem60
I actually stumbled on the same thing. I just searched M61, there are two places with the identical "M61 Q{}" text in it. For reference, placing G43 in the first occurance had no effect. The second place it shows up worked exactly as I wanted by simply adding G43 to the end of that statement.

As I said above, I really can't imagine a time where I would want to change the tool number in the spindle and not insert a G43 so it may be worth adding to the preinstalled QTDragon for other users as well.

Joe

Please Log in to join the conversation.

More
5 years 7 months ago #200982 by cmorley
I think one is used only if you set auto reload last tool option.

Yes I can't imagine when you would not want the g43 - but i never ran cnc mills professionally.

I am certainly willing to change it if there is a number of requests.

Please Log in to join the conversation.

More
5 years 5 months ago #210602 by ikkuh
Replied by ikkuh on topic Editing functionality of M61

cmorley wrote: I think one is used only if you set auto reload last tool option.

Yes I can't imagine when you would not want the g43 - but i never ran cnc mills professionally.

I am certainly willing to change it if there is a number of requests.


I vote for this. Will make auto toollength probing much more easily.

Please Log in to join the conversation.

More
5 years 5 months ago #210637 by cmorley
ok done

Please Log in to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum