Presentation is loading. Please wait.

Presentation is loading. Please wait.

“The LHC GCS Framework” Geraldine Thomas CERN, IT-CO 24.03.2005 A complete PLC and PVSS automatic code Generation.

Similar presentations


Presentation on theme: "“The LHC GCS Framework” Geraldine Thomas CERN, IT-CO 24.03.2005 A complete PLC and PVSS automatic code Generation."— Presentation transcript:

1 “The LHC GCS Framework” Geraldine Thomas CERN, IT-CO 24.03.2005 A complete PLC and PVSS automatic code Generation

2 03 March 2004LHC GCS Framework2 Outline Problem description Motivations/Objectives Structure Collaboration Development Status/Planning

3 03 March 2004LHC GCS Framework3 Problem Description 4 Detectors -21 gas systems to build Commonalities Standard Devices Valves, Flow meters, Mass flow Controllers, etc… Modular architecture Mixer, Distribution, Pump, Analysis, Purifier, etc… Diversity Optional modules Options in modules

4 03 March 2004LHC GCS Framework4 Analysis of the diversity: “Pump”

5 Analysis of the diversity: “Distribution”

6 03 March 2004LHC GCS Framework6 Gas Control HW Architecture: Plant System1 : TPC System2: TOFSystem: n CERN / Experiment Ethernet Operator workstations PCU ( All control actions) Field Interface PCU & FI PVSS Application/Plant ProfiBUS UX Cv service Surface bldg. Control room Wago

7 03 March 2004LHC GCS Framework7 PLC-PVSS Unicos object model Operator Object status Human Requests SCADA Object HMI Parameters Manual Requests Information display Programmer SCADA Auto. Requests PLC Object logic Orders PLCObject status Manual Requests Parameters Programmer Process Input I/O Board or Fieldbus PROCESS Process Output Communication Middleware SCADA PLC

8 03 March 2004LHC GCS Framework8 Motivations/Objectives Homogeneous Gas Control Systems across LHC experiments Using standardized control technologies Reduce efforts and cost Development Maintenance Operation Deal with limited resources Operation and maintenance

9 03 March 2004LHC GCS Framework9 GCSFW Data Flow Logic Generator Instance Generator Meta Model Generator Meta Data HMI Logic Data Process Data Logic files (include files) Logic Template Files Generation of PLC Control logic Access Data base PVSS Application Generator Access Data base Generation of variables declaration and Objects instantiation PVSS template files PVSS Configuration files Synoptics Recipes Anomalies PVSS components Data Base Generators SCADA PLC FW Template instantiation files

10 03 March 2004LHC GCS Framework10 DataBase Generators Meta Model Handling Edit/add/Remove Plants/Systems Report Process Data Handling Objects instantiation Export Import/Generate Code Logic Data Handling Dependent objects Instantiation Logic Code Generation PVSS component files Handling Generation of CSV, XML files Meta Data

11 03 March 2004LHC GCS Framework11 DB-Meta Model Handling- Editing/1 Add/Remove Plants/Systems Gas Systems Specs Application Developer Edit System specifications Tell which module are present

12 03 March 2004LHC GCS Framework12 DB-Meta Model Handling –Editing/2 Application Developer Edit Module options of each system

13 03 March 2004LHC GCS Framework13 DB-Process Data Handling-Use case Generator Meta Data Process Data Phase 1. Objects instantiation Phase 2. Export Phase 3. Import (UNICOS) Phase 4. Code Generation (UNICOS) Pre-filled Excel sheets (for IO and FO objects of a selected Gas system) Gas builder expert (PH-DT1) & Process expert (fill electrical signal Connection to Wago modules Deadband values, range) PLC Files of FO & IO instances PVSS CSV files of FO & IO objects

14 03 March 2004LHC GCS Framework14 DB-Process Data Handling -Phase 1: Populate Process Data Create all objects required for a selected Gas system (resp Gas Module) Delete the Process Data Check objects in Process Data against Meta Data and report errors Update Process Data Add missing objects, update fields, remove useless objects Fields Objects I/O Objects I.e. Analog inputs Analog Outputs Digital Inputs Digital Outputs Pump Mass Flow Controller PCO Local DA/AA etc Application Developer

15 03 March 2004LHC GCS Framework15 DB-Process Data Handling-Phase 2: Export Application Developer Pre-filled Excel sheets (for IO and FO objects of a selected Gas system/module)

16 03 March 2004LHC GCS Framework16 Alice TPC Exhaust IO objects “Exported Excel”

17 03 March 2004LHC GCS Framework17 DB-Process Data Handling- Excel Fill HW Connections Electrical Layout reference Device Properties Adjust SCADA parameters PLC Processing Parameters PLC I/O board Information Field bus configuration Rack Gas expert (PH-DT1) App Developer (Process)

18 03 March 2004LHC GCS Framework18 DB-Process Data Handling-Phases 3&4 Follow AB-CO use case to import the excel files and generate the code. Import After completion of excel documents they are imported to an empty Process Data Code Generation PLC instance files (FO & IO) PVSS csv files (FO & IO)

