mxcubecore.HardwareObjects.BlissMotorProxy#

Example yml configuration:

class: BlissMotorProxy.BlissMotorProxy
configuration:
  actuator_name: dtox
  username: Detector Distance

Classes

BlissMotorProxy(name)

Bliss Motor implementation, using BlissProxy/blissclient.

BlissMotorStates(value[, names, module, ...])

MOVING = "Axis is moving" READY = "Axis is ready to be moved (not moving ?)" FAULT = "Error from controller" LIMPOS = "Hardware high limit active" LIMNEG = "Hardware low limit active" HOME = "Home signal active" OFF = "Axis power is off" DISABLED = "Axis cannot move"

class mxcubecore.HardwareObjects.BlissMotorProxy.BlissMotorProxy(name)[source]#

Bases: AbstractMotor

Bliss Motor implementation, using BlissProxy/blissclient.

SPECIFIC_STATES#

alias of BlissMotorStates

abort()[source]#

Stop the motor movement

get_limits()[source]#

Returns motor low and high limits. :returns: two floats tuple (low limit, high limit). :rtype: (tuple)

get_specific_state()[source]#

Get the motor state. :returns: Motor states as list of BlissMotorStates enum :rtype: (list)

get_state()[source]#

Get the motor state. :returns: Motor state. :rtype: (enum HardwareObjectState)

get_value()[source]#

Read the motor position. :returns: Motor position. :rtype: float

get_velocity()[source]#

Read motor velocity. :returns: velocity [unit/s] :rtype: (float)

init()[source]#

Initialise the motor

wait_ready(timeout: float | None = None)[source]#

Wait timeout seconds till object is ready.

If timeout is None: wait forever.

Parameters:

timeout (Optional[float], optional) – Timeout (seconds). Defaults to None.

class mxcubecore.HardwareObjects.BlissMotorProxy.BlissMotorStates(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

MOVING = “Axis is moving” READY = “Axis is ready to be moved (not moving ?)” FAULT = “Error from controller” LIMPOS = “Hardware high limit active” LIMNEG = “Hardware low limit active” HOME = “Home signal active” OFF = “Axis power is off” DISABLED = “Axis cannot move”