VerSoX B07-B: a high-throughput XPS and ambient pressure NEXAFS beamline at Diamond Light Source

This manuscript describes a new beamline for soft X-ray spectroscopy – VerSoX B07-B – at Diamond Light Source, UK. The beamline is designed to accommodate a wide range of sample environments and measurement conditions ranging from ultrahigh vacuum to in situ liquid studies.


Introduction
The Versatile Soft X-ray (VerSoX) beamline B07 at Diamond Light Source (DLS) has a very diverse user base across all branches of science and engineering, including studies of heterogeneous catalysts, batteries, biomaterials, sensors, functional energy materials, ionic liquids, protective coatings and pharmaceuticals.Soft X-ray photoelectron spectroscopy (XPS) and X-ray absorption spectroscopy (XAS), also termed near-edge X-ray absorption fine-structure (NEXAFS) spectroscopy, are ideal techniques to probe local interactions at the surfaces and in sub-surfaces of these materials.XPS and XAS provide elemental, chemical and structural information about solids, liquids and gases, as well as the interfaces between these phases (e.g.solid-gas, solid-liquid, liquid-vapour interfaces).The popularity of laboratory XPS as a standard surface characterization technique is well established (Greczynski & Hultman, 2020;Stickle & Young, 2019).Synchrotron-based XPS provides a number of additional advantages, especially a variable photon energy and a high flux of photons across the whole band of available photon energies.Variation of the photon energy can thus be utilized to vary the information depth of the spectra from bulk to very high surface sensitivity, increase photoabsorption cross-sections and facilitate resonant photoemission techniques.
The VerSoX beamline B07 is split into two branches, B and C, each with dedicated optics to enable simultaneous, independent operation (Grinter et al., 2022).The beamline layout for the two branches is shown schematically in Fig. 1.Branch C provides an ambient-pressure XPS facility that has been described in detail previously (Held et al., 2020).The focus of this paper is on branch B, which provides soft X-rays for two endstations dedicated to high-throughput UHV XPS (ES-1) and ambient pressure NEXAFS (ES-2), respectively.The soft X-ray photon energy range between �50 eV and �2200 eV provided by B07-B includes key absorption edges, such as the K-edges from lithium to phosphorus (atomic numbers Z = 3 to 15) and the L-edges from magnesium to yttrium (Z = 12 to 39), which include all first-row transition metals.The combination of fluorescence and electron yield detection techniques results in variable depth sensitivity for XAS measurements from a few nanometres for electron-yield (Schroeder, 1996) to over 100 nm for soft X-ray fluorescence, which cannot be achieved by XPS in this energy range.

Beamline B07-B
B07-B has two endstations which have been designed to accommodate studies under UHV as well as investigations of samples incompatible with UHV conditions or experiments that require high-pressure gas reactor cells.Combined, the two endstations cover the pressure range from 1 � 10 À 10 mbar to 1 � 10 3 mbar.This extended pressure range complements the near-ambient-pressure XPS (NAP-XPS) branch C of the beamline, which has been in operation since 2017 (Held et al., 2020;Grinter et al., 2022).

