pcdshub / pcdsdevices

Collection of Ophyd device subclasses for IOCs unique to LCLS PCDS.
https://pcdshub.github.io/pcdsdevices/
Other
4 stars 58 forks source link

EPICS Motor Record MSTA Field #1205

Open slactjohnson opened 3 months ago

slactjohnson commented 3 months ago

Current Behavior

We currently don't use the motor record MSTA field in our python class.

Expected Behavior

It would be nice to have some insight into the MSTA field, particularly the "HOMED" bit: https://epics-modules.github.io/motor/motorRecord.html#Fields_status

Context / environment

Some stages like SmarAct have homing routines that will simply time out, and it's not always easy to tell if the motor is really homed or if the home routine failed. This recently caused some confusion in the LHN BTS.

Jira ticket here: https://jira.slac.stanford.edu/browse/ECS-4783

Suggested Solution

It would be nice to add the home status to the python class, and potentially the motor widget used for screens.

ZLLentz commented 3 months ago

It should be possible to monitor the MSTA field and run a callback to forward some subset of the bits to dedicated boolean signals that could then become indicators on the screen.