Clara Gaspar, March 2003 Hierarchical Control Demo: Partitioning, Automation and Error Recovery in the (Detector) Control System of LHC Experiments
Clara Gaspar, March Generic SW Architecture... To Devices (HW or SW) Commands Status & Alarms ECS DCS DAQ DetDcs1 DetDcs N SubSys 1 SubSys 2 Dev 1 Dev 2 Dev 3 DetDaq 1 SubSysN Dev N LHC T.S.... Device Units Control Units GAS DSS Abstract levels
Clara Gaspar, March Control Units zEach CU is inherently able to: yConfigure, monitor and control its children xSequence & Automate operations xRecover errors yHandle Alarms xFilter and display alarms yPartition xExclude one or more of its children yUser Interfacing xPresent information and receive commands CU
Clara Gaspar, March SCADA based Framework zPVSSII has tools for: yDevice Description (Configuration Database): yDevice Access (OPC, Profibus, drivers) yAlarm Handling (Generation, Filtering, Masking, etc) yArchiving, Logging, Scripting, Trending yUser Interface Builder yAlarm Display, Access Control, etc. zSMI++ provides: yAbstract behaviour modeling (Finite State Machines) yAutomation & Error Recovery (Expert System like)
Clara Gaspar, March Control Units zA combination of PVSS II & SMI++ yHierarchical Characteristics: xState/Commands xOne Owner xExclusive/Shared xPartitioning Mode yOther Characteristics xAlarm Handling xAccess Control xArchiving, etc. SubSys
Clara Gaspar, March Control Units (cont.) PVSS II Specific Behaviour FSM Ownership & Partitioning FSM Alarm Handling Logging & Archivin g Parent Commands/States Configuration Database Operator Child Commands/States Configuration data
Clara Gaspar, March Device Units zDevice Units’s specific tasks are: yInterface to the device it models xImplement Actions xRetrieve States yGenerate Alarms yUser Interfacing xPresent specific information and receive commands DU
Clara Gaspar, March Device Units (cont.) zDevice Units yProvide the interface to the different devices PVSS II FSM Interface Alarm Handlin g Logging & Archivin g Commands/States Operator HW/SW Device Commands/States Settings/Readings Configuration data Parent Device Driver
Clara Gaspar, March Demo – HV Sub System HV zSub Detector HV yOFF when all channels OFF xSWITCH_ON -> HV ON yON when all channels ON xSWITCH_OFF -> HV OFF yERROR when at least one channel TRIPPED xRECOVER (-> CLEAR_TRIP) -> HV ON
Clara Gaspar, March Demo - Sub Detector DCS GA S Tracke r HVHV zSub Detector yNOT_READY when at least one component NOT READY xGET_READY -> HV ON yREADY when all Components OK xSET_NOT_READY -> HV OFF yERROR when at least one component in ERROR xRECOVER -> HV RECOVER
Clara Gaspar, March Demo - DCS DCS Vertex GA S HVHV Tracke r Muon Tem p HVHV GA S HVHV zDCS yNOT_READY when at least one detector NOT_READY xGET_READY -> all yREADY when all detectors READY xSET_NOT_READY -> all yERROR when at least one detector in ERROR xRECOVER -> all
Clara Gaspar, March Partitioning... ECS DCS DAQ DetDcs1 DetDcs N SubSys 1 SubSys 2 Dev 1 Dev 2 Dev 3 DetDaq 1 SubSysN Dev N... To Devices (HW or SW)
Clara Gaspar, March Partitioning Modes Parent Child State Command INCLUDED Parent Child State Command EXCLUDED Child Fully Controlled by Parent Parent Child State Command MANUAL Parent Child State Command IGNORED x x Child Not Controlled by Parent Parent does not send CommandsParent Ignores State
Clara Gaspar, March Demo - DCS / Partitioning DCS Vertex GA S HVHV Tracke r Muon Tem p HVHV GA S HVHV
Clara Gaspar, March Demo - DAQ DAQ Tracke r Muon FE RURU RURU DCS Vertex GA S HVHV Tracke r Muon Tem p HVHV GA S HVHV yDAQ xNOT_READY CONFIGURE xREADY START_RUN xRUNNING STOP_RUN Vertex FE RURU
Clara Gaspar, March Run Control zSince any Control Unit (and its sub-tree) yCan run in stand-alone yCan be controlled independently (by an authorized User Interface) zThe Run Control can be seen as: yThe interface to the Root node of the tree è If the tree is partitioned there can be several Run Controls. ECS DAQDCS
Clara Gaspar, March Demo - Run Control ECS DCSDAQ Vertex GA S HVHV Tracke r MuonVertex Tracke r Muon Tem p HVHV GA S HVHV FE RURU RURU RURU LHC yECS xWhen LHC in PHYSICS -> GET_READY DCS -> GET_READY DAQ -> START_RUN DAQ
Clara Gaspar, March Demo - Sub Detector RC... ECS DCS DAQ DetDcs1 DetDcs N SubSys 1 SubSys 2 Dev 1 Dev 2 Dev 3 DetDaq 1 SubSysN Dev N... Det1 To Devices (HW or SW)
Clara Gaspar, March Multiple “RunControl”s ECS DCSDAQ VertexDC S GA S HVHV MuonDC S TrackerDCSTrackerDAQMuonDAQVrtexDAQ Tem p HVHV GA S HVHV FE RURU RURU RURU LHC Tracker x x TrackerDCSTrackerDAQ x x
Clara Gaspar, March Demo - Safety ECS DCSDAQ Vertex GA S HVHV Tracke r MuonVertex Tracke r Muon Tem p HVHV GA S HVHV FE RURU RURU RURU LHC ySafety xWhen GAS in ERROR -> SWITCH_OFF HVs Safety
Clara Gaspar, March HV Device
Clara Gaspar, March Partitioning Sub-Systems
Clara Gaspar, March Run Control
Clara Gaspar, March Sub-detector Control