Beamline design
The two branches of B07 share a similar overall design with the aim to provide a good photon energy resolution (E/�E > 5000) over a wide energy range (B: 45 eV to 2200 eV; C: 120 eV to 2800 eV) and with a photon flux >10 10 photons s À 1 (Held et al., 2020;Grinter et al., 2022).A dipole-bending magnet (1.4 T) serves as the source for both branches, emitting horizontally polarized radiation in a fan of �30 mrad horizontal width.A toroidal mirror (M1b) (optical surface 1380 mm � 20 mm; reflection angle 2.6 � ) captures 2.4 mrad of the bending magnet radiation fan, collimates the beam vertically and focuses it horizontally at the exit slit.Owing to the large size of the mirror, the mounting and clamping of internal water-cooling tubes caused distortions in its focal length and slope errors outside of the design parameters.This is compensated for by gentle counter heating (� 30 � C) using a dedicated closed-loop chiller (Hand et al., 2019)  clean up slits before the monochromator to discard the periphery of the beam which is worst-affected by the distortion.The pink beam enters a collimated plane grating monochromator (cPGM) manufactured by FMB Berlin, and the monochromatic beam is then focused vertically by a cylindrical mirror (M3b) onto the exit slits.The PGM is equipped with three gratings with line densities of 400 lines mm À 1 , 600 lines mm À 1 and 1000 lines mm À 1 to deliver the desired resolving power and flux across the energy range of the beamline.The choice of a cPGM permits the use of a variable fixed focus constant (c ff ) condition, which can be utilized to provide absolute energy calibration, higher-order light suppression and higher resolution with a trade-off in flux, if desired (Follath, 2001;Weiss et al., 2001).Two pairs of refocussing mirrors (M4b1/2 -vertical; M5b1/2 -horizontal) focus the beam onto the sample positions ES-1 and ES-2, respectively.Each mirror has independent switching and fine positioning mechanics.Polished copper plates facing the optical surfaces of the two M5b mirrors collect emitted photoelectrons and thus provide an I 0 measurement for normalization of X-ray absorption spectra with respect to the beamline transmission.All of the beamline optics are maintained in an O 2 partial pressure around 3 � 10 À 8 mbar to prevent carbon build up on the mirror and grating surfaces (Risterucci et al., 2012;Held et al., 2020).The layout and technical details of the main optical elements are summarized in Fig. 1, and Fig. S1 and Table S1 of the supporting information.The beamline is equipped with various diagnostic tools, including metal and fluorescent (YAG:Ce) screens for beam characterization, metal foils and meshes (Cu, Au) for relative beam intensity and I 0 measurements, photodiodes for absolute flux measurement, quadrant beam position monitors (QBPMs) for auto-alignment of the switching mirrors, and a purpose-designed gas cell located downstream of the exit slits for characterizing the monochromator resolution.

