240 likes | 381 Views
Hierarchical Control Demo:. Partitioning, Automation and Error Recovery in the (Detector) Control System of LHC Experiments. Generic SW Architecture. Control Units. ECS. T.S. LHC. DAQ. DSS. DCS. Abstract levels. Commands. GAS. Status & Alarms. DetDcs1. DetDcsN. DetDaq1. SubSys1.
E N D
Hierarchical Control Demo: Partitioning, Automation and Error Recovery in the (Detector) Control System of LHC Experiments
Generic SW Architecture Control Units ECS T.S. LHC DAQ DSS DCS Abstract levels ... ... Commands GAS Status & Alarms DetDcs1 DetDcsN DetDaq1 SubSys1 SubSys2 SubSysN Device Units Dev1 Dev2 Dev3 DevN To Devices (HW or SW)
Control Units • Each CU is inherently able to: • Configure, monitor and control its children • Sequence & Automate operations • Recover errors • Handle Alarms • Filter and display alarms • Partition • Exclude one or more of its children • User Interfacing • Present information and receive commands CU
SCADA based Framework • PVSSII has tools for: • Device Description (Configuration Database): • Device Access (OPC, Profibus, drivers) • Alarm Handling (Generation, Filtering, Masking, etc) • Archiving, Logging, Scripting, Trending • User Interface Builder • Alarm Display, Access Control, etc. • SMI++ provides: • Abstract behaviour modeling (Finite State Machines) • Automation & Error Recovery (Expert System like)
A combination of PVSS II & SMI++ Hierarchical Characteristics: State/Commands One Owner Exclusive/Shared Partitioning Mode Other Characteristics Alarm Handling Access Control Archiving, etc. Control Units SubSys
Control Units (cont.) Parent Operator Configuration Database Commands/States Commands/States Configuration data Specific Behaviour FSM Ownership & Partitioning FSM Logging & Archiving Alarm Handling PVSS II Commands/States Commands/States Commands/States Child Child Child
Device Units • Device Units’s specific tasks are: • Interface to the device it models • Implement Actions • Retrieve States • Generate Alarms • User Interfacing • Present specific information and receive commands DU
Device Units (cont.) • Device Units • Provide the interface to the different devices Operator Parent Commands/States Commands/States Configuration data FSM Interface Alarm Handling Logging & Archiving Device Driver PVSS II Settings/Readings HW/SW Device
Demo – HV Sub System • Sub Detector HV • OFF when all channels OFF • SWITCH_ON -> HV ON • ON when all channels ON • SWITCH_OFF -> HV OFF • ERROR when at least one channel TRIPPED • RECOVER (-> CLEAR_TRIP) -> HV ON HV
Demo - Sub Detector DCS • Sub Detector • NOT_READY when at least one component NOT READY • GET_READY -> HV ON • READY when all Components OK • SET_NOT_READY -> HV OFF • ERROR when at least one component in ERROR • RECOVER -> HV RECOVER Tracker HV GAS
Demo - DCS • DCS • NOT_READY when at least one detector NOT_READY • GET_READY -> all • READY when all detectors READY • SET_NOT_READY -> all • ERROR when at least one detector in ERROR • RECOVER -> all DCS Vertex Tracker Muon HV Temp HV GAS HV GAS
Partitioning ECS DAQ DCS ... ... DetDcs1 DetDcsN DetDaq1 SubSys1 SubSys2 SubSysN Dev1 Dev2 Dev3 DevN To Devices (HW or SW)
Partitioning Modes INCLUDED EXCLUDED Child Fully Controlled by Parent Child Not Controlled by Parent Parent Parent State State Command Command Child Child MANUAL IGNORED Parent does not send Commands Parent Ignores State Parent Parent x State State x Command Command Child Child
Demo - DCS / Partitioning DCS Vertex Tracker Muon HV Temp HV GAS HV GAS
Demo - DAQ • DAQ • NOT_READY CONFIGURE • READY START_RUN • RUNNING STOP_RUN DCS DAQ Vertex Tracker Muon Vertex Tracker Muon HV Temp HV GAS HV GAS FE RU FE RU FE RU
Run Control • Since any Control Unit (and its sub-tree) • Can run in stand-alone • Can be controlled independently (by an authorized User Interface) • The Run Control can be seen as: • The interface to the Root node of the tree • If the tree is partitioned there can be several Run Controls. ECS DCS DAQ
Demo - Run Control • ECS • When LHC in PHYSICS -> GET_READY DCS -> GET_READY DAQ -> START_RUN DAQ ECS LHC DCS DAQ Vertex Tracker Muon Vertex Tracker Muon HV Temp HV GAS HV GAS FE RU FE RU FE RU
Demo - Sub Detector RC ECS DAQ DCS Det1 ... ... DetDcs1 DetDcsN DetDaq1 SubSys1 SubSys2 SubSysN Dev1 Dev2 Dev3 DevN To Devices (HW or SW)
Multiple “RunControl”s ECS LHC DCS Tracker DAQ x x x x VertexDCS MuonDCS TrackerDCS TrackerDCS TrackerDAQ TrackerDAQ MuonDAQ VrtexDAQ HV Temp HV GAS HV GAS FE RU FE RU FE RU
Demo - Safety • Safety • When GAS in ERROR -> SWITCH_OFF HVs ECS LHC DCS DAQ Vertex Tracker Muon Vertex Tracker Muon HV Temp HV GAS HV GAS FE RU FE RU FE RU Safety