Skip to content

Commit

Permalink
gmoccapy: fix bugs caused by GStat missing change in interpreter mode
Browse files Browse the repository at this point in the history
this fixes issues LinuxCNC#3120 and LinuxCNC#3129
  • Loading branch information
Sigma1912 authored Jan 13, 2025
1 parent 8470e3a commit 4f31e52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/emc/usr_intf/gmoccapy/gmoccapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5020,6 +5020,9 @@ def on_btn_select_tool_by_no_clicked(self, widget, data=None):
self.command.wait_complete()
command = "T{0} M6".format(int(value))
self.command.mdi(command)
# Next two lines fix issue #3129 caused by GStat missing change in interpreter mode
command = "G4 P{0}".format(self.get_ini_info.get_cycle_time()/1000)
self.command.mdi(command)

# set tool with M61 Q? or with T? M6
def on_btn_selected_tool_clicked(self, widget, data=None):
Expand All @@ -5043,6 +5046,9 @@ def on_btn_selected_tool_clicked(self, widget, data=None):
else:
command = "M61 Q{0}".format(tool)
self.command.mdi(command)
# Next two lines fix issue #3120 also caused by GStat missing change in interpreter mode
command = "G4 P{0}".format(self.get_ini_info.get_cycle_time()/1000)
self.command.mdi(command)
else:
message = _("Could not understand the entered tool number. Will not change anything!")
self.dialogs.warning_dialog(self, _("Important Warning!"), message)
Expand Down

0 comments on commit 4f31e52

Please sign in to comment.