Presentation is loading. Please wait.

Presentation is loading. Please wait.

D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 1 Finite State Machines (FSM) for the ALICE DCS:

Similar presentations


Presentation on theme: "D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 1 Finite State Machines (FSM) for the ALICE DCS:"— Presentation transcript:

1

2 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 1 Finite State Machines (FSM) for the ALICE DCS: a common project Why FSM? How do we do it? The method and a given example ALICE DCS: the Project Presentation Conclusions Why FSM? How do we do it? The method and a given example ALICE DCS: the Project Presentation Conclusions

3 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 2 Why FSM? For both ALICE and the sub-detector’s C.S. the FSM approach allows for: to develop the the Sub-Detector controls in a standard way ; –to reduce the number of parameters to be managed at the Supervisory layer. to integrate in the ALICE DCS the sub-detector C.S. with related hierarchy and partitioning features. For both ALICE and the sub-detector’s C.S. the FSM approach allows for: to develop the the Sub-Detector controls in a standard way ; –to reduce the number of parameters to be managed at the Supervisory layer. to integrate in the ALICE DCS the sub-detector C.S. with related hierarchy and partitioning features.

4 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 3 How do we do it ? TPC DCS TPC FEE ss TPC HV ss HMPID DCS HMPID HV ss ALICE DCS SMI++ provides tools, Control Units, Domains all behaving as finite state machine; to build Device Units, Control Units, Domains all behaving as finite state machine; to define the Partitioning mode: IncludedExcluded,StandAlone,, Manual and Ignored; to define the Partitioning mode: Included, Excluded,StandAlone, Command Disabled, Manual and Ignored; to define the Hierarchy rules: Exclusive or Shared mode. http://clara.home.cern.ch/clara/fw/FSMConfig.pdf PVSS & SMI++ toolkit in the JCOP framework PVSS & SMI++ toolkit in the JCOP framework

5 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 4 OFF : The HV HMPID is OFF and the PS’s are OFF too STATES CONFIG : The relevant parameters are loaded and set in the PVSS Data points, the enabled module goes in STANDBY else in the DISABLED state STANDBY : The system is ready to power on the enabled HMPID HV segments RAMPUP : The HV segments are switched ON READY : The HV sub system is ready for Physics RAMPDOWN : The HV segments are switched OFF Standby : It loads the module configuration and it brings the system on the STANDBY status Transition or Action LIST HVon : It switch ON all the configured HV channels HVoff : It switch OFF all the configured HV channels Off : go to the OFF status. Reset : To exit from the Error Status The method and the HMPID as a given example: State and Action lists Set up the requirement list of the HV sub-system;Set up the requirement list of the HV sub-system; Define the functional states of the system;Define the functional states of the system; Then provided a graphical representation of the States and Transitions: the bubble chart.Then provided a graphical representation of the States and Transitions: the bubble chart. The State diagram of the HV Subsys.

6 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 5 HVPS 1 HVm 7 HVm 6 HVm 5 HVm 4 HVm 3 HVm 2 HVm 1 High Voltage C.U. Domain (c.prg SMI++) High Voltage C.U. Domain (c.prg SMI++) Low voltage C.U Domain. Low voltage C.U Domain. Gas Distrib. C.U.Domain Gas Distrib. C.U.Domain C6F14 rec. C.U. Domain C6F14 rec. C.U. Domain Cooling C.U. Domain Cooling C.U. Domain Device Units LCModul LCMain ? ? ? ? ? ? HMPID Control Unit Domain HMPID Control Unit Domain Hierarchy: Exclusive or Shared mode MainUser hardware Expert Hierarchical representation of the HMPID C.S. This representation and functionality comes once the SMI++toolkit is adopted to build the C.S.. Included Excluded, Included, Excluded, StandAlone,, Manual and Ignored; StandAlone, Command Disabled, Manual and Ignored; 7 HMPID Modules

7 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 6 FSM DP FSM Device Units HVm2 FSM DP FSM Device Units HVm2 CAEN SY1527 HV Channels Framework device DPs DCOM/OPC connection HV SubSystem Control Unit Domain HV SubSystem Control Unit Domain FSM DP FSM Device Units HVm1 Interface Program The HVm.. Device Unit : a tailored interface to the hardware All the parameters and variable of the CAEN SY1527 Crate are linked, by OPC server technology, to a set of PVSS DataPoint by means of the Framework configuration facilitiesAll the parameters and variable of the CAEN SY1527 Crate are linked, by OPC server technology, to a set of PVSS DataPoint by means of the Framework configuration facilities Some DataPoint are defined as Logical Device, one for the HV Power Supply Station and 7 for the HV Modules, they will became the interface point for the FSM Device UnitSome DataPoint are defined as Logical Device, one for the HV Power Supply Station and 7 for the HV Modules, they will became the interface point for the FSM Device Unit For each Device Unit an associated FSM has been defined using the FSM-Framework toolsFor each Device Unit an associated FSM has been defined using the FSM-Framework tools An High Voltage Control Unit Domain and the relative SMI++ control program has been createdAn High Voltage Control Unit Domain and the relative SMI++ control program has been created A devoted Interface Control Scripts Program is requested to convert, all the information coming from the SY1527 (board included), in logical objects (Device Unit) behaving as FSM’s … 

