From c1619111cff0c12fb7cc8385856aae5170d14101 Mon Sep 17 00:00:00 2001 From: x12sa Date: Tue, 16 Jun 2026 15:58:09 +0200 Subject: [PATCH] refactor(bl-optics): adapt bl_optics_hutch --- csaxs_bec/device_configs/bl_optics_hutch.yaml | 145 +++++++++++------- 1 file changed, 86 insertions(+), 59 deletions(-) diff --git a/csaxs_bec/device_configs/bl_optics_hutch.yaml b/csaxs_bec/device_configs/bl_optics_hutch.yaml index 5241a95..67a9ea3 100644 --- a/csaxs_bec/device_configs/bl_optics_hutch.yaml +++ b/csaxs_bec/device_configs/bl_optics_hutch.yaml @@ -203,46 +203,52 @@ ccm_energy: ######################## SMARACT STAGES ################################## ########################################################################## -xbpm2x: - description: X-ray beam position monitor 1 in OPbox - deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor - deviceConfig: - axis_Id: A - host: x12sa-eb-smaract-mcs-03.psi.ch - limits: - - -200 - - 200 - port: 5000 - sign: 1 - enabled: true - onFailure: retry - readOnly: false - readoutPriority: baseline - connectionTimeout: 20 - userParameter: - # bl_smar_stage to use csaxs reference method. assign number according to axis channel - init_position: 22.5 - bl_smar_stage: 0 +# xbpm2x: +# description: X-ray beam position monitor 1 in OPbox +# deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor +# deviceConfig: +# axis_Id: A +# host: x12sa-eb-smaract-mcs-03.psi.ch +# limits: +# - -200 +# - 200 +# port: 5000 +# sign: 1 +# enabled: true +# onFailure: retry +# readOnly: false +# readoutPriority: baseline +# connectionTimeout: 20 +# userParameter: +# init_position: 22.5 +# in_position: -1.5 +# # bl_smar_stage to use csaxs reference method. assign number according to axis channel +# bl_smar_stage: 0 + +# xbpm2y: +# description: X-ray beam position monitor 1 in OPbox +# deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor +# deviceConfig: +# axis_Id: B +# host: x12sa-eb-smaract-mcs-03.psi.ch +# limits: +# - -200 +# - 200 +# port: 5000 +# sign: 1 +# enabled: true +# onFailure: retry +# readOnly: false +# readoutPriority: baseline +# connectionTimeout: 20 +# userParameter: +# in_position: -1.0 +# # bl_smar_stage to use csaxs reference method. assign number according to axis channel +# bl_smar_stage: 1 + + + -xbpm2y: - description: X-ray beam position monitor 1 in OPbox - deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor - deviceConfig: - axis_Id: B - host: x12sa-eb-smaract-mcs-03.psi.ch - limits: - - -200 - - 200 - port: 5000 - sign: 1 - enabled: true - onFailure: retry - readOnly: false - readoutPriority: baseline - connectionTimeout: 20 - userParameter: - # bl_smar_stage to use csaxs reference method. assign number according to axis channel - bl_smar_stage: 1 scinx: description: scintillator in OPbox @@ -265,26 +271,47 @@ scinx: init_position: -23 bl_smar_stage: 2 -# poly: -# description: polarizer holder in OPbox -# deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor -# deviceConfig: -# axis_Id: D -# host: x12sa-eb-smaract-mcs-03.psi.ch -# limits: -# - -200 -# - 200 -# port: 5000 -# sign: 1 -# enabled: true -# onFailure: retry -# readOnly: false -# readoutPriority: baseline -# connectionTimeout: 20 -# userParameter: -# # bl_smar_stage to use csaxs reference method. assign number according to axis channel -# init_position: -23 -# bl_smar_stage: 3 +poly: + description: polarizer holder in OPbox + deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor + deviceConfig: + axis_Id: B + host: x12sa-eb-smaract-mcs-03.psi.ch + limits: + - -200 + - 200 + port: 5000 + sign: 1 + enabled: true + onFailure: retry + readOnly: false + readoutPriority: baseline + connectionTimeout: 20 + userParameter: + # bl_smar_stage to use csaxs reference method. assign number according to axis channel + init_position: -23 + bl_smar_stage: 1 + +polrot: + description: rotation of crytal of the polarizer + deviceClass: csaxs_bec.devices.smaract.smaract_ophyd.SmaractMotor + deviceConfig: + axis_Id: A + host: x12sa-eb-smaract-mcs-03.psi.ch + limits: + - -200 + - 200 + port: 5000 + sign: 1 + enabled: true + onFailure: retry + readOnly: false + readoutPriority: baseline + connectionTimeout: 20 + userParameter: + in_position: -1.0 + # bl_smar_stage to use csaxs reference method. assign number according to axis channel + bl_smar_stage: 0 # dmm1_trx_readback_example: # This is the same template as for i.e. bpm4i # description: 'This is an example of a read-only Epics signal'