THE DESIGN OF CSNS INSTRUMENT CONTROL

Similar documents
STATUS AND CONCEPTUAL DESIGN OF THE CONTROL SYSTEM FOR THE HEAVY ION THERAPY ACCELERATOR FACILITY HICAT

TOWARDS THE COMMISSIONING OF J-PARC

Accelerator Controls Part2: CERN central timing system

Improving EPICS IOC Application (EPICS user experience)

In-process inspection: Inspector technology and concept

An Overview of Beam Diagnostic and Control Systems for AREAL Linac

THE SLS BEAMLINES DATA ACQUISITION AND CONTROL SYSTEM

Neutron Spectrometer Operation Manual

ECAL LED system update. A. Celentano

SPR-11P Portable Transport Stream Recorder and Player

G4500. Portable Power Quality Analyser. Energy Efficiency through power quality

... A COMPUTER SYSTEM FOR MULTIPARAMETER PULSE HEIGHT ANALYSIS AND CONTROL*

HPS Slow Controls Overview

Front End Electronics

PITZ Introduction to the Video System

2000 W, 2450 MHz Microwave Generator GMP 20K SM 56M230 FST 3 IR

Case analysis: An IoT energy monitoring system for a PV connected residence

Teaching Plasma Nanotechnologies Based on Remote Access

Trigger synchronization and phase coherent in high speed multi-channels data acquisition system

BABAR IFR TDC Board (ITB): requirements and system description

GFT channel Time Interval Meter

Local Trigger Electronics for the CMS Drift Tubes Muon Detector

Design and Use of a DTV Monitoring System consisting of DVQ(M), DVMD/DVRM and DVRG

CESR BPM System Calibration

BEPCII Libera Control System

A New 4MW LHCD System for EAST

ON-THE-FLY SCANS FOR FAST TOMOGRAPHY AT LNLS IMAGING BEAMLINE. Gabriel B. Z. L. Moreno X-Ray Imaging Beamline Group, LNLS

Oak Ridge Spallation Neutron Source Proton Power Upgrade Project and Second Target Station Project

Broken Wires Diagnosis Method Numerical Simulation Based on Smart Cable Structure

CMS Conference Report

Risk Risk Title Severity (1-10) Probability (0-100%) I FPGA Area II Timing III Input Distortion IV Synchronization 9 60

1 Digital BPM Systems for Hadron Accelerators

Data Acquisition System for Segmented Reactor Antineutrino Detector

The Alice Silicon Pixel Detector (SPD) Peter Chochula for the Alice Pixel Collaboration

The FAIR plinac RF Systems

GFT Channel Slave Generator

New Spill Structure Analysis Tools for the VME Based Data Acquisition System ABLASS at GSI

KEK. Belle2Link. Belle2Link 1. S. Nishida. S. Nishida (KEK) Nov.. 26, Aerogel RICH Readout

Development of beam-collision feedback systems for future lepton colliders. John Adams Institute for Accelerator Science, Oxford University

R&S TS-PIO4 Digital Functional Test Module 32-channel programmable digital I/O module

Features of the 745T-20C: Applications of the 745T-20C: Model 745T-20C 20 Channel Digital Delay Generator

CBF500 High resolution Streak camera

Chapter 60 Development of the Remote Instrumentation Systems Based on Embedded Web to Support Remote Laboratory

THE LXI IVI PROGRAMMING MODEL FOR SYNCHRONIZATION AND TRIGGERING

Parade Application. Overview

Diamond detectors in the CMS BCM1F

V9A01 Solution Specification V0.1

A Fast Magnet Current Change Monitor for Machine Protection in HERA and the LHC

arxiv: v1 [physics.ins-det] 1 Nov 2015

1ms Column Parallel Vision System and It's Application of High Speed Target Tracking

Low Cost, High Speed Spectrum Analyzers For RF Manufacturing APPLICATION NOTE

LCLS Machine Protection System Engineering Design Specifications

PBR-310C E-BERT. 10Gb/s BERT System with Eye Diagram Tracer

Therapy Control and Patient Safety for Proton Therapy

C8000. switch over & ducking

