layered epics user gap control interface for nsls mini-gap undulators

11
Layered EPICS User Gap Control Interface for NSLS Mini-gap Undulators William Nolan and John Skinner, Biology Department Susila Ramamoorthy and Lonny Berman, NSLS Department Brookhaven National Laboratory, Upton NY 11973 www.px.nsls.bnl.gov EPICS Collaboration Meeting June 12 -16, 2006

Upload: doria

Post on 08-Jan-2016

32 views

Category:

Documents


2 download

DESCRIPTION

Layered EPICS User Gap Control Interface for NSLS Mini-gap Undulators. William Nolan and John Skinner, Biology Department Susila Ramamoorthy and Lonny Berman, NSLS Department Brookhaven National Laboratory, Upton NY 11973 www.px.nsls.bnl.gov EPICS Collaboration Meeting June 12 -16, 2006. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Layered EPICS User Gap Control Interface for NSLS Mini-gap Undulators

William Nolan and John Skinner, Biology Department

Susila Ramamoorthy and Lonny Berman, NSLS Department

Brookhaven National Laboratory, Upton NY 11973

www.px.nsls.bnl.gov

EPICS Collaboration Meeting June 12 -16, 2006

Page 2: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Undulators provide brilliant beams for PX at the NSLS

The brilliant undulator beams are essential for efficient macromolecular structure determination using small crystals with large unit cells.

The PXRR method:

Screen on BM facility

Collect on ID facility

Page 3: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

The Undulator Control Challenge

diffractometer

monochromator mirrorfront end

User application programs control diffractometer and detector every few s

User selects wavelength by setting monochromator and gap about every 15 minutes using EPICS services

Synchrotron operator requisitions undulator control for ring fills about every 12 hours using machine control programs

Page 4: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Layered MGU Controls

NSLS MGU Micro

Carries out gap requests from MGU-IOC

as well as overriding NSLS gap commands

MGU

PXRR EPICS Beamline-IOC

Executes wavelength change requests from CBASS

Determines MGU harmonic and gap target

VME /RTEMS

PXRR EPICS MGU-IOC

Downloads gap target whenever possible

Continuously receives MGU status and gap setting

Linux

Page 5: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

MGU Control: Application and User Layer

PXRR EPICS Beamline-IOC

Executes energy change requests from CBASS

Moves monochromator motors

Determines gap target from harmonic emission table

Suppresses gap change when scanning small ΔE

CBASS Application Program

Single Process Variable Request: E or λ

Mono motor records

MGU Harmonic Emission

Virtual gap motor record

New gap target triggers interface layer

New E

Page 6: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

MGU Control: Interface Layer

PXRR EPICS MGU-IOC

Transmits gap target requests to MGU device controller

Periodic scans MGU status and actual gap setting

May serve as precision gap controller using encoder readbacks

Serves as standalone user gap control interface

Custom device driver and interface communicates serially via RS232, 485, TCP/IP

has FIFO buffer, handshaking, and polling functionality

Virtual gap motor record

done gap target MGU Status Info for User

Outgoing commands:Gap target request

Request for status info

Incoming information:Control room user enable flag Gap drive statusCurrent gap drive settingStored gap set point for user opsAverage of 4 gap encoder readingsOptical gap readings at MGU ends MGU device driver error statusActuator post heater status

Page 7: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

MGU Control: Device Layer

NSLS MGU Micro

Carries out gap requests from MGU-IOC and NSLS

Arbitrates user and NSLS control room access

Monitors and controls all device functions

Serial interface on beam line server

Serial interface on MGU device controller

Standalone MGU controller

NSLS MGU Micro Setup

Page 8: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Gap Measurement on the X25 MGU

Post Heaters (8x)

Linear Resistive Encoder (4x)

Limit Switches

Optical Micrometer (2x; 2µm)

Stepper Motor Drive (4x)

Page 9: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Need For Gap Stability at Submicron level

7th Harmmonic 100eV FWHM

3.25eV/um

Page 10: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Summary: Layers are safe and robust control method

NSLS MGU Micro

Carries out gap requests from MGU-IOC

as well as overriding NSLS gap commands

MGU

PXRR EPICS Beamline-IOC

Executes user wavelength change requests

Determines MGU harmonic and gap target

PXRR EPICS MGU-IOC

Downloads gap target whenever possible

Acquires MGU status and gap setting

A safe and robust method to perform frequent MGU control in an open user environment

Ready for remote user operation

Simple way to extract essential control functions from full device control set

Efficient method to bridge EPICS – custom device control interface

Expandable to precision gap control based on true gap readings -cryo ops

Page 11: Layered EPICS User Gap Control Interface for  NSLS Mini-gap Undulators

Acknowledgements:

Lonny Berman

Susila Ramamoorthy

John Skinner