LHC Control Syst - CMS DocDB Server - CERN.ppt

上传人:laozhun 文档编号:2284269 上传时间:2023-02-09 格式:PPT 页数:75 大小:11.02MB
返回 下载 相关 举报
LHC Control Syst - CMS DocDB Server - CERN.ppt_第1页
第1页 / 共75页
LHC Control Syst - CMS DocDB Server - CERN.ppt_第2页
第2页 / 共75页
LHC Control Syst - CMS DocDB Server - CERN.ppt_第3页
第3页 / 共75页
LHC Control Syst - CMS DocDB Server - CERN.ppt_第4页
第4页 / 共75页
LHC Control Syst - CMS DocDB Server - CERN.ppt_第5页
第5页 / 共75页
点击查看更多>>
资源描述

《LHC Control Syst - CMS DocDB Server - CERN.ppt》由会员分享,可在线阅读,更多相关《LHC Control Syst - CMS DocDB Server - CERN.ppt(75页珍藏版)》请在三一办公上搜索。

1、LHC Control SystemTutorial for the FNAL LARP group,Jim PatrickNovember 9,2005,General Overview,Taken from a number of talks,mostly:ICALEPCS Conference,October 2005(33 CERN presentations!)December 2004 AB/CO“Controls Day”Plus other miscellaneous talksGoals:Give some practical flavor of the system,but

2、 not prepare one to write actual code.Relate concepts to FNAL system.I am not at all an expert.,Outline,OverviewTimingDevice ModelFront-End SoftwareApplication Software and DevelopmentServicesSecuritySummary,CERN AB Department,b.frammery-10.10.2005,The LHC Control System,B.FrammeryFor the CERN-AB/CO

3、 Group,CERN AB Department,b.frammery-10.10.2005,CERN machines,(LEP),LHC,CERN AB Department,b.frammery-10.10.2005,Strategy,Develop new software and hardware infrastructuresFor LHCTo be used&tested on all the new developmentsTo be spread over all the CERN accelerators at a later stageIntegrate industr

4、ial solutions as much as possible,Meaning that,meanwhile,the“legacy”controls for LINAC2,the PSB,the PS and the SPS are to be maintained,CERN AB Department,b.frammery-10.10.2005,TCP/IP communication services,TCP/IP communication services,CERN GIGABIT ETHERNET TECHNICAL NETWORK,FILE SERVERS,Linux/HP P

5、roLiantAPPLICATION SERVERS,PVSS/Linux PCSCADA SERVERS,RT/LynxOSVME Front Ends,Linux/LynxOS PCFront Ends,PLCs,LHC MACHINE,TCP/IP communication services,TIMING GENERATION,LHC MACHINE,ACTUATORS AND SENSORSCRYOGENICS,VACUUM,ETC,QUENCH PROTECTION AGENTS,POWER CONVERTERS FUNCTIONSGENERATORS,BEAM POSITION

6、MONITORS,BEAM LOSS MONITORS,BEAM INTERLOCKS,RF SYSTEMS,ETC,WorldFIP SEGMENT(1,2.5 MBits/sec),OPTICAL FIBERS,cPCIFront Ends,ANALOGUESIGNALSYSTEM,LHC controls architecture diagram,CERN AB Department,b.frammery-10.10.2005,Softwareframeworks,CERN AB Department,b.frammery-10.10.2005,The software framewor

7、ks(1),Front-End Software Architecture(FESA)Complete environment for Real-Time Model-driven control software implemented in C+for the LynxOS and Linux platformsJava framework for accelerator controlsUses J2EE application servers with lightweight containersPlain Java objects(no EJB beans)Applications

8、can run(for test)in a 2-tier setup Unified Java API for Parameter Control(JAPC)to access any kind of parameter.Runs on Linux platform,CERN AB Department,b.frammery-10.10.2005,The software frameworks(2),UNified Industrial Control System(UNICOS)Complete environment for designing,build and programming

9、industrial based control systems for the LHC.For cryogenics,vacuum,environmental controls etc.Supervision layer:PVSS II(SCADA from ETM)Cross communication with accelerator controls framework possible,UNICOS&the Java framework for accelerator controls usethe same graphical symbols and color codes,CER

