diff --git a/epics_widgets/MotorTweak.py b/epics_widgets/MotorTweak.py index b768631..522e9de 100644 --- a/epics_widgets/MotorTweak.py +++ b/epics_widgets/MotorTweak.py @@ -132,7 +132,7 @@ class MotorTweak(QWidget, Ui_MotorTweak): self._val=rbv+dist except AttributeError: pass - m.move(self._val, ignore_limits=True, relative=False) + m.move(self._val, ignore_limits=self._ignore_limits, relative=False) #old code move relative to VAL not relative to RBV #try: # self._val+=dist @@ -170,7 +170,7 @@ class MotorTweak(QWidget, Ui_MotorTweak): except AttributeError: pass m=self._motor - m.move(drive, wait=wait, ignore_limits=True, relative=False) + m.move(drive, wait=wait, ignore_limits=self._ignore_limits, relative=False) if assert_position: assert_tweaker_positions([(self, drive, 0.1)], timeout=1) @@ -338,7 +338,7 @@ class MotorTweak(QWidget, Ui_MotorTweak): m.put('TWV', tv, wait=True) elif action == tozeroAction: - m.move(0.0, ignore_limits=True) + m.move(0.0, ignore_limits=self._ignore_limits) elif action == stopmotorAction: m.stop_go = SPMG_STOP if m.stop_go == SPMG_GO else SPMG_GO