19 03 March 2004LHC GCS Framework19 DB-Dependent Logic Handling-Use case Generator Meta Data Logic Data Phase 1. Objects instantiation Phase 2. Generate Logic Code (UNICOS) By mean of Forms will trigger the automatic population of the logic tables required to generate the PLC code for the logic Include files (logic files for each instance of a module Concept Object Dependent Logic Concept PCO Dependent Logic Alarm Logic Application Developer PLC Instance Logic files

20 03 March 2004LHC GCS Framework20 DB-PVSS files Generation-Use case Generator Meta Data PVSS components Configuration Files Application Developer Triggers the automatic generation of the PVSS configuration files of a given system (synoptics, recipes, Window Tree, etc)

21 03 March 2004LHC GCS Framework21 GCSFW Data Flow Logic Generator Instance Generator Meta Model Generator Meta Data HMI Logic Data Process Data Logic files (include files) Logic Template Files Generation of PLC Control logic Access Data base PVSS Application Generator Access Data base Generation of variables declaration and Objects instantiation PVSS template files PVSS Configuration files Synoptics Recipes Anomalies PVSS components Data Base Generators SCADA PLC FW Template instantiation files

22 03 March 2004LHC GCS Framework22 SCADA: PVSS Components Overview Plant 1 System 1 Module 1 Synoptic Module View i.e Mixer Synoptic System View i.e TPC Diagnostic Recipes Window Tree Trend Tree Summary of Mixer Alarms Alert summary System 2 System n (up to 8) Synoptic Rack Front Panel of Mixer Synoptic Control Panel of Mixer Module 2 Module n (up to 11) Alice TPC Mixer Pump Synoptic Module View i.e Pump Diagnostic Summary of Pump Alarms Alert summary Synoptic Rack Front Panel of the Pump Synoptic Control Panel of Pump List of Mixer Alarms Recipes List of Pump Alarms Module 1 Module n (up to 11) Summary of Plant Alarms Alert summary Summary of TPC Alarms Alert summary TOF Up to 3 types N Recipes with n values Plant View i.e Alice Synoptic Up to 3 types N Recipes with n values Recipes

23 03 March 2004LHC GCS Framework23 SCADA- Summary Components needed for Alice TPC (6 modules) 20 Synoptic views (Plant view, System view, Module views, Leds views, Control panel Views and others) Recipes (3 recipe Types per module + 1 for system) with up to 100 recipe elements per type. 6 Diagnostic panels 1 Window Tree 1 TrendTree 1 Alert summary Automatic Generation of PVSS components

24 03 March 2004LHC GCS Framework24 PVSS-Generator-FLOW Recipes dpe PVSS Application Generator PVSS Template panels PVSS configuration files from Meta Data Synoptics of a complete System (resp Module) CSV, XML files Alert summary Window Tree /Trend Tree Example 1. Synoptics Generation Example 2. Recipes instantiation

25 03 March 2004LHC GCS Framework25 PVSS-Generator- Synoptic components-1 System View

26 03 March 2004LHC GCS Framework26 PVSS-Generator- Synoptic components-2 Module View

27 03 March 2004LHC GCS Framework27 PVSS-Generator- PVSS components Window Tree of a Plant (i.e. Alice) PVSS DP Recipe Types with corresponding recipes per Module

28 03 March 2004LHC GCS Framework28 Example1: Synoptic Generation Pump Type A&C Template panel Max # of Pump device possible in a Pump Module Optional devices Case 1: Generate Alice TPC Rename Alias of each device with GCSPrefix from CSV Final “Alice TPC” Pump synoptic View

29 03 March 2004LHC GCS Framework29 PVSS-Generator- Recipes Generation Scripts Recipes instantiation in PVSS DB Create all DPs in PVSS DB for all modules of a given system (from CSV files generated from Meta data) PVSS panels Edit recipe types/recipe values (std PVSS) Add/Remove/Modify recipe types/values Download recipe values to PLC (GCS extended) Check the success of the download Guarantee the use of consistent set of values in the PLC.

30 03 March 2004LHC GCS Framework30 PVSS-Generator- Recipes Instantiation Download recipe values in PLC

31 03 March 2004LHC GCS Framework31 GCS (IT-CO) and UNICOS (AB-CO) Collaboration with AB-CO Avoid Duplication Re-use as much as possible UNICOS code Code Generation (IO and FO instances for PLC and PVSS) PLC Dependent Logic code Generation GCS-extension Provide UNICOS with components that can be re-used Compatibility across the Frameworks

32 03 March 2004LHC GCS Framework32 Development Status-1 Generators A Complete Use Case to generate one module of a given system from Meta Data. The overall Use Case compatible with the UNICOS is the following: Edit Meta Data (GCS) Instantiate all objects of the specified module in Process Data (GCS) Export Process Data (IO and FO) in Excel Forms (to be filled by PH-DT1 Gas experts) (GCS) Import excel parameters back to Process Data (UNICOS) Generate PLC instances code for a Module (UNICOS) Instantiate all Objects Dependent Logic of the specified module in Logic Data (GCS) Generate PLC logic code for a module (UNICOS) Generate PVSS configuration files (GCS)

33 03 March 2004LHC GCS Framework33 Development Status-2 SCADA A PVSS Application Generator to Automatically generate Synoptic views of any Gas systems System views, Module Views (Pump, Mixer, Exhaust, Purifier, etc) and others. Recipes of any Gas Systems RecipeTypes (up to 3 per module) Recipes for each recipe types with predefined values Window Tree Configure the window tree from an XML file

34 03 March 2004LHC GCS Framework34 Next steps Release all modules of Alice TPC with the GCSFramework by Q2 2005 Generators: To implement the code to populate the Process Data and the Logic Data for all the remaining modules. To implement the PLC code (templates and include files) for the control logic for the remaining modules PVSS To update the synoptic templates to the URD To Implement the automatic Generation for the other PVSS components: Diagnostic panel Alert Summary Trend Tree, etc..

35 Questions ?


Download ppt "“The LHC GCS Framework” Geraldine Thomas CERN, IT-CO 24.03.2005 A complete PLC and PVSS automatic code Generation."

Similar presentations


Ads by Google