Its in the python handler file
In 2.9.2:
Code:
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)
in 2.9.3:
Code:
def btn_goto_location_clicked(self):
dest = self.w.sender().property('location')
if dest == 'home':
x = float(self.w.lbl_home_x.text())
y = float(self.w.lbl_home_y.text())
elif dest == 'sensor':
x = float(self.w.lineEdit_sensor_x.text())
y = float(self.w.lineEdit_sensor_y.text())
else:
return
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, self.calc_mdi_move_wait_time(x,y))