150 likes | 279 Views
PC and CAN Bus in Beam Loss Monitor System for NSRL. Yonggang Cui, Beibei Shao Department of Engineering Physics, Tsinghua University Yuxiong Li National Synchrotron Radiation Laboratory. Introduction to NSRL HLS Implementation of BLM System Results and Analysis Conclusions. Contents.
E N D
PC and CAN Bus in Beam Loss Monitor System for NSRL Yonggang Cui, Beibei Shao Department of Engineering Physics, Tsinghua University Yuxiong Li National Synchrotron Radiation Laboratory
Introduction to NSRL HLS Implementation of BLM System Results and Analysis Conclusions Contents Contents
Introduction to NSRL and HLS First National Laboratory in China dedicated to Synchrotron Radiation 66.35m long, 800MeV electron storage ring – Hefei Light Source, with a 200MeV linac as its injector New Beam Loss Monitor System (BLM System ) installed in Phase II project. Introduction to NSRL and HLS
The System employs PIN-photodiodes BLM detector designed by DESY. Detection efficiency to electrons (MIP) is 30%, 3 magnitudes higher than that to gamma ray Insensitive to gamma ray and background of synchrotron radiation around the electron storage ring The system gives beam losses information by detecting the charged shower particles produced by beam loss electrons when hitting the vacuum wall. Principle of Detecting the Beam Losses Introduction to NSRL and HLS
Scheme of BLM System Structure Distributed system based on CAN bus. PC with Windows 98/NT is employed as console. 16 frontend machines distribute along the storage ring. 12 frontend machines are placed behind the bending magnets. The others locate at interested points, e.g. the end of straight section. Every front-end can drive two BLM detectors Front-end … ... PC Console with Windows 98/NT BLM Detectors CAN BUS Implementation of BLM System
Scheme of BLM System Structure Independent System Structure Because the new control system has not finished yet when the BLM system was designed. Integration to the whole system is simple The communication part of console software => Middle layer The displaying part of console software => top layer Front-end … ... WS or PC Terminal BLM Detectors Ethernet Console with 98/NT or VME PC CAN BUS Implementation of BLM System
Frontend Machine and Pulse Accumulator Every front-end can be divided into 3 parts: MCU Module CAN Bus Module Counter Module. The pulse accumulator in counting module: Two channels Counting frequency higher than 10MHz Free running ability: working continuously without losing any pulses, even when accessed by MCU EPLD Implemented (ALTERA) Pulses Input CAN BUS Counter Module CAN BUS Module LED & Control Signal Condition CAN Controller CAN Driver Dual-Channel Pulse Accumulator CAN Address Addr/Data BUS RS-232 MC68HC11A1 MCU RAM ( 40K ) ROM ( 8K ) Clock MCU Module Implementation of BLM System
CAN Bus Communication in BLM System CAN Bus High speed differential bus with high reliability and robustness Multi-master and broadcast bus cost-effective design Solution CAN interface board on PC Cheap total solution from Philips for frontend Define the message format of data frames instead of using thee standard CAN application layer, e.g CAL, CANopen The definition is implemented as Simple CAN Application Interface (SCAI) in C language Implementation of BLM System
Implementation of Software BeamEyes Application Software (Microsoft Visual C++ 6 with MFC) • Collecting Option • Beam Loss Data • System Parameters PC Console Document: CBeamEyesDoc SCAI CAN BUS Device Driver Pointers CAN BUS View 1: CCrossView Display BLM data in histogram CAN BUS ISR & I/O Function Display BLM data in curves View 2: CCurveView Front-end SCAI DAQ Software Implementation of BLM System
Result I Beam lifetime includes Quantum lifetime Inelastic scattering Touschek lifetime Beam lifetime, esp. quantum lifetime became much more worse due to operators’ changing the running parameters Results and Analysis
Result II Results and Analysis
Conclusions The System is sensitive enough to detect beam losses. Right selection of BLM detector Correct design of pulse accumulator The BLM system based on PC and CAN bus is fast enough for real-time display. CAN bus is a high speed, high reliability bus. It’s a right candidate in field control. PC with Microsoft windows operating system is a reasonable selection in slow speed system. Conclusions
Conclusions (continue) The BLM system can not only detect the beam losses, but also give much more help on machine study. Finding the reason of beam losses Optimizing the storage ring’s running parameters beam lifetime study Conclusions