8 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 7 HVm1 [hmpidHVM] HVm1 [hmpidHVM] HVm1 [hmpidHVM] HVm1 [hmpidHVM] HVm1 [hmpidHVM] HVm1 [hmpidHVM] Primo_board01_ch01 [FwCaenChannel] Primo_board01_ch01 [FwCaenChannel] Primo_board01_ch01 [FwCaenChannel] Primo_board01_ch01 [FwCaenChannel] Primo_board01_ch01 [FwCaenChannel] Primo_board01_ch01 [FwCaenChannel] Primo_board01 [FwCaen1527Board] Primo_board01 [FwCaen1527Board] Primo_board01 [FwCaen1527Board] Primo_board01 [FwCaen1527Board] 1 CAEN SY1527 crate 1 CAEN SY1527 crate 5 CAEN A1821 boards 5 CAEN A1821 boards 49 CAEN HV channels 49 CAEN HV channels HV Power Supply HV Power Supply HV Module 3 HV Module 4 HV Module 5 HV Module 6 HV Module 2 HV Module 7 HV Module 1 Physical Devices FSM Device Units Primo [FwSy1527] Primo_board01 [FwCaen1527Board] Primo_board01_ch01 [FwCaenChannel] HVpa1 [hmpidHVPS] HVm1 [hmpidHVM] Jasd j i= 0 If(kjsad) asd asda Jkd askd aksd kaksd as Asdas asd Jasd j i= 0 If(kjsad) asd asda Jkd askd aksd kaksd as Asdas asd Event fired by values changes Change of Device Status Event fired by Request Action Command to Devices The Interface Control Script Program 1.When the Domain Control Program send an action (command) to a FSM Device Unit, the related DataPoint values changes. 2.This results in the execution of a subroutine that according to the command received modify all the related DataPoint configuration. 1.When a parameter value of the Physical Device undergo changing, then the corresponding DataPoint config value changes. 2.This starts a subroutine that according to new value may bring the related FSM D.U. in the new state.

9 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 8 HV Control Unit: session snapshot An example of HV Sub System RAMPUP phase: The control panel opened from the Device Editor & Navigator has taken the control of the HV sub-system, as shown in the FSM- Framework panel The control panel  opened from the Device Editor & Navigator  has taken the control of the HV sub-system, as shown in the FSM- Framework panel . The intermediate RAMPUP state is reached just after the HVon command is send to the Control Unit. The telnet section on the SY1527 crate gives a real time feedback. The telnet section  on the SY1527 crate gives a real time feedback. The Power Supply Unit is in READY state during all the operations. The modules from 2 to 7 are disabled The Power Supply Unit is in READY state during all the operations. The modules from 2 to 7 are disabled  1 3 2 4 5

10 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 9 HMPID Control Panel: the Graphic User Interface

11 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 10 Working with the SMI++ toolkit HVPS 1 HVm 7 HVm 6 HVm 5 HVm 4 HVm 3 HVm 2 HVm 1 High Voltage C.U. Domain High Voltage C.U. Domain hardware Config. Panel for Device Type Configuring Hierarchy of FSM Configuring FSM Domains. It is relevant for Patitioning purposes Config. Panel for Logical Object type Control Unit definition