CONTROL OF THE LOW LEVEL RF SYSTEM OF THE LARGE HADRON COLLIDER

Product Information. EIB 700 Series External Interface Box

GFT Channel Digital Delay Generator

2008 JINST 3 S LHC Machine THE CERN LARGE HADRON COLLIDER: ACCELERATOR AND EXPERIMENTS. Lyndon Evans 1 and Philip Bryant (editors) 2

CSC Data Rates, Formats and Calibration Methods

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

High Speed Data Acquisition Cards

ATOMMS Software Review October 25, History of crio hardware choice and initial software development

Fast Orbit Feedback at the SLS. Outline

Lawrence Berkeley National Laboratory

DAQ Systems in Hall A

TWO BUNCHES WITH NS-SEPARATION WITH LCLS*

Primary Reference Clocks (PRC/SSU)

Test Beam Wrap-Up. Darin Acosta

HIGH POWER BEAM DUMP AND TARGET / ACCELERATOR INTERFACE PROCEDURES *

The PEFP 20-MeV Proton Linear Accelerator

Microbolometer based infrared cameras PYROVIEW with Fast Ethernet interface

Solutions to Embedded System Design Challenges Part II

MANAGING POWER SYSTEM FAULTS. Xianyong Feng, PhD Center for Electromechanics The University of Texas at Austin November 14, 2017

VBOX 3i. 100Hz GPS Data Logger. Features

VBOX 3i Dual Antenna Measures Slip and Pitch/Roll (RLVB3iSL)

The Pixel Trigger System for the ALICE experiment

Low Level RF for PIP-II. Jonathan Edelen LLRF 2017 Workshop (Barcelona) 16 Oct 2017

A Timing System Application using White Rabbit

Zynq platform and related instruments

ITU-T Y Functional framework and capabilities of the Internet of things

Construction of Cable Digital TV Head-end. Yang Zhang

Acquisition Control System Design Requirement Document

BioTechnology. An Indian Journal FULL PAPER. Trade Science Inc.

The Design of Teaching Experiment System Based on Virtual Instrument Technology. Dayong Huo

BABAR IFR TDC Board (ITB): system design

Building Video and Audio Test Systems. NI Technical Symposium 2008

40-Meter Subsystems: As LIGO-Like as Possible

A Vision of IoT: Applications, Challenges, and Opportunities With China Perspective

B. The specified product shall be manufactured by a firm whose quality system is in compliance with the I.S./ISO 9001/EN 29001, QUALITY SYSTEM.

VBOX3i Dual Antenna. Measures Slip and Pitch/Roll (RLVB3iSL) Features

TTC Interface Module for ATLAS Read-Out Electronics: Final production version based on Xilinx FPGA devices

SignalTap Plus System Analyzer

A dedicated data acquisition system for ion velocity measurements of laser produced plasmas

Commissioning of Accelerators. Dr. Marc Munoz (with the help of R. Miyamoto, C. Plostinar and M. Eshraqi)

Report from the 2015 AHCAL beam test at the SPS. Katja Krüger CALICE Collaboration Meeting MPP Munich 10 September 2015

Automated Local Loop Test System

Model 7330 Signal Source Analyzer Dedicated Phase Noise Test System V1.02

The extremely compact laser head is approximately 480 mm long and can

Status of readout electronic design in MOST1

Transcription:

