The CMS Pixel PLC Code1 Christian Veelken UC Davis last updated 03/05/08.

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

André Augustinus 15 March 2003 DCS Workshop Safety Interlocks.
The Control System for the ATLAS Pixel Detector
Peter Chochula CERN-ALICE ALICE DCS Workshop, CERN September 16, 2002 DCS – Frontend Monitoring and Control.
Electrical distribution for ALICE experiment & Electronic Rack Control S. Philippin.
André Augustinus 16 June 2003 DCS Workshop Safety.
Il sistema di HV del sottorivelatore DT S. Braibant, P. Giacomelli, M. Giunta, E. Borsato Bologna, 20/01/2007.
Active Stations PC PLC PROFIBUS Passive Stations (Field Devices)
RPC Trigger Software ESR, July Tasks subsystem DCS subsystem Run Control online monitoring of the subsystem provide tools needed to perform on-
Tracker Controls MICE Controls and Monitoring Workshop September 25, 2005 A. Bross.
 A system consisting of a number of remote terminal units (or RTUs) collecting field data connected back to a master station via a communications system.
8/11/2006 FPIX TB meeting L. Perera 1 Pixel Power Supply Response Measurement Lalith Perera - Univ. of Iowa Carlos Florez, Simon Kwan, Charles Newsom,
UNICOS-like system for interlocks II Workshop on PLC-based interlocks systems ITER, Dec 2014 Jeronimo ORTOLA VIDAL CERN Engineering Department, Industrial.
Creation Of Control Systems In PVSS For Devices In The ALICE Detector A Large Ion Collider Experiment A dedicated heavy-ion detector at LHC (Large Hadron.
- Software block schemes & diagrams - Communications protocols & data format - Conclusions EUSO-BALLOON DESIGN REVIEW, , CNES TOULOUSE F. S.
The Detector Safety System for LHC Experiments Stefan Lüders ― CERN EP/SFT & IT/CO CHEP03 ― UC San Diego ― March 27 th, 2003.
SCADA and Telemetry Presented By:.
Using PVSS for the control of the LHCb TELL1 detector emulator (OPG) P. Petrova, M. Laverne, M. Muecke, G. Haefeli, J. Christiansen CERN European Organization.
Towards a Detector Control System for the ATLAS Pixeldetector Susanne Kersten, University of Wuppertal Pixel2002, Carmel September 2002 Overview of the.
MDT PS DCS for ATLAS Eleni Mountricha
Module 1: Introduction to PLC
The CMS Pixel PLC Code1 CMS Pixel PLC Code Review - Closing Session - Christian Veelken UC Davis 06/26/08.
XXVI Workshop on Recent Developments in High Energy Physics and Cosmology Theodoros Argyropoulos NTUA DCS group Ancient Olympia 2008 ATLAS Cathode Strip.
ATLAS MDT Power Supply DCS Anastasios Iliopoulos 15/08/2006.
Online Calibration of the D0 Vertex Detector Initialization Procedure and Database Usage Harald Fox D0 Experiment Northwestern University.
André Augustinus 10 September 2001 DCS Architecture Issues Food for thoughts and discussion.
André Augustinus 17 June 2002 Technology Overview What is out there to fulfil our requirements? (with thanks to Tarek)
CE Operating Systems Lecture 3 Overview of OS functions and structure.
PVSS Navigator PP a-MMA_PVSSNavigator.pptx Markus Marchhart PVSS Navigator 1.
Controls EN-ICE Finite States Machines An introduction Marco Boccioli FSM model(s) of detector control 26 th April 2011.
15-16/3/04 DCS workshop G. De Cataldo, A,.Franco and A. Tauro 1 Answers from the HMPID to the ACC questions 1.Concerning global DCS overview drawing 2.Concerning.
Umesh Joshi Fermilab Phase 1 Pixel Upgrade Workshop, Grindelwald August , 2012 CMS Pixel & HCAL Databases (An Overview)
Bruno Belbute, October 2006 Presentation Rehearsal for the Follow-up meeting of the Protocol between AdI and CERN.
FOPI – Slow Control Content 1.FOPI experiment - Overview 2.GUIs for FOPI 3.System Design.
PLC ARCHITECTURE - CPU by Dr. Amin Danial Asham.
ALICE Pixel Operational Experience R. Santoro On behalf of the ITS collaboration in the ALICE experiment at LHC.
Date: File:PRO1_18E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Appendix: Technical.
Source Controller software Ianos Schmidt The University of Iowa.
Management of the LHCb Online Network Based on SCADA System Guoming Liu * †, Niko Neufeld † * University of Ferrara, Italy † CERN, Geneva, Switzerland.
“The LHC GCS Framework” Geraldine Thomas CERN, IT-CO A complete PLC and PVSS automatic code Generation.
The Software for the CERN Detector Safety System G. Morpurgo, R. B. Flockhart and S. Lüders, CERN IT/CO.
ATLAS DCS ELMB PRR, CERN, March 2002Fernando Varela ELMB Networks CAN/CANopen Interoperability of the ELMB Usage of the ELMB in ATLAS ELMB Networks Full.
PLC ARCHITECTURE – Memory 2 by Dr. Amin Danial Asham.
9/17/2008TWEPP 2008, R. Stringer - UC Riverside 1 CMS Tracker Services: present status and potential for upgrade Robert Stringer University of California,
TDAQ Experience in the BNL Liquid Argon Calorimeter Test Facility Denis Oliveira Damazio (BNL), George Redlinger (BNL).
60kW Thermosiphon control system
Summary of User Requirements for Calibration and Alignment Database Magali Gruwé CERN PH/AIP ALICE Offline Week Alignment and Calibration Workshop February.
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
DCS Meeting - 17/6/2002 G. De Cataldo, A.Franco - INFN Bari - 1 The implementation of the HMPID DCS in the PVSS-JCOP Framework The Liquid Circulation and.
Maria del Carmen Barandela Pazos CERN CHEP 2-7 Sep 2007 Victoria LHCb Online Interface to the Conditions Database.
PC Current Interlocking for the SPS Fast Extractions. 1 J. Wenninger July 2009.
An operating system (OS) is a collection of system programs that together control the operation of a computer system.
MARCO control system Munich Lukasz Zwalinski – PH/DT Maciej Ostrega – PH/DT.
Pixel Action Matrix C. Newsom July 15, Overview Critical Parameters Initial Discussion – Top 6 critical failures Discussion - Detailed Documentation.
Organization Blocks Operating system OB1 FC FB FB FC SFC SFB OBs Other
C. Kiesling, 11th B2GM PXD Session, KEK, March , Slow Control System for the PXD PXD Support Systems & Control UNICOS Standard PVSS User Interface.
CT-PPS DB Info (Preliminary) DB design will be the same as currently used for CMS Pixels, HCAL, GEM, HGCAL databases DB is Oracle based A DB for a sub-detector.
Combining safety and conventional interfaces for interlock PLCs
FPix DCS Subgroup Report
Programmable Logic Controllers: I/O
SCADA for Remote Industrial Plant
Christian Veelken last updated 11/09/06
ATLAS MDT HV – LV Detector Control System (DCS)
The IFR Online Detector Control at the BaBar experiment at SLAC
The IFR Online Detector Control at the BaBar experiment at SLAC
The Online Detector Control at the BaBar experiment at SLAC
Detailed information FOR INTERNAL USE ONLY! CUBE20.
Presentation transcript:

The CMS Pixel PLC Code1 Christian Veelken UC Davis last updated 03/05/08

The CMS Pixel PLC Code2 Mission The purpose of the Pixel PLC Code is to ensure a safe Operation of the CMS Forward and Barrel Pixel Detectors in all Circumstances. To be a bit more specific, the two main Tasks of the Code are: continuously monitor the Temperature and Humidity values measured by Pt1000 RTD and HMX Sensors mounted within the Volume of the Pixel Detector react to Conditions that represent a Danger for the Safety of the Pixel Detector by switching-off (“Interlocking”) the CAEN Power Supplies

The CMS Pixel PLC Code3 Heart of the CMS Tracking System 3 Barrel Layers (BPix)  r=4.3, 7.2 and 11 cm  672 Full-Modules and 96 Half-Modules  ROCs, 48 Million Pixels  Total area 0.78 m 2 4 Endcap Disks (FPix)  z=34.5 and 46.5 cm (inner Radius ~ 6 cm away from Beam Line)  96 Blades with 672 Plaquettes  4320 ROCs, 18 Million Pixels  Total area 0.28 m 2 Barrel Disks CMS Detector Diameter: 15m Length: 21.60m The CMS Pixel Detector

The CMS Pixel PLC Code4 CMS Pixel PLC System Commercial Siemens S7-300 System: 1 CPU 315-DP2 1 Ethernet Module 4 Relay Modules (32 Channels for Interlock Lines) 1 Analog Input Module (8 Channels for HMX Humidity Sensors) 1 Digital Input Module (16 Channels for Status Information provided by non-Pixel Safety Systems) 32 RTD Modules (256 Channels for Pt1000 RTD Temperature Sensors) 4 Profibus DP Communication Modules, which interconnect the 5 Crates

The CMS Pixel PLC Code5 CMS Pixel PLC Code 56 Functions (FC) about 2000 (estimated) Lines of Code, written in the Pascal-like Siemens Programming Language “Structured Control Language” (SCL) 3 Organization Blocks (OB) that implement the cyclically executed Main Program, some special Initialization, which is executed once at every PLC Start-up, and a Timer Interrupt that is executed once every 100ms 50 Data-Blocks (DB) which store Configuration Parameters, Process Values and Status Information and which are based on: 44 user-defined Data Types (UDT)

The CMS Pixel PLC Code6 Graphical User Interface The Implementation of the Graphical User Interface is based on the commercial SCADA 1 Software “Process Visualisierungs und Steuerungs System” (PVSS) 1 “Supervisory Control and Data Acquisition” PVSS is used to: retrieve Configuration Parameters from an Oracle Data-Base visualize Process Values and Status Information implement a Finite State Machine (FSM), which allows for a convenient Operation of the whole CMS Detector The Data-Blocks in the PLC are interfaced to PVSS Data-Points by means of a native Siemens S7-Driver developed at CERN N.B.: PVSS is also used to monitor and control the CAEN Power Supplies

The CMS Pixel PLC Code7 Let’s have a look at the PLC Code in a bit more Detail now...

The CMS Pixel PLC Code8 Functions (FC) The 56 Functions may be classified by the Functionality that they implement into different Groups: Functions that handle the “Upload” of Configuration Parameters and Operator Commands from PVSS into the PLC Functions that read Process Values from the Digital Input, Analog Input and RTD Modules and process them Functions that read “Diagnostics” Information describing the Status of the PLC System as a whole Functions that evaluate Interlock Conditions and open/close Relays accordingly “auxiliary” Functions, which implement specific Functionality needed by other Funtions

The CMS Pixel PLC Code9 Organization Blocks (OB) There are 3 Organization Blocks defined in the Pixel PLC Code: OB 1 the Main Program, which is executed endlessly by the Operating System of the PLC OB 35 a Timer Interrupt, which is executed every 100ms and generates a Heart-Beat Signal, indicating that the PLC is running OB 100 a Start-up Routine for Initialization of Data-Blocks, that is executed every Time the PLC is started/re-started

The CMS Pixel PLC Code10 Data-Blocks (DB) Like the Functions, the 50 Data-Blocks may be classified into different Groups, depending on the Type of Data they store: Data-Blocks that store Configuration Parameters and Operator Commands uploaded by PVSS Data-Blocks that store the Configuration Parameters actually in use by the PLC Data-Blocks that store the Operator Commands actually processed by the PLC Data-Blocks that store the Process Values from the Digital Input, Analog Input and RTD Modules Data-Blocks that store “Diagnostics” Information Data-Blocks that store the Status of Interlocks and of the Relays Data-Blocks that store “global” Constants, States and Operator Commands issued via the PVSS Graphical User Interface N.B.: The “Upload” Data-Blocks allow to check all Configuration Parameters before they get used by the PLC 10

The CMS Pixel PLC Code11 User-defined Data Types (UDT) The 50 Data-Blocks are defined in terms of 44 user-defined Data Types. The Advantage of using user-defined Data Types is that: Definitions of Data-Structures can be re-used for different Data- Blocks Block-Transfer Commands can be used when transfering Information from one Data-Block to another Like the Functions and Data-Blocks, the user-defined Data Types may be classified into different Groups. As you might have guessed, there is actually a close Correspondence between the different Groups of Functions, Data-Blocks and user-defined Data Types. N.B. In C++ Language, the user-defined Data Types are like Classes and the Data-Blocks like Instances of those Classes. The concept of user-defined Data Types maps well to the concept of Data- Point Types, that are defined in PVSS.

The CMS Pixel PLC Code12 Data-Flow Configuration DB PVSS Configuration Parameters “PVSS Upload” Configuration Parameter and Operator Commands S7 driver Process Values, Status Information and read-back Configuration Parameter DB 60x DB 10x Settings Configuration Parameters actually processed by PLC BLKMOV DB 40x Readings (Process Values and Status Information) DB 51 DB 35 AI, RTD, DI Module and Channel Diagnostics PLC Frontpanel LEDs Conditions DB S7 driver PIW I Q Temperature, Humidity Sensors Digital Inputs Relay Digital Outputs Oracle DB 59 PLC Heart-Beat DB 52 Relay, Profibus Module Diagn. PVSS DB 20xDB 304 Operator Commands Relay Actions

The CMS Pixel PLC Code13 Main Program Cycle (I) Handle Configuration Parameters uploaded by PVSS 1 global Transfer Request issued by Operator to individual Data-Blocks propagate 1 1,2 1,2,3 1,2,3,4 5,6 6 1: FC 1116 computeCRC16CheckSum 2: FC 1000 checkDataBlockHeader 3: FC 1600 checkChannelAddress 4: FC 1110 isEven 5: FC 1601 checkIlkSensorMask 6: FC 1602 checkIlkRelayMask

The CMS Pixel PLC Code14 Main Program Cycle (II) Handle Commands issued by Operator via PVSS Graphical User Interface

The CMS Pixel PLC Code15 Main Program Cycle (III) Hande Operator Commands issued by PVSS Graphical User Interface open/close all Relays reset all Interlocks (provided the Conditions that triggered them are not fullfilled anymore) clear all Alarms (provided the Alarm Conditions are currently not fullfilled) : FC 1200 readPushButtonStatus

The CMS Pixel PLC Code16 Main Program Cycle (IV) Read System “Diagnostics” Information Wire-breaks, Module Errors,… summarized Status Information for Analog and Digital Input, RTD, Relay Digital Output and Profibus DP Communication Modules PLC Status Detailed “Diagnostics” Information for Analog Input, Digital Input and RTD Modules Check for PLC Errors and Problems with Profibus DP Connections 1 2 1: FC 1052 unpackBits 2: FC 1421 testBit

The CMS Pixel PLC Code17 Main Program Cycle (V) Read Process Values, process “Diagnostics” Information 1,2,3 1,2,3,4,5 1,2,3,6,7 1 1: FC 1116 computeCRC16CheckSum 2: FC 1400 computeAlarmStatus 3: FC 1401 computeDurStateNotOk 4: FC 1411 computeHumidity 5: FC 1412 computeDewPoint 6: FC 1420 unpackModuleStatusBits 6: FC 1421 testBit

The CMS Pixel PLC Code18 Main Program Cycle (VI) Evaluate Interlock Conditions, open/close Relays Interlocks based on RTD Temperature and HMX Humidity Sensors Interlocks based on Digital Inputs global “KILL” Request issued by Operator, severe Configuration Parameter Error open/close Relays, depending on Interlock Conditions

The CMS Pixel PLC Code19 Main Program Cycle (VII) Read Status of Relays for Display by PVSS only

The CMS Pixel PLC Code20 Set Date and Time of PLC System Main Program Cycle (VIII)

The CMS Pixel PLC Code21 Honorable Mention FC 6666 auxiliary Function to initialize Configuration Parameters; called from OB 100 in case PLC Code runs “stand-alone”, i.e. without Connection to PVSS Only used for Testing !!

The CMS Pixel PLC Code22 Summary The CMS Pixel PLC Code consists of about about 2000 (estimated) Lines of Code, written in the Pascal-like Siemens Programming Language SCL The main Objective of the Code is to interlock the CAEN Power Supplies providing the High and Low Voltages for the Operation of the Pixel Detector, based on the Process Values of 256 RTD Temperature and 8 HMX Humidity Sensors mounted within the Volume of the Pixel Detector The Pixel PLC Code provides a high Degree of Adaptability; its run-time Behavior can be changed to a large Extent by uploading Configuration Parameters from PVSS into the PLC (the latter Feature has been taken from the PLC Code developed by the CMS Silicon Strip Tracker DCS Group – see Acknowledgements )

The CMS Pixel PLC Code23 Apologies The Pixel PLC Code Code has been ready for Review since January 25 th. When I started working on the Graphical User Interfaces for PVSS Data-Points associated to the PLC System, I realized that I wanted to extend the Code I had developed by January 25 th, in order to improve the Handling of: Access Control Errors present in Configuration Parameters So, I went ahead and modified the PLC Code. The Information presented in this Talk is up-to-date. I might have overlooked outdated Information in the more detailed MS-Word Documentation at a few Places, however. Sorry !!

The CMS Pixel PLC Code24 Acknowledgements I would like to thank Andromachi Tsirou and Piero Giorgio Verdini from the CMS Silicon Strip Tracker DCS Group for kindly providing their PLC Code, which has been used as Basis for the Development of the Pixel PLC Code -and for answering quite a few Questions concerning their Code !!