Beamline elements (former "MSetPoint") help

Beamline elements (former "MSetPoint") is a system designed to control a beam line at an accelerator facility using the EPICS Channel Access interface. It is inspired by the SetPoint system from PSI, Switzerland, but implemented as a custom page within MIDAS, complemented by a general EPICS front-end program.

Usage

The Beamline elements system utilizes two pages for controlling a beam line with multiple elements. The Beamline_elements page allows users to adjust the demand values for all elements. In contrast, the Beamline_elements_config page is designed for experts to configure the entirety of the beam line elements.

Beamline_elements

Beamline_elements dialog

To modify a value for an element, click the number in the Set value column. After making your change, press return. The Beamline_elements Frontend program will then promptly send the new value to the beamline element via EPICS Channel Access. If the Beamline_elements Frontend isn't active, you can still change the value, but there will be no effect. Ensure the program is running by checking the "Programs" page. If the Beamline_elements Frontend isn't active, a warning will appear at the top of the page. Beamline settings can be saved in two ways:

The interface also permits direct command sending to devices, such as turning a device on and off. To execute this, select one or more devices by clicking on their names (press or to select multiple devices) and then click on "Command". A predefined set of commands will appear. By clicking on one, the command will be dispatched to the chosen device(s). When a settings file is loaded or imported, the values appear in the File value column. However, they aren't applied to the actual element immediately. To apply them, click on the right arrow at the top of the window. A dialog box will then open, allowing you to input a scaling factor. This factor will be applied to all magnet elements, facilitating easy tuning of the beamline to various momenta. If you retain the default value of one, the values from the file will be applied directly without any change. To apply values to only certain elements, ensure you select those elements before clicking the arrow.

Beamline_elements_config

Beamline_elements_config dialog

The page contains one line for each beamline element. You can define various things:

The top row lets you change the main title of the MIDAS installation and the EPICS gateway. The Filename is set automatically if a configuration file gets loaded. This can be done with the Load button (from the sever) and the Import button (upload from the client). Configurations can be saved with the Save and Export buttons similarly. The format of the configuration file is simply the ODB Dump of the subtree /Equipment/Beamline_elements/Settings in JSON format, which can also be loaded with the odbedit program as odbedit -c "load xxx.json".

Beamblocker status meaning

The number in the beamblocker status encodes information via bitmasks. For convenience, the table below shows the meaning of each status number.
Number Blocker state Pass RPS
0 Moving Pass Bew.NOK RPS Bew.NOK
1 Open Pass Bew.NOK RPS Bew.NOK
2 Closed Pass Bew.NOK RPS Bew.NOK
3 Error Pass Bew.NOK RPS Bew.NOK
4 Moving Pass Bew.OK RPS Bew.NOK
5 Open Pass Bew.OK RPS Bew.NOK
6 Closed Pass Bew.OK RPS Bew.NOK
7 Error Pass Bew.OK RPS Bew.NOK
8 Moving Pass Bew.NOK RPS Bew.OK
9 Open Pass Bew.NOK RPS Bew.OK
10 Closed Pass Bew.NOK RPS Bew.OK
11 Error Pass Bew.NOK RPS Bew.OK
12 Moving Pass Bew.OK RPS Bew.OK
13 Open Pass Bew.OK RPS Bew.OK
14 Closed Pass Bew.OK RPS Bew.OK
15 Error Pass Bew.OK RPS Bew.OK

Mask 0x0003

Mask 0x0004

Mask 0x0008

Version 1.0