THE DESIGN OF CSNS INSTRUMENT CONTROL Jian Zhuang,1,2,3 2,3 2,3 2,3 2,3 2,3, Jiajie Li, Lei HU, Yongxiang Qiu, Lijiang Liao, Ke Zhou 1State Key Laboratory of Particle Detection and Electronics, Beijing, 100049, China Institute of High Energy Physics, Chinese Academy of Sciences, Beijing, 100049, China 3Dongguan Institute of Neutron Science, Dongguan 523808, China 2 Abstract To meet the increasing demand from user community, China is now building a world-class spallation neutron source, called CSNS(China Spallation Neutron Source). It can provide users a neutron scattering platform with high flux, wide wavelength range and high efficiency. CSNS construction is will completed in this year. There are three neutron instruments in CSNS, which are GPPD, SANS and RM. CSNS Experimental Control System is in charge of the operation of NS target and instruments. The instrument control system of CSNS is based on EPICS and White Rabbit network, offering device operation, timing synchronization, synchronization of DAQ and physical software, metadata collection and generation of experiment summary. This paper will introduce the structure of instrument control. INTRODUCTION Neutron scattering becomes a more and more important method probe the structure of the microscopic world. In physics, chemistry, biology, life science, material science, new energy, as well as in other applications, Neutron scattering is the widely used as a complementary way to X-ray in advance research. To meet the increasing demand from user community, China is now building a world-class spallation neutron source, called CSNS (China Spallation Neutron Source) [1]. It can provide users a neutron scattering platform with high flux, wide wavelength range and high efficiency. CSNS construction will be completed this year, and got first neutron in August, 2017. Figure 1: The Layout of CSNS. * Work supported by China Spallation Neutron Source, the science and technology project of Guangdong province under grand No. 2016B090918131 and 2017B090901007. Corresponding author: Jian ZHUANG, e-mail: zhuangj@ihep.ac.cn The experimental control system of CSNS is in charge of target and instrument control [2]. The task of instrument control includes: 1. Provide local control to instrument device. 2. Ingrate all devices belonged to the instrument into one system, including sample environment, slit, chopper, etc. 3. Provide facility information, mainly on accelerator information. 4. Provide the trigger signal (T0) when proton hit the target and time synchronization for device to get timestamp. 5. Interact with security systems, including neutron shutter and personal safety protection system. 6. According to experiment requirement, coordinate all system, mainly focus on DAQ and physical software. 7. Record status information of device, producing experiment summary file for offline. 8. Provide remote monitor and optional remote control for whole neutron instrument. 9. Provide statistics of instrument operation. CSNS instrument control is based on EPICS control system [3], integrating commercial hardware, Labview and other components. Some customized hardware are made for T0 fanout and time synchronization. THE STRUCTURE OF INSTRUMENT CONTROL Figure 2 shows the structure of instrument control. An instrument control is divided device control layer and global control layer. Device control layer mainly focus on local control of the device, providing standard EPICS CA interface and expert HMI. As a special case, detector, electronics and DAQ software can be viewed as one devices. DAQ software provide a standard interface to online analysis and also provide an online monitor interface to detector and electronics experts. Global control layer mainly focus on integrating all device, providing global information and execute the procedure of experiment. 895

16th Int. Conf. on Accelerator and Large Experimental Control Systems ICALEPCS2017, Barcelona, Spain JACoW Publishing Figure 2: The Structure of CSNS Instrument. DEVICE CONTROL OF INSTRUMENT To maximum reduce the cost, commercial hardware and software are widely used in device control layer. Siemens PLC, Yokogawa PLC, Beckhoff PLC, PXI and NI CRIO now can be used to device control in CNS. IOC is used to communicate with field hardware, providing standard PV interface to global control [4][5]. In CSNS, some devices like sample environment will be transfer from one instrument to another instrument. To get maximum neutron beam usage, the process of device transfer must be simplify. So, all devices in CSNS can be grouped as fix devices and mobile devices. When the device transfer between instruments, the front controller and IOC will be transferred alone with device. After transferring, the prefix of PV and other parameter can be modified on expert HMI. When the instrument begins to operate, the transferred device can be selected on instrument experiment HMI. Then, the control system will check all the valid and status of device, and write the information to log file. Low-cost Environment Monitor In CSNS, there are much needs for environment monitor in detector, electronics and other systems. A low cost but more flexible system is designed as Fig. 3. Figure 3: the low cost environment monitor Temperature sensor, humidity sensor, dust sensor and others are integrated with Mega8 SOC by local bus. Many front electronics in different place are integrated by RS485, and a raspberry Pi is used to providing EPICS PV. 896 T0 TRIGGER AND TIME SYNCHRONI- ZATION SYSTEM In instrument of CSNS, time of flight (TOF) of every neutron will be recorded. So the exactly time of proton brunch hit the target (T0) needs to know to trigger electronics as the begin point of TOF. And neutron chopper also needs this T0 trigger signal to synchronize chopper phase, cutting the useless gama ray and fast neutron. The trigger signal is generated by time system of accelerator. Experiment control system will fanout this signal to every neutron instrument. And this signal will be monitored everywhere, to correct the propagation delay of T0. Some proton beam monitor is also marked a timestamp by WR node to exactly correct time jitter of T0 for some high energy neutron experiment. Electronics of neutron instrument are also synchronized by WR node. T0 The neutron chopper belongs to the mechanical rotating part and has a great moment of inertia. The control strategy of chopper phase is detected in this beam cycle, and will be synchronized in next beam cycle. Using beam signal as its trigger will not do better to phase control. Since beam signal will be synchronized to a standard 25Hz signal of timing system with error less than 1us. So neutron chopper will use this standard 25Hz signal as its trigger. More precise trigger signal will be needed by instrument electronics and DAQ. The beam extraction signal of RTBT and RTBT beam self-trigger signal will be used by electronics as trigger. Time Synchronization System To synchronization time of all device, the White Rabbit technology originate from CERN is used in CSNS instrument control [6][7]. WR grandmaster switch is synchronized to GPS time by pulse per second (PPS). A rubidium clock is used to reduce the time jitter of GPS. Several WR nodes are developed in CSNS to monitor T0, to synchronize electronics, to timestamp neutron signal in neutron measurement experiment and to timestamp proton beam measurement. Figure 4: Time synchronization and realtime measurement system..