Beamline performance
Measurements of the energy resolution and calibration of the PGM are performed using the gas cell.This cell can be isolated from the vacuum of the rest of the beamline by inserting two 50 nm-thick aluminium membranes mounted on gate valves, thus allowing it to be pressurized up to � 1 � 10 À 1 mbar.The photoionization current is measured from a thin copper wire running parallel to the beam path, which is at a potential of +36 V with respect to a coaxial steel cylinder of approximately 20 mm diameter.Using a series of inert gases with sharp X-ray absorption resonances, it is possible to determine the beamline resolution over a good portion of its energy range: He 1s 2 !(2spn � 2pns) double excitation (62.84 eV), Ar L 2 (244.4 eV), N K (400.8 eV) and Ne K (867.1 eV), as shown in Fig. 2.
There are three main contributions to the observed widths of the absorption features: the intrinsic lifetime broadening of the resonance, À , with a Lorentzian or Fano lineshape; a Gaussian lineshape dominated by the slope errors of the beamline optics; and the exit slit opening whose contribution is also dependent on the dispersion of the grating.For the rest of this work, we refer to the photon energy resolution (�E), which is combination of the Gaussian width and a box function representing the exit slit opening (�E 2 = FWHM G 2 + FWHM box

2
).The photon energy resolution for the three gratings under optimal conditions (smallest exit slits of 4 mm) are summarized in Table 1.The helium 1s 2 !(2spn � 2pns) double excitation spectrum provides an excellent test of the performance at low energies.Fig. 2(a) shows the series of very narrow Fano resonances in the range 60-66 eV.The inset shows the higher states where it is possible to resolve up to the 16+ level (Rost et al., 1997).The 3-state has a very narrow Lorentzian width (0.12 meV) (Rost et al., 1997) and, as a result, the overall width (�2 meV) is dominated by the beamline, as shown in Fig. 3.The argon 2p 3/2 !4s transition at 244.4 eV [Fig. 2(b)] has a Lorentzian width fitted at 111 meV, yielding a beamline contribution in the range 11-20 meV.The frequently used Kedge of N 2 gas is shown in Fig. 2(c) with the vibrational fine structure of the 1s !�* resonance requiring fitting with seven individual Voigt functions to extract the beamline resolution.A high-resolution plot of this is displayed in Fig. S2(a).Due to the relatively large Lorentzian width (112 meV) and overlap between the vibrational components, there is significant uncertainty in the resultant fitting, but the beamline generally exhibits an ultimate resolution between 20 meV and 40 meV depending on the grating used.As expected, there is a clear pressure dependence on the width of the absorption resonances as demonstrated in Fig. S2(b) (Connerade et al., 1973).Fig. 2(d) shows the O K-edge of O 2 where again vibrational splitting of the main 1s !�* resonance can be observed.Due to the uncertainties in fitting these to measure the resolution, we have not used them in this case.For higher photon energies, we have used the Ne K-edge as shown in Fig. 2(e), in particular the 1s !3p transition, beamlines Table 1 B07-B PGM ultimate photon energy resolution (vertical exit slit opening 4 mm).
The lower energy bound of the 1000 l mm À 1 grating is � 100 eV.400 l mm À 1 600 l mm À 1 1000 l mm which yields a resolution in the range 75-119 meV, depending on the grating used.
The effect of opening the vertical exit slits is most clearly demonstrated in the double-excitation spectrum for He gas shown in Fig. 3.Here the '3-' resonance is shown as a function of the vertical exit slit opening from 4-184 mm for the 400 l mm À 1 (red) and 600 l mm À 1 (blue) gratings.The exit slit opening was recalibrated after installation on the beamline using telescopic imaging.At smallest exit slit settings, we observe a broadened Fano lineshape which progressively becomes larger as the exit slit is opened.The variation in resolution between the gratings is clearly evident at the larger exit slit positions.By fitting with a box function to represent the exit slit width convoluted with a Fano lineshape, the predicted dispersion of the gratings is confirmed.
The ultimate performance at the minimum exit slit opening of 4 mm is summarized in Fig. 4(a), where the photon energy resolution, as measured at the absorption edges for He, Ar, N 2 and Ne, is plotted as a function of photon energy for each of the three gratings of the PGM.The fitted lines in Fig. 4(a) clearly show that the energy resolution follows the expected E 3/2 dependency (Follath, 2001).The green line represents a fixed resolving power of E/�E = 5000, the original design specification of the beamline.By extrapolation, the beamline exceeds this specification by a large margin for all gratings at energies <1000 eV and is expected to meet the specification up to the maximum photon energy of 2200 eV with the 600 l mm À 1 and 1000 l mm À 1 gratings.
As demonstrated in Fig. 3, opening the vertical exit slits increases the observed width of the absorption features, but there is a concomitant increase in photon flux at the sample, as shown in Fig. 4(b).These data show the flux off the 400 l mm À 1 grating as measured with a photodiode at the sample position of ES-2 as a function of exit slit opening from 4 mm to 84 mm at four photon energies (50 eV: yellow; 100 eV: amber; 400 eV: orange; 1000 eV: red).All three show similar behaviour where there is the predicted linear increase with the exit slit opening.Fig. 4(c) shows the effect of opening the exit slits on the total beamline resolution for the three gratings (400 l mm À 1 : red; 600 l mm À 1 : blue; 1000 l mm À 1 : black) measured at three photon energies (62.8 eV: He; 244.4 eV: Ar; 400.8 eV: N 2 ).There is a linear relationship between the The 3-state of the helium 1s 2 !(2spn � 2pns) double-excitation spectrum as a function of exit slit opening for the 400 l mm À 1 (red) and 600 l mm À 1 (blue) gratings.Spectra are offset vertically for clarity.resolution and gap at large exit slit openings; however, for values less than �30 mm the gain in resolution becomes progressively lower as would be expected given the size of the dipole source and beamline optical arrangement.Another key factor in the ultimate photon energy resolution is the slope error of M1b, both intrinsic and that induced by the distortion caused by the rigid copper cooling lines (Hand et al., 2019).Fig. S3 demonstrates the effects of the counter heating (� 30 � C) we employ to correct the horizontal focus; changes on the order of degrees Celcius lead to a change in focal distance of �50 mm, and a change in horizontal beam width at the exit slits of up to 100%.
The transmission of the beamline was measured using an AXUV-100G photodiode mounted at the sample position in ES-2 and is shown for the three gratings in Fig. 5.The 400 l mm À 1 grating (red) is intended mainly for use at low energies <500 eV, the 600 l mm À 1 (blue) provides good overall performance above 500 eV, and the 1000 l mm À 1 (black) is intended for high-resolution measurements at high photon energies or for radiation-sensitive samples where a lower flux density might be desired.The 400 l mm À 1 and 1000 l mm À 1 gratings both have nickel coatings which give rise to significant absorption features at 850-870 eV (Ni L 2,3 -edge) and in the O K-edge region (from NiO) along with associated higher harmonics of these features, which require careful I 0 correction during absorption measurements, although these gratings are not typically used to scan Ni edges.The highenergy cut-off of the beamline is controlled to some extent by the c ff of the PGM and ultimately absorption at the Au M 4,5edge due to the coating of M1b.The photon flux above the Au M 4,5 -edge is approximately two orders lower; however, NEXAFS measurements of the S K-edge (2450 eV) are still possible in certain cases on samples with sufficiently high atomic concentration.A powerful feature of the collimated PGM design is the ability to vary c ff to minimize the higherorder transmission (Follath, 2001;Weiss et al., 2001), which B07-B is particularly susceptible to because of the high cut-off energy of M1b.By reducing c ff from 2.25 to 1.40 (Fig. 5 displays the flux at c ff 1.4), the second-(and higher-) order intensity is reduced by 95% (see the supporting information, Fig. S4) at the expense of a decrease in the resolving power by a factor of 2-3.
The beam size at the sample position of the two endstations was measured using knife-edge scans and by visualizing the beam spot on a fluorescent screen (YAG:Ce) as displayed in Fig. S5.In the horizontal direction, the beam is 150 (�20) mmwide at ES-1 (normal incidence, 280 mm when rotated by 60 � for normal emission XPS, see below) and 240 (�20) mm at ES-2.The height of the beam is defined by the vertical gap of the exit slits; at 30 mm, the largest opening normally used, it is 80 (�10) mm at ES-1 and 100 (�10) mm at ES-2.To avoid  beam damage, samples in ES-1 can also be illuminated with the beam focused on ES-2, either horizontally, vertically or in both directions, thus spreading the same photon flux over a larger area and decreasing the flux density.The resultant beam sizes and flux density for a photon energy of 1200 eV and a resolution of 300 meV at normal emission geometry for XPS are shown in Table 2.The horizontal size of the beam can be further adjusted by a set of slits located between M1b and the PGM (see Fig. 1) to give an optimum match to the sample dimensions, if required.

