Open zz912 opened 6 months ago
I would like to ask @gmoccapy and @hansu to review my patch proposal.
The idea as described sounds fine, but I think we need Norbert (@gmoccapy ) to look at the code to be sure it will work without unintended side-effects.
I agree with Andy. It will be good to wait for Norbert.
I would like to add some more information about what this patch is good for. Currently, Gmoccapy behaves randomly when we want to change the tool with G43 active. Sometimes only a tool change is implemented. Sometimes a tool change is performed and the tool table window is closed.
I made two examples. In both cases I have G43 active and in both cases I change the tool from tool1 to tool10.
@gmoccapy Can we at least add this Pull Request to the master branch? The master branch is still in development and could be tested.
Please do not add this, I do only know one case where the actual way does not work. I do hope to have time to go on developing the GUI in about one year
@gmoccapy I was thinking about: Gmoccapy - Patch for Combination M61 + G4 #2489 - Version 3
Replace MDI commands:
if "G43" in self.active_gcodes and self.stat.task_mode != linuxcnc.MODE_AUTO:
self.command.mode(linuxcnc.MODE_MDI)
self.command.wait_complete()
self.command.mdi("G43")
self.command.wait_complete()
By changing the parameters:
'5401-5409' - Tool Offsets for X, Y, Z, A, B, C, U, V & W. Set by G43. Volatile.
There would be no need to deal with problematic MDI mode switching.
Would it be acceptable to you if one of the experienced programmers did it?
I understand that you don't want push PR from an amateur like me. That I'm an amateur is a fact, it's not sarcasm.
This patch ensures that the automatic command G43 is not executed immediately, but when the LCNC is in IDLE mode.