The PPS fanout chassis will generate the pps signal with a series pulse standing for TAI time. So different electronics with different crystal oscillator can track this PPS signal to be synchronized. The timestamp over second is come from WR synchronization. The timestamp under second is come from crystal oscillator of electronics itself, and it will be formatted into nanosecond. The PXI card with TDC and DIO is used to timestamp the signal. Also the NI hardware and Beckhoff PLC can be synchronized to WR by using standard IEEE 1588. So every event in the experiment can be marked timestamp and serialized by time sequence. Realtime Proton Current Service In CSNS, for neutron flux normalization, proton beam current is wanted to be measured bunch by bunch as Fig. 5. This value needs to be broadcast for online use. A special WR PXI board was developed to complete the measurement with other NI PXI AD card. When the beam current signal over threshold, the FPGA on WR PXI card is triggered. This FPGA will relay this trigger to other board through PXI backplane bus. At the same time, this FPGA will mark timestamp on this signal, and broadcast a trigger message in WR network. After the AD complete the sampling and beam current calculation, the beam current will be written to the register of FPGA. Then, the Measurement package will be broadcasted. All this will be done in a bunch cycle, which is 40 ms. Figure 5: Proton current measure and service. The proton Server and Proton IOC will received this message, providing proton service to online analysis. An PV based on epics V3 is created to provide average proton beam current per 100 Pulse. The proton server based on EPICS V4 will provide the each proton beam current within last 1 minute. These beam current will be provided with timestamp and sequence No. in an array. Also, all these data will be stored in history database based on MySQL, for offline use. Realtime Trigger Message A realtime message derived from LXI protocol as showed in Table 1, is designed to deliver all trigger and measurement message. This message was modified to use the realtime package forward ability of WR switch. Table 1: Realtime trigger message type Field Length Index to device Message type 16 Bytes Sequence No. Trigger time (over second) Trigger time (under second) Reserved data1 (proton current) Reserved data1 Data area 52 Byte End (0x00) 4Byetes CONTROL SOFTWARE OF INSTRUMENT The control software of CSNS includes state machine of instrument, IOC based on EPICS, control interface, SCAN server, history database, and DAQ software for neutron monitor. Boy is used as high level operator interface in CSNS. And SCAN is also used to experiment task automation. Python and Jython with epics CA support are used as control script. CA gateway is used to isolate the PV between instrument with outside net. A DAQ software based on EPICS V4 was developed to neutron monitor. The Process of Neutron Experiment. Figure 6 shows the procedure of neutron experiment of CSNS neutron instruments. Every instrument has a configuration file derived Nexus file format. Before experiment, device experts should prepare all the subsystem belongs to the instrument. These will be done through local control interface. When all these subsystem can accept remote control, the user can begin neutron experiment. First he must configure the experiment in experiment HMI, selecting the sample environment device, providing user id, proposal id and other parameter. Control system will start all service for the experiment, checking device status. Then user can submit a experiment to SCAN server to begin a neutron experiment. Control system will set the parameter according to configuration and then start a neutron run. Control, DAQ and physical software are synchronized through state machine. When the experiment is running, all status of device and neutron data will be recorded. After collecting enough neutron, the experiment will be end by control server. Summary file like Nexus XML file will be generated and submitted into run information system for offline use. 897