Endstation 1: high-throughput XPS
Endstation 1 (ES-1) is dedicated to UHV XPS and NEXAFS experiments with the option of fully automated in-vacuum sample motion and manipulation for high-throughput measurements.A labelled schematic model of the endstation is shown in Fig. 6(a) with a photograph shown in Fig. S6.Samples are introduced into a fast-entry load lock either from air or via a vacuum-suitcase which is also compatible with the B07-C NAP-XPS system.They are then distributed via a fully motorized and software-controlled rotary distribution chamber ('UFO') to either the main preparation chamber (preparation chamber 1), the sample storage chamber with space for six sample holders or a small preparation chamber above the analysis chamber (preparation chamber 2).The preparation chambers include equipment for standard UHV sample treatment and preliminary characterization, including an inert gas-sputter source, e-beam evaporator, residual gas analyser, leak valves for gas dosing and low-energy electron diffraction (LEED) optics.Preparation chamber 1 is equipped with a four-axis manipulator (X, Y, Z, polar rotation) and permits heating/cooling between 150 K and 1300 K.The manipulator in preparation chamber 2 also serves the analysis chamber and has five axes (X, Y, Z, polar and azimuthal rotations) and again offers heating/cooling between 150 K and 1300 K, dependent on the sample holder used.Gases, including toxic substances and high vapour pressure liquids, are delivered via a combination of manual and piezo-activated high-precision leak valves.A tungsten beam shutter (FMB Oxford) is located downstream of the analysis chamber, prior to the acoustic delay line, to allow maintenance of ES-2 while synchrotron experiments are performed in ES-1.ES-1 uses the Prevac PTS sample holder system which is also used in the B07-C NAP-XPS endstation (see photograph in Fig. S7).The sample holders contain integrated heaters (options including resistive or electron bombardment), electrical contacts for thermocouples which can be directly attached to the samples to ensure accurate temperature measurement and additional sample bias connections.Quartz crystal microbalance holders and flag style sample plate (as used on ES-2) adapters are also available.A larger 50 mm � 50 mm sample plate is also available for mounting multiple samples for high-throughput measurements which do not require heating (see photograph in Fig. S7).
A dedicated software perspective has been developed within GDA to handle these large sample plates where up to 100 samples could be mounted at a time.A high-resolution photograph of the plate is taken in the sample-handing laboratory prior to introduction into the endstation, and users can register and label the samples as well as choosing precise locations on them to perform XPS and/or NEXAFS scans.The software then automatically performs these scans, moving the plate to the desired locations without requiring further user input, enabling easier remote operation of the beamline and increasing throughput.Precise, rapid calibration of the photon energy during XPS experiments is possible by exploiting the presence of second-order X-rays as described in Fig. S8.Since commissioning was completed in 2022, the endstation has been used for a variety of user experiments including highthroughput measurements and traditional single-crystal surface science studies (Tolosana-Moranchel et al., 2023;Stoodley et al., 2023).

