mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-10 18:51:53 +02:00
turn exception to warning
The next move command will try to clear the error. Here it should not prevent that,
This commit is contained in:
@ -133,15 +133,13 @@ class EpicsMotorEC(EpicsMotor):
|
|||||||
def move(self, position, wait=True, **kwargs) -> MoveStatus:
|
def move(self, position, wait=True, **kwargs) -> MoveStatus:
|
||||||
"""Extended move function with a few sanity checks
|
"""Extended move function with a few sanity checks
|
||||||
|
|
||||||
Note that the default EpicsMotor only supports the 'GO' movement mode.
|
Check ECMC error and interlocks. They may get cleared by the move command. If not, exception
|
||||||
This could get it deadlock if it was previously explicitly stopped.
|
will be raised.
|
||||||
In addition to parent method, this also checks the ECMC error status
|
|
||||||
before moving.
|
|
||||||
"""
|
"""
|
||||||
# Check ECMC error status before move
|
# Check ECMC error status before move
|
||||||
error = self.error.get()
|
error = self.error.get()
|
||||||
if error:
|
if error:
|
||||||
raise RuntimeError(f"Motor is in error state with message: '{self.error_msg.get()}'")
|
self.log.warning(f"Motor is in error state with message: '{self.error_msg.get()}'")
|
||||||
|
|
||||||
# Warn if trying to move beyond an active limit
|
# Warn if trying to move beyond an active limit
|
||||||
if self.high_interlock.get(use_monitor=False) and position > self.position:
|
if self.high_interlock.get(use_monitor=False) and position > self.position:
|
||||||
|
Reference in New Issue
Block a user