Skip to content

Commit 62642dd

Browse files
authored
Merge pull request #3283 from Sigma1912/patch-2
Gmoccapy: fix bugs caused by GStat missing changes in interpreter mode
2 parents a3b4071 + eba8a99 commit 62642dd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5016,7 +5016,10 @@ def on_btn_select_tool_by_no_clicked(self, widget, data=None):
50165016
self.command.wait_complete()
50175017
command = "T{0} M6".format(int(value))
50185018
self.command.mdi(command)
5019-
5019+
# Next two lines fix issue #3129 caused by GStat missing changes in interpreter mode
5020+
command = "G4 P{0}".format(self.get_ini_info.get_cycle_time()/1000)
5021+
self.command.mdi(command)
5022+
50205023
# set tool with M61 Q? or with T? M6
50215024
def on_btn_selected_tool_clicked(self, widget, data=None):
50225025
tool = self.widgets.tooledit1.get_selected_tool()
@@ -5039,6 +5042,9 @@ def on_btn_selected_tool_clicked(self, widget, data=None):
50395042
else:
50405043
command = "M61 Q{0}".format(tool)
50415044
self.command.mdi(command)
5045+
# Next two lines fix issue #3120 also caused by GStat missing changes in interpreter mode
5046+
command = "G4 P{0}".format(self.get_ini_info.get_cycle_time()/1000)
5047+
self.command.mdi(command)
50425048
else:
50435049
message = _("Could not understand the entered tool number. Will not change anything!")
50445050
self.dialogs.warning_dialog(self, _("Important Warning!"), message)

0 commit comments

Comments
 (0)