Endstation 2: ambient-pressure NEXAFS
Endstation 2 (ES-2) is located 2.0 m downstream of ES-1; the two are separated by an acoustic delay line (ADL) chamber as shown in the 3D model in Fig. S9.ES-2 is designed for NEXAFS measurements of solid, liquid and gaseous samples with a pressure range from 10 À 7 mbar to 1 bar.A photograph of the vacuum chamber is shown in Fig. 8(a).Samples are introduced via a fast entry door on the top of the chamber, and mounted either directly on flag-style sample plates [Fig.8(c)] or on custom-made multi-sample holders [Fig. 8(d)] if heating is not required, which fit onto the four-axis sample manipulator [Fig. 8(b)].This manipulator is capable of heating to 400 � C under UHV or around 200 � C under 1 bar, depending on the gas.The lower part of the sample holder contains a number of standard samples for energy referencing [Fig.8(c)].The high-pressure environment of the endstation is separated from the UHV of the beamline by a 75 nm-thick silicon nitride (SiN x ) membrane, which is glued to a quick-torr fitting for rapid exchange in case of breakage [Fig. 8(b)].If this membrane fails, the ADL delays the inrush of gas (Betz et al., 1979) for long enough (>10 ms) to enable a fast-closing valve (VAT 75 series) to shut, thus protecting the vacuum of ES-1 and the beamline optics.The entire endstation is enclosed in a small radiation hutch, which ensures user safety irrespective of modifications to the internal setup, which might cause radiation leaks.
Inert and non-toxic gases are supplied to the endstation via manual leak valves and via an automated gas inlet system for standard measurements under 1 mbar He.To enable transfer of samples under inert conditions, a vacuum suitcase has been developed that is compatible with most commercial glove boxes, and can be adapted to suit other vacuum systems that use similar flag style sample plates.The measurement principles for NEXAFS experiments in ES-2 are shown in the diagram in Fig. 8(e).Total electron yield (TEY) is measured either via the sample drain current or off a positively biased (108 V) electrode glued to the SiN x membrane of the beamline entrance [Fig.8(b)] using a Stanford Research Systems SR570 low-noise current amplifier.This latter method is particularly suited for the measurement of insulating samples.For total fluorescence yield (TFY) measurements, a photodiode (AXUV-100 G TF400) is used which has a 150 nm aluminium coating to block photoelectrons and stray visible light [Fig. 8(b)].A future upgrade of the ES-2 chamber will permit mounting of the Vortex SDD PFY detector, although the fragility of its entrance window must be considered when using high-pressure gas or liquid cells.To correct for structure in the beamline transmission and provide I 0 , the photocurrent off the final refocussing mirror (M5b) is measured simultaneously with any NEXAFS data, using a biased collector plate [Fig.8(e)].When measuring the N K-edge or Si K-or L-edges of samples containing low atomic concentrations of these elements, it is important to accurately correct for any absorption by the silicon nitride window.This is most easily achieved by backfilling the chamber with a few millibar of helium and monitoring the current on the beamline entrance electrode over the absorption edge of interest.In Fig. 8 trace N 2 impurities in the He gas.Energy calibration of soft X-ray NEXAFS is typically via comparison with known standard samples from the literature.At the C and O K-edges, characteristic features in the beamline transmission (acquired simultaneously by monitoring the M5b current) also allow quick energy calibration (see Fig. S10).UV illumination is provided at the sample position by coupling of a 365 nm LED UV source via in-vacuum fibre-optics.
Fig. 9(a) shows C K-edge TEY NEXAFS spectra of highly oriented pyrolytic graphite (HOPG) at normal and 45 � incidence.The 1s !�* transition at 285.4 eV is symmetryforbidden at normal incidence when the polarization vector is parallel to the planes of the carbon atoms and therefore not observed in the corresponding spectrum (blue).This sensitivity of NEXAFS to the surface anisotropy can be used to quantify the degree of beamline polarization as described by Watts et al. (2006).Following this methodology, we measure the degree of linear polarization under standard beamline operating conditions of 92 � 4% (Fig. S11).Fig. 9(b) compares the TEY (orange) and TFY (green) NEXAFS spectra of the Al K-edge of aluminium foil, which was exposed to air.The TFY signal is that of bulk Al, whereas the more surface sensitive TEY signal also has features due to the native oxide layer at the surface.NEXAFS measurements at the K-edge of low atomic number elements, such as those shown in Fig. 9, or L-edge of the first-row transition metals typically take 5-10 min to acquire in TEY mode for concentrated samples.Using integration times of typically 0.1 s per data point, the scan rate is limited by the movement of the PGM grating and mirror which are currently operated in a step-scan mode.A continuous scanning mode will be implemented as a future upgrade to increase the data acquisition rate and improve the overall throughput.To facilitate remote operation of the beamline, a dedicated GDA perspective was developed.This collects the most important beamline controls and live camera views into one window, along with live data-plotting and Python scripting to enable operation of ES-2 from a single computer display.A screenshot of this perspective is shown in Fig. S12.The typical mode of operation involves mounting up to 20 samples on a large sample plate [as shown in Fig. 8(d)] followed by the user defining measurement locations (sample manipulator coordinates) and desired NEXAFS scans in a Python script, which can be run automatically.Such scripts can control common experimental parameters such as temperature, gas dosing and beamline setup (gratings, slits etc.), and future improvements will also enable automatic setting of the amplifier sensitivities.This enables the beamline to deliver 24 h operation with minimal user presence required on-site.