10、N AB Department,b.frammery-10.10.2005,Machine Timing&sequencing,Overview ICentral Timing.Whats the CBCM?,The Central Beam and Cycle Manager CBCM is a collection of hardware and software systems responsible for coordinating and piloting the timing systems of CERNs accelerators.In the LHC era,the CBCM

11、 will control Linac-II,Linac-III,the PSB,CPS,ADE,LEIR,SPS and the LHC timing systems.The CBCM will also drive the Beam Synchronous Timing(BST)for LHC.There will be 3 distributions R1,R2,Experiments.,Hardware IILHC MTG,2.2 G-Bit/S optical link64Mb Reflective memories,Main MTG,LHC MTG,BST,GMTLHC,CPS a

12、nd SPS telegrams and timingsand MTG synchronization when filling,Clocks:Bunch Clock 40.8 MHz.Frev ticks at 89us.40.00 MHz GPS clock1PPS(1Hz)clockBasic period clock,Preloaded Injector Sequences,Preloaded LHC Sequence,3 BST Cards,SafeParams,Energy/RingIntensity/RingSafe Beam FlgBeam present FlgExtract

13、ion permit FlgBIC Beam permit Flg,External Conditionsand Events,The LHC telegram which will contain at least the following information:0 x14xxyyyyUSER:The cycle ID,it has values like PILOT,NOMINAL,DUMP MDPARTY1:The particle type in Ring-1,Protons/Ions from LEIRPARTY2:The particle type in Ring-2ENERG

14、Y1:The Beam Energy in Ring-1ENERGY2:The Beam Energy in Ring 2INTEN1:The Beam Intensity in Ring-1INTEN2:The Beam Intensity in Ring-2RING:The next ring to be injected Ring-1,Ring-2,NONEBUNCH:The next target bunch position in the ring 0.35640BATCH:The actual batch number in the ring 1.12BATCHES:The num

15、ber of CPS batchesMODE:The machine mode,Pre-injection,Injection,Ramping,Physics,DUMP etcBPNM:The basic period number from the start of the cycleCOMLN:Timing trigger bit patterns which are calculated by the CBCM to trigger specific actions.STATUS:Machine status bits like,OK,ABORT,QUENCHBEAMID:Identif

16、ies the next beam in all injectorsThe SPS telegramThe CPS telegramThe UTC time each secondThe LHC 1KHz events 0 x0100 xxxxThe LHC machine events CTIM X:=:0 x13xx0000Some CPS&SPS events such as the SPS extraction kicker warning pre-pulse.,LHC Timing cable,Can have NO“next”lines,Payloads=0000for LHC e

17、vents,CTIM X=F(code),LHCMachine=1,Event Type=3,Overview IVTiming Reception,The CTRx V/VME I/PCI P/PMCDown to 1ns UTC time stamping if HPTDC installed,else 25ns50MHz external clocks1PPS 1KHz 10MHz and 40MHz internal clocksCounters are 24-bit2048 actions supporting MP and PPMTelegram and Payload handl

18、ingFull counter remote controlFully Integrated into FESA,Alarms monitor,FESA,Tim/Tgm Lib,CTRx,SPSTg8,PSTg8,CERN AB Department,b.frammery-10.10.2005,Data Management,CERN AB Department,b.frammery-10.10.2005,Databases:the 4 domains of data,Physical Equipment,Machine Layout,Controls Configuration,Operat

19、ional Data,Serial Number,Installed EquiptTypeOpticsPowering,Computer Address,Settings Measurements AlarmsLogging Post-Mortem,Equipment Catalogue,Consistent naming and identification scheme as defined in Quality Assurance Plan,Device/Property Model,A device is a named entity within the control system

20、,which corresponds to a physical device(Beam Position Monitor,Power Converter)or to a virtual controls entity(e.g.transfer line)The state of a device is accessed via properties and can be read or modified by the get and set access methods.(synchronous and asynchronous)Uses CORBA,hidden from the user

21、 by“Controls Middleware”Property can be monitored(publish/subscribe)A cycleSelector or a polling period can be specifiedOptional on-change mode:client will be notified only when property has changed(server criteria).Uses Java Message Service(JMS)“publish/subscribe”technologyDevice classes can implem

