in 2.92 this is the python code called:
Code:
# offsets tab
def btn_goto_sensor_clicked(self):
x = float(self.w.lineEdit_sensor_x.text())
y = float(self.w.lineEdit_sensor_y.text())
if not STATUS.is_metric_mode():
x = x / 25.4
y = y / 25.4
ACTION.CALL_MDI("G90")
ACTION.CALL_MDI_WAIT("G53 G0 Z0")
command = "G53 G0 X{:3.4f} Y{:3.4f}".format(x, y)
ACTION.CALL_MDI_WAIT(command, 10)
The bug fix:
Code:
def btn_goto_sensor_clicked(self):
x = float(self.w.lineEdit_sensor_x.text())
y = float(self.w.lineEdit_sensor_y.text())
if STATUS.is_metric_mode():
x = INFO.convert_machine_to_metric(x)
y = INFO.convert_machine_to_metric(y)
else:
x = INFO.convert_machine_to_imperial(x)
y = INFO.convert_machine_to_imperial(y)
ACTION.CALL_MDI("G90")
ACTION.CALL_MDI_WAIT("G53 G0 Z0")
command = "G53 G0 X{:3.4f} Y{:3.4f}".format(x, y)
ACTION.CALL_MDI_WAIT(command, 10)
But either way if you change the 'Tool Sensor Location' in the offsets tab it should at least go to a different place.
I will just point out it's a G53 move so machine/absolute coordinate system not G5x.
We could try a temporary fix to test if this is the problem.