Cells
ES-2 is particularly well suited for easy attachment of small cells to contain liquids or high-pressure gases for operando NEXAFS investigations, a popular approach for similar soft X-ray beamlines around the world (Casta ´n-Guerrero et al., 2018;Velasco-Velez et al., 2014;Swallow et al., 2023b).Currently, two cells are available to users and operated on a regular basis: a micro-reactor for catalytic gas-phase reactions at pressures in the bar range and an electrochemical cell.Both are sealed with SiN x membranes and can be operated in either TEY or TFY mode.More details can be found in the subsections below.In addition, mounts have been machined to hold 'coin' and other similar cells for in situ studies of batteries, also sealed with X-ray transparent SiN x membranes and utilizing TFY detection.

Microreactor for in situ NEXAFS
A low-cost, reliable microreactor was developed in collaboration with the University of St Andrews, UK, with the aim of closing the pressure gap for the study of heterogeneous catalysts that require pressures in the 1 bar range.Figs.10(a flange (standard Cu gasket) which has a hole machined and an SiN x membrane (typically 100 nm thick) glued to the back of it to provide a path for the X-rays.The reactor is heated by a heating wire wrapped around insulating ceramics, through which up to 15 A current can be passed, allowing a maximum temperature of 450 � C (at 1 bar, measured by a K-type thermocouple attached to the body of the cell).The temperature at the sample position is between 20 � C and 40 � C lower than the indicated temperature of the thermocouple; look-up tables are used to precisely record the real temperature.To speed up cooling after high-temperature measurements, water can be passed through tubes at the back section of the reactor.
Gases, including toxic or flammable gases, such as CO or H 2 , are fed into the microreactor via 1/16 00 metal tubes from a mobile gas rig developed at DLS, with software-controlled mass-flow-controllers (MFCs) for up to eight gases, which are fully embedded into the beamline's EPICS control software.In addition, mass spectrometry and gas chromatography are available to assess the reaction products in situ.Fig. 10(c

Electrochemical cell
The electrochemical cell was developed in collaboration with Redox.me for operando X-ray spectroscopy of liquids and electro(photo)catalysts.The body of the cell, shown in Fig. 11  be operated either in two-electrode or three-electrode configuration, in static mode or with a constant flow of liquid via a syringe or peristaltic pump.Typical flow rates for the former are 600 ml min À 1 to minimize the potential for damage to the delicate silicon nitride membranes.An industry standard potentiostat (Ivium CompactStat) can be used to control the electrode potential during in situ electrochemical measurements.Alternatively, the potential of a given electrode can be controlled in the range � 5 V by the in-built biasing capability of the Stanford SR570 current amplifier that is used for TEY detection.
The total volume of the cell is approximately 300 ml; liquid is supplied by 1/16 00 peek tubes, which are interlocked to the ES-2 pressure gauges to cut the flow in the event of the SiN x membrane failing.The cell can be operated in TFY mode using the existing photodiode in the ES-2 chamber, or in TEY mode by connecting the working electrode to a current amplifier and grounding the counter electrode.As a future upgrade, there are plans to install a beam chopper to modulate the incoming X-rays and therefore the induced photo-induced current.This will enable detection of the TEY signal (typically picoamps) via a lock-in amplifier, in the presence of the much higher electrochemical current (typically milliamps) (Velasco-Velez et al., 2014).Fig. 11(c) shows TEY NEXAFS spectra of the O K-edge of water vapour (1 mbar, blue curve) and O 2 (2 � 10 -3 mbar, red curve) as well as both TEY (black curve) and TFY (green curve) NEXAFS of liquid water, obtained from the cell.Some saturation effects are visible in the TFY measurement, typified by the suppression of intensity/flattening off in the region 536-542 eV.

Summary and conclusions
VerSoX B07-B at Diamond Light Source is a new beamline for soft X-ray spectroscopy across a broad photon energy range (45-2200 eV), covering sample environments from UHV to gas pressures in the 1 bar range and permitting studies of liquids.The beamline provides medium-flux X-rays from a bending magnet (10 10 to 10 11 photons s À 1 ) with high energy resolution (up to E/�E = 30 000), focused on two endstations with spot sizes of 150 mm � 80 mm and 240 mm � 100 mm, respectively.ES-1 provides a UHV system for XPS and NEXAFS (TEY, AEY, TFY, PFY) with high-throughput measurement capabilities with motorized sample manipulation and control, and standard surface science preparation facilities.ES-2 provides a facility for rapid NEXAFS measurements under ambient conditions (10 À 7 mbar to 1 bar) as well as specialized sample environments including a microreactor for heterogeneous catalysis and an operando electrochemical cell.Advanced software control of the beamline and endstations maximizes sample throughput and ease-of-use, broadening the potential user base.

1
Figure 1 Schematic layout of the VerSox B07 beamline; distances indicated are measured from the dipole magnet source.Reproduced with permission from Grinter et al. (2022).

Figure 2
Figure 2 Gas phase TEY XAS spectra used to determine the beamline resolution.(a) He 1s 2 !(2spn � 2pns) double excitation.(b) Ar L 2,3 -edge of Ar.(c) N Kedge of N 2 .(d) O K-edge of O 2 .(e) Ne K-edge of Ne.All spectra were obtained with the 600 l mm À 1 grating and the smallest vertical exit slit opening of 4 mm.

Figure 4 (
Figure 4 (a) Photon energy resolution (�E) as a function of photon energy for the three gratings, measured with a vertical exit slit opening of 4 mm (400 l mm À 1 : red squares; 600 l mm À 1 : blue circles; 1000 l mm À 1 : black triangles).(b) Photon flux at ES-2 from the 400 l mm À 1 grating as a function of vertical exit slit opening for four photon energies.(c) Photon energy resolution (�E) as a function of vertical exit slit opening for the three gratings at 62.8 eV (He, dashed line), 244.4 eV (Ar, dotted line) and 400.8 eV.(N 2 , solid line).

Figure 5
Figure 5Beamline transmission for the three gratings as measured from a photodiode in ES-2, vertical exit slit opening 9 mm, c ff 1.4.

Fig. 6
(b) shows a schematic of the various measurement techniques available within ES-1.The analysis chamber is equipped with a hemispherical electron energy analyser (SPECS Phoibos 150) with a 2D-CMOS detector optimized for high transmission.The analyser is mounted with its axis horizontal to the floor at 60 � relative to the incoming beam direction.Analyser control and data acquisition are fully beamlines 6 of 12 David C. Grinter et al. � High-throughput XPS and NEXAFS beamline at DLS
Figure 8 (a) Photograph of the ES-2 vacuum chamber.(b) Photograph inside ES-2 highlighting the sample manipulator, beamline entrance and photodiode.(c) ES-2 sample manipulator.(d) ES-2 multi-sample plate.(e) Measurement principle schematic.( f ) Comparison of the I 0 correction provided by the M5b drain current (blue curve) and the photon flux in ES-2 (red curve) across the N K-edge.
Figure 9 (a) C K-edge NEXAFS of HOPG at normal incidence (blue) and 45 � incidence (pink).(b) Comparison of TEY (orange) and TFY (green) at the Al K-edge of an Al foil.
) shows the C K-edge NEXAFS spectrum of 0.2 bar CO 2 .Fig. 10(d) shows in situ cobalt L 2,3 -edge NEXAFS spectra from cobalt oxide nanoparticles supported on alumina, as they are reduced in 1 bar H 2 at 300 � C. The spectra in Fig. 10(d) show the clear progression from the prepared Co 3 O 4 (red) to the active metallic Co catalyst, (black) via an intermediate CoO phase (blue).
Figure 10 (a) Photograph of the B07-B ES-2 microreactor.(b) Schematic of the microreactor.(c) C K-edge TEY NEXAFS spectrum of 0.2 bar CO 2 inside the microreactor.(d) Co L 2,3 -edge TEY NEXAFS of a cobalt oxide catalyst undergoing reduction in 1 bar of H 2 at 300 � C.

Figure 11 B07
Figure 11 B07 in situ electrochemical cell.(a) Photographs of the assembled cell and the main components.(b) Schematic of the cell.(c) O K-edge NEXAFS of 1 mbar H 2 O (blue line), 2 � 10 À 3 mbar O 2 (red line) and liquid water (TEY: black line; TFY: green line).

Table 2
Beam sizes at ES-1, measured at normal emission geometry for XPS, at different settings of the M4b/M5b refocusing mirrors.