12 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 11 Experiment parameters set #1 Experiment parameters set #1 External Data Base for the HMPID Configuration Configuration DB Experiment parameters set #1 Name 1  Value Name 2  Value Dictionary Name 1  DP 1 In order to have a centralized repository of the Detector Configurations a D.B., external to the PVSS environment, has been created. Store a Configuration : the HMPID config. parameters are stored in the external DB as a list of doublets (Name,Value) where the name is the symbolic name of a parameter given by the user. Load a Configuration :according to a Dictionary, each doublet (Name,Value) in the Config. D.B. is converted in the corresponding doublet (DataPoint, Value) in the PVSS environment (. Load a Configuration :according to a Dictionary, each doublet (Name,Value) in the Config. D.B. is converted in the corresponding doublet (DataPoint, Value) in the PVSS environment ( DP  Value). PVSS DB DP 1  Value - Symbolic Name Definition : a custom panel in the FW allows the definition of the Symbolic Name into the Dictionary. -  Symbolic Name Definition : a custom panel in the FW allows the definition of the Symbolic Name into the Dictionary. - Store a configuration: a control script program is able to record, in the Configuration DB, the actual HMPID configuration parameters present in the PVSS Data Base. This is a “detector snapshot”. -  Store a configuration: a control script program is able to record, in the Configuration DB, the actual HMPID configuration parameters present in the PVSS Data Base. This is a “detector snapshot”. - Load a configuration: a control script program reads from the config. DB all the parameter values requested for the “detector configuration” and according to the Dictionary writes them in the PVSS Data Point Elements. -  Load a configuration: a control script program reads from the config. DB all the parameter values requested for the “detector configuration” and according to the Dictionary writes them in the PVSS Data Point Elements. 3 2 1 Control Script Control Script

13 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 12 Dictionary and Management of the External D.B.. Configuration panel to create the Dictionary entries. Definition of a complex symbolic name. The Load/Store Configuration Setting panel.

14 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 13 What About the ALICE DCS ? Taking profit of the expertise developed so far while implementing the HMPID C.S. (PVSS, SMI++ toolkit and external config. D.B.), we are going to start the designing and implementation of the first prototype of ALICE DCS. TRD DCS ITS DCS TPC DCS HMPID DCS ALICE DCS TOF DCS

15 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 14 ALICE DCS: Project Presentation Integration of all the HMPID Subsystem Controls as FSM; Access extension ( proving of the external Data Base for the HMPID configurations;Access extension (PostgreeSQL and MySQL) and improving of the external Data Base for the HMPID configurations; Integration of the HMPID C.S. in the first prototype of the ALICE DCS;Integration of the HMPID C.S. in the first prototype of the ALICE DCS; Subsequently, integration in the ALICE DCS of a new sub-detector C.S..Subsequently, integration in the ALICE DCS of a new sub-detector C.S.. Integration of all the HMPID Subsystem Controls as FSM; Access extension ( proving of the external Data Base for the HMPID configurations;Access extension (PostgreeSQL and MySQL) and improving of the external Data Base for the HMPID configurations; Integration of the HMPID C.S. in the first prototype of the ALICE DCS;Integration of the HMPID C.S. in the first prototype of the ALICE DCS; Subsequently, integration in the ALICE DCS of a new sub-detector C.S..Subsequently, integration in the ALICE DCS of a new sub-detector C.S..

16 D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 15 Conclusions At level of HMPID C.S. the PVSS+SMI++ toolkit (avail. In the JCOP F.W.) has proven to be effective, then we intend to extended this approach to the implementation of the ALICE DCSAt level of HMPID C.S. the PVSS+SMI++ toolkit (avail. In the JCOP F.W.) has proven to be effective, then we intend to extended this approach to the implementation of the ALICE DCS ( http://clara.home.cern.ch/clara/fw/FSMConfig.pdf), To be homogeneous, all the subdetector C.S should adopt the same FSM approach: the common project;To be homogeneous, all the subdetector C.S should adopt the same FSM approach: the common project; Development activities for the first ALICE DCS prototype are now on the way;Development activities for the first ALICE DCS prototype are now on the way; The Alice Control Co-ordination Team and HMPID expertise are available to provide informationThe Alice Control Co-ordination Team and HMPID expertise are available to provide information At level of HMPID C.S. the PVSS+SMI++ toolkit (avail. In the JCOP F.W.) has proven to be effective, then we intend to extended this approach to the implementation of the ALICE DCSAt level of HMPID C.S. the PVSS+SMI++ toolkit (avail. In the JCOP F.W.) has proven to be effective, then we intend to extended this approach to the implementation of the ALICE DCS ( http://clara.home.cern.ch/clara/fw/FSMConfig.pdf), To be homogeneous, all the subdetector C.S should adopt the same FSM approach: the common project;To be homogeneous, all the subdetector C.S should adopt the same FSM approach: the common project; Development activities for the first ALICE DCS prototype are now on the way;Development activities for the first ALICE DCS prototype are now on the way; The Alice Control Co-ordination Team and HMPID expertise are available to provide informationThe Alice Control Co-ordination Team and HMPID expertise are available to provide information


Download ppt "D etector C ontrol S ystem ALICE DCS workshop 16-9-2002 G. De Cataldo CERN-CH, A. Franco INFN Bari, I 1 Finite State Machines (FSM) for the ALICE DCS:"

Similar presentations


Ads by Google