22、ent many properties of simple type or few properties of composite type,Device Model,Devices refer to higher level constructs than in ACNETDevices have properties;may have more than oneAll properties are like C-structures,not confined to READING,SETTING etc.as in ACNETYou name the elements(“parameter

23、s”)These have associated datatype,units,dimension,minimum and maximum value etc.Can be atomic(single element)or composite(multiple elements)Scaling assumed to be done by front-endDevice structure defined in“MetaProperty”classes for each general typeFormal hierarchical naming schemeA“Working Set”devi

24、ce is a collection of devices,Beam Current Transformer Acquisition as example of composite property,StandardEntries,Input Form for metadata,Generic Workset Display Program,Generic Control Knob Component,Initialisation Parameters,Any status or value control parameter for a device can be stored as a R

25、EFERENCE.This includes arrays for function generators.This can be done for any of up to 64 virtual machines which configure our accelerators for a particular operation like injecting protons in the LHC.Particular sets of values can be stored in named ARCHIVES for a virtual machine.Used to set up the

26、 machines for a particular operation.The Directory Service provides interfaces for storing and retrieving REFERENCES and ARCHIVES.,15/12/2004,Common Application Infrastructure AB/CO Day-Lionel Mestre,JAPC,“Java API for Parameter Control”Single API for all Java applications to access devices(physical

27、/virtual)Based on the concept of parameter(device/property)Unified and simple access to various systemsHardware(via Controls Middleware CMW;Including PVSS devices)Directory Service(descriptions)SDDS logged data,SimulationVirtual Parameters in the middle tierProvides more services to applicationsMeta

28、data,descriptionsGroups,Caching,Transactions,26,JAPC Code example,Counter device named Counter11 with one property with one parameter named Measurement that is an int:Parameter p=Factory.createParameter(“Counter11”,“Measurement”);CycleSelector sel=Factory.createCycleSelector(END_OF_CYCLE);ParameterV

29、alue value=par.get(sel);int counts=value.getInt();Code generation facility to make pseudo-”wide”APIe.g.par.getMeasurement();Compile time check,FESA generic services,0.Outline,Our offering to the equipment-specialist“A comprehensive offering consisting of a model,method,framework,suite of tools and s

30、et of utility packages and support services”Our progress at a glance“FESA switches from being a project to being an open-ended activity”,2.Service offering,ModelMethodToolsFrameworkUtility packagesDocumentationTrainingSupportConsultingRequirements,.Formal generic-model and customization-language.Wor

31、kflow formalized as a step-by-step method.One tool dedicated to each step of the above.Reusable C+package which can be tailored.“A la carte”interfacing with PLC and timing.Essentials,tools on-line documentation.mostly ad hoc,on-line tutorial.mostly ad hoc.long-term goal.Issue management system,3.Cli

32、ent needs coverage as today,http:/project-fesa.web.cern.ch/project-fesa/,Arruat et.al.,ICALEPCS 2005,FESA Development,Framework attempts to automate developmentMinimize code that must be written by the developer via automatic generation of code and configuration informationLibrary support for timer

33、cards and common devicesGeneric GUI tools guide one through 4 main phases:Designing the class structures(internal variables,real-time scheduling,external API etc.)Deploying the class on a front-end computerInstantiating 1 or more instances of a deployed class(defining configuration values for intern

34、al variables,real-time scheduling etc.)Testing over the accelerator middleware,Arruat et.al.,ICALEPCS 2005,FESA Development,15/12/2004,Common Application Infrastructure AB/CO Day-Lionel Mestre,LHC Software Architecture,All accelerators share common characteristicsCreate a model that captures those c

35、haracteristics important for controlHave a common domain modelHave common software components to work with this modelRationalize software development to reuse and extend the common parts to control all accelerators and transfer lines,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mest

36、re,A bit of context,CERN Controls GroupControls Software for the LHCLSA shared project between Controls and OperationProvide homogenous application software to operate the SPS,its transfer lines and the LHC,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,Applications,Datastore,D