16th Int. Conf. on Accelerator and Large Experimental Control Systems ICALEPCS2017, Barcelona, Spain JACoW Publishing Figure 6: The flow of neutron experiment in CSNS. The Data Flow of CSNS Neutron Instrument The data flow of CSNS neutron instrument can be divided into neutron event data flow and control data flow as showed in Fig. 7. Control data flow consists of instrument configure flow and realtime data flow of devices. Figure 7: The data flow of CSNS neutron instrument Neutron event data are produced by neutron detector and electronics and sent to DAQ through Ethernet. In DAQ software, raw data will be translated to neutron data. After neutron event assembled, neutron data are processed to detector data monitor, mainly in histogram figure. And then these data will be stored in online storage. 898 DAQ for Neutron Monitor Figure 8: The structure of DAQ. For instrument tuning and normalize neutron flux, several neutron monitor is used in every neutron instrument. The neutron monitor will be long-term running. A DAQ software, named NEROS, has been developed. NEROS is based on EPICS V4 and aeradetector. NEROS can control electronics and setting parameters by UDP command. NEROS can receive neutron data from FPGA through Ethernet, or running on VME controller. It can also provide simulating test mode by using data file as source. NEROS can provide histogram on whole detector or region of interest and two dimensional profile. NEROS store the neutron data as HDF5 file format, which can be directly used by Nexus software. As a software based on EPICS V4, it can be access by V4 client interface. Online physical software in CSNS use python interface access the monitor data realtime. Fig. 9 shows online test result of NEROS. The left is CSNS mask under x ray, and right is E mask under 252 Cf neutron source. Figure 9: Left: the image of CSNS mask under X ray, right: the image of E mask under 252 Cf neutron source CONCLUSION The control system based on EPICS, White rabbit and other components has been developed for CSNS instrument. All hardware and most software has been deployed. The first neutron has been produced in Aug. 28, 2017. Some hardware and software has been verified in the first neutron beam measurement. ACKNOWLEDGEMENT This work was supported by China Spallation Neutron Source. This work is also was support by the he science

and technology project of Guangdong province under grand No. 2016B090918131 and 2017B090901007. REFERENCES [1] Wei Jie et al,china Spallation Neutron Source - an overview of application prospects,chinese Phys. C,Volume 33,2009. [2] J. Zhuang et al., "The Design Status of CSNS ExperimentalControl System", 13th International Conference on Accelerator and Large Experimental Physics Control Systems, 2011, [3] EPICS, http://www.aps.anl.gov/epics/ [4] L. Hu, J. Zhuang, Y. Chu, D. Jin, "Design of Interface Between EPICS System and Device Driver of Beckhoff PLC",Nuclear Electronics & Detection Technology, 2013, 33(02):149-151. [5] J. Zhuang et al., "The Performance Test of F3RP61 and Its Applications in CSNS Experimental Control System", 13th International Conference on Accelerator and Large Experimental Physics Control Systems, 2011 [6] J. Zhuang et al., "The Time Synchronization of CSNS Neutron Instrument," 2016 IEEE-NPSS Real Time Conference (RT), Padua, 2016, pp. 1-4. [7] J. Zhuang, J. Li and L. Hu, "Time Synchronization of PLC in CSNS Experimental Control System," 2014 19th IEEE-NPSS Real Time Conference, Nara, 2014, pp. 1-4.. 899