Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmoccapy: fix bugs caused by GStat missing change in interpreter mode #3282

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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