-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Description
As a user on SXD and elsewhere it would be useful to have a minimum and maximum gap setting enforced in the jaws to avoid clashes. You can set DRVH and DRVL fields on HGAP:SP and VGAP:SP but these only work if you set the gap PV directly, if you move an individual motor blade then you may end up with HGAP / VGAP readback going less these DRVH and DRVL values and causing a clash.
- decide if separate PVs are needed for min/max, or just look at existing DRVH and DRVL on gap SP and enforce these more generally. mingap == maxgap means do not enforce
- checking SPs in the jaws db will not catch setting values directly on motors. Y
- You could try and trap at the motor SP level (monitor motor .VAL in the jaws.db) or monitor the realtime readback (HGAP / VGAP). In either case you want to write to .STOP on the motor. Monitoring HGAP/VGAP probably needs less additional logic as the gap maths has been done for you, however monitoring motor SP will give more immediate action. It also depends on what a scientists wants to happen when they give too small a gap e.g. reject move (will happen if monitor SP) v move to smallest/largest allowed (monitor gaps live readback). Move to smallest/largest is consistent with drvh/drvl so may be best?
acceptance cirteria
- HGAP and VGAP cannot fall outside specified values
Reactions are currently unavailable