37、evices,JAPC CMW/RDA,JAPC,Hibernate/Spring JDBC,Data Access Object(DAO),LSA Client API,LSA CORE(TH1.4-8O)(Settings,Trim,Trim History,Generation,Optics,Exploitation,Reference),ParametersConcentration,JAPCCMW/RDA,JAPC RemoteServer-JMS,JAPC-LSA,LSA Client implementation,LSA Client API,JAPC API(TH1.5-8O)

38、,Spring HTTP Remoting/Proxies,JAPC RemoteClient-JMS,Business Tier(Web Container),Client Tier,CORBA IIOP,CORBA IIOP,JDBC,HTTP,HTTP,JMS,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,4000 Beam Loss Monitors,BLMsConcentration,Publication,OperatorConsole 1,OperatorConsole 2,Logging

39、,FixedDisplays,OperatorConsole 3,OperatorConsole 4,Broadcasting,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,Datastore,Devices,Complex Business Logic(Settings,Trim,Trim History,Generation,Optics,Exploitation,Reference),Operator Console 1,Operator Console 2,Operator Console 3,

40、many applications,many applications,many applications,Extrapolation to Beamline Settings,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,Complexity must be handled,Need of Standard ServicesService discovery(find where services are)Remoting(split application among tiers)Transacti

41、on handling(multiple device“sets”)Database access(object-relational mapping)Security(Who/what/where can access),11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,One Answer:J2EE+EJB,Infrastructure provides standard servicesWidely used in industryIn house experienceChange of progra

42、mming modelIntrusiveForce the use of containerForce the use of componentsTie the persistency to the containerDebug with application server on local PCDeployment hell,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,Another Answer:J2EE EJB+Spring Framework,Design for 3 logical tie

43、rsRun 2 or 3 physical tiersDevelopers write plain JavaNo change in the programming modelFocus on our domainNo time for doing infrastructure,15/12/2004,Common Application Infrastructure AB/CO Day-Lionel Mestre,Applications,Trim(perform+history browser/revert)Orbit SteeringGeneric Equipment ControlFix

44、ed DisplaysSDDS Logger and ViewerOptics Twiss viewerSettings GenerationUsing the Application Frame,27/01/2005,LSA for SACEC,Generic Equipment Control,27/01/2005,LSA for SACEC,Generic Measurement,27/01/2005,LSA for SACEC,Trim,27/01/2005,LSA for SACEC,Trim history,27/01/2005,LSA for SACEC,Visualizatio

45、n of the settings,27/01/2005,LSA for SACEC,Orbit Steering,15/12/2004,Common Application Infrastructure AB/CO Day-Lionel Mestre,Fixed Displays,15/12/2004,Common Application Infrastructure AB/CO Day-Lionel Mestre,Optics Display,11/10/2005,Architecture for LHC Controls iCALEPCS 2005-Lionel Mestre,Resul

46、ts and Future Targets,Control of TI8(October 2004)Steering of the SPS ring orbitLEIR controlsSPS start-upExtraction sequencing TI2/TI8LHC sector test,Development Process Issues,Projects and code organizationSource versioning management Build services(automation of common tasks)Compilation,JARDocumen

47、tation generationDependencies managementRelease managementReleasing new versions of software in a dedicated repositoryApplications deploymentIssues&bugs tracking,(guidelines,naming conventions,directory structure),(CVS),(JIRA),Common-Build constraints(Directory structure),equipstate/build.xmlproduct

48、.propertiesproduct.xmlpeoplesrc/java/test/,Target examples,Based on Apache AntJava based open source build tool(like Make)Compiling sourcesant compileBuilding distribution of the productant distReleasing new version of the productant release,What Release does,Extracts the product from the CVS to the

49、 dedicated production repository Builds the product(calling Common-Build)Installs it in a multi-versioned repositoryNew version is added without modifying the old onesWe can always use old versions Updates product aliases(symbolic links),Eclipse IDE,GUI Applications deployment,We use Java Web Start

50、deployment technology uses a special XML descriptor(JNLP file)to deploy and run applicationsensures that all required libraries(cached locally)are up to dateRepository contains all libraries and JNLP fileConsole Manager contains directory of applications,starts them on request,CERN AB Department,b.f

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号