Presentation is loading. Please wait.

Presentation is loading. Please wait.

A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.

Similar presentations


Presentation on theme: "A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department."— Presentation transcript:

1 A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department of Energy IRMIS RDBCore – integrated s/w, h/w and cable databases D. Dohan, Mar 9, 2005

2 Pioneering Science and Technology Office of Science U.S. Department of Energy 2 PV ERD – essential elements is part of loaded in An EPICS record has a name and is of a specific type. Each record type has a DBD record definition Records have fields, which are name/value pairs. A record instance is defined by its set of field/value pairs. These instance values are contained in.db files. A record definition may span several.db files Records are loaded into (belong to) an IOC. (Channel Access does not need to know which IOC the record belongs to, but the developer does) No record-type specific tables – the crawler ‘discovers’ the implemented record types. Schema and crawler site neutral

3 Pioneering Science and Technology Office of Science U.S. Department of Energy 3 PV Schema

4 Pioneering Science and Technology Office of Science U.S. Department of Energy 4 PV schema more of a software system schema – capturing the entire system logic -ioc configuration and boot information -database definitions -inter IOC links -CA clients (adl now, alh coming, others..) -time stamp – like CVS tag exhaustive PV list is required  crawler -mining PV info to extract control system hardware components ~70% of initial APS components ‘discovered’ by PV data mining -possible use in name server?

5 Pioneering Science and Technology Office of Science U.S. Department of Energy 5 IRMIS Components What is a component? -“ a constituent element, as of a system”… (Google) -unit replaceable physical entity associated with the accelerator - IO card, chassis, serial link,.. -more primitive granularity than a ‘device’ - do not assign a high level physics ‘role’ to a component - less subjective – no naming convention issue - more on this later -more geared to how the facility is assembled, rather than how it functions. component approach was originally based on EPICS device-types -now extended to cover all accelerator equipment - mechanical components, physical spaces, ac distribution - multi-hierarchy

6 Pioneering Science and Technology Office of Science U.S. Department of Energy 6 Component RDB –essential elements is a is controlled by is housed by is powered by At this point, we can begin tabulating all of the components in the accelerator - the table contains component_id/component_type pairs. In IRMIS, each control component is controlled by, or passes data to a unique control parent. This 1:M relation defines a control hierarchy The database table now contains the cmpnt_id, the cmpnt_type and its control_parent_id, which points to another component instance somewhere in the database. The basic entity in the component database is the concept of a component type. Issue: The database contains only the components that an IOC can ‘see’. Another issue was how to handle the ‘location’ attribute – limited queryability. Any component instance is of a specific type. Each component is assigned a logical # (the EPICS io addr) and a physical descriptor to distinguish similar hierarchy siblings Component table: An additional hierarchy has been added – the power hierarchy. Any component gets its power feed from a unique power source, which is component in the DB. An additional hierarchy is defined – the housing hierarchy. Each component is ‘housed’ within another component within the DB. Every device has a housing parent. The location attribute is replaced by the housing hierarchy. May now add non control components cmpnt_idcmpnt_type_idcontrol_p_idhousing_p_idpower_p_idlnpdS/Netc ----------

7 Pioneering Science and Technology Office of Science U.S. Department of Energy 7 Multiple Hierarchies attempt to capture orthogonal hierarchical concepts -who controls the component? -where is it located? -where does the component derive its power? more than just another attribute – allows (hierarchy based) querying -what other components are controlled by this c-parent? -what is located in this chassis? what else is nearby? -what other components are powered by the same circuit? - concept of ‘path’ provided by the hierarchical topology components need not be members of all 3 hierarchies -every component is a member of the housing hierarchy - it must be located somewhere, even if it is in a stores cabinet - every component is stored only once in the database

8 Pioneering Science and Technology Office of Science U.S. Department of Energy 8 Assembling a (sub) facility typeidcpidhpidppid room1-0- 1 rack2-1- 2 3-1- 3 circuit5-44 5 ac panel4-10 4 pwr strip6 - 25 6 chassis7928 7 chas. ps8-76 8 cpu9077 9 101410777 gpib dev121126 12 gpib link1110 - 11 chassis13-3- 101414-13- 14 1014D15-13- 15

9 Pioneering Science and Technology Office of Science U.S. Department of Energy 9 Connections vs components in the case of the 1014 – only the serial number is changed when swapping spares.. -the id of the row in the db is not changed – the connection, or system configuration, has not changed -the software (i.e. the PV) is only aware of the connection, not of the serial number of the module. -if the 1014 is replaced with a pin compatible module (eg the 1014D above), then both the serial # and the component type changes. The connection id remains the same. The PV does not know the difference. -The user is never directly aware of the component/connection id. -each line in the component table (‘relation’ in RDB speak) represents a multi-dimensional abstract connection. The components making up the connection are merely attributes of the connection

10 Pioneering Science and Technology Office of Science U.S. Department of Energy 10 Detailed Component schema

11 Pioneering Science and Technology Office of Science U.S. Department of Energy 11 Cables

12 Pioneering Science and Technology Office of Science U.S. Department of Energy 12 Cable ERD is a is part of is controlled by is housed by is part of is powered by Each component has a set of ports - (0 or more) To handle the wide variety of cable types, each pin in each port is stored in the database. The pins accept the individual ‘signals’ carried in the conductors in a multi-strand connector. A cable is something with a connector. Has a color and label. The cable is what the user handles, ie connects between ports The user connects cables, the database connects pins. Pins have signals, which will eventually relate to software PVs. With the component database infrastructure in place, the cable database is surprisingly simple. Most of the complexity is handled in the hierarchical component database. The cable and component schema is site neutral. There is no APS or SNS signature: there is not even any evidence that we are modelling an accelerator.

13 Pioneering Science and Technology Office of Science U.S. Department of Energy 13 Detailed cable schema

14 Pioneering Science and Technology Office of Science U.S. Department of Energy 14 Component and Cable Editor/Viewer – wip

15 Pioneering Science and Technology Office of Science U.S. Department of Energy 15 Cables and components – (discussion, future) a cable transmits a signal from an output of one component to an input of another component. -the cable does not have a signal name – each port does - the cable has 2 signal names associated with it the component takes its inputs and transforms them into a set of outputs -concept of a component as a signal transformer - eg : light box O = I - eg: fan-out Oj = I (j=1,8) - allow end-to-end signal tracing (for simple xfmr’s) abstract the notion of component as a signal XFMR, and store in the RDB - this is still not functional decomposition/description. expanded characterization of signal types – to simplify cable entry

16 Pioneering Science and Technology Office of Science U.S. Department of Energy 16 Wiring list equipment wiring list/ interface control document

17 Pioneering Science and Technology Office of Science U.S. Department of Energy 17 Wiring list equipment wiring list/ interface control document

18 Pioneering Science and Technology Office of Science U.S. Department of Energy 18 Extending component types Extend component types to include accelerator equipment put the external component into the component RDB -wiring list information is now handled by the cable database -gives the control engineer a better feel for how the system as a whole is supposed to work -can be extended to include power supplies - high current power feeds are generalized signals - power supply ‘transforms’ the drive signal to high current - storage of this abstract transformation within the RDB -more abstract: can be extended to include magnets - I/P signal is high current, output signal is B-field (abstract) -more abstract – extension to the beam as a component - I/P signal = B, output signal = X,Y,etc BPM signal. Perhaps not, but this is what the modelers in essence do. -can also be extended (downward) to replaceable board level components – fpga, etc

19 Pioneering Science and Technology Office of Science U.S. Department of Energy 19 Components vs devices (and naming conventions) PS controllerMagnetPower Supply Beam Suppose that all the component transforms are stored in the database – would this be a basis around which to model physics data, at the same time providing the engineer with the component/assembly description? This schema is still site-neutral – only the system assembly data (the configuration instance data) is site specific. Functional modeling replaced by component transfer functions. Now that all the components are in the database, what about another hierarchy - the physics device hierarchy?

20 Pioneering Science and Technology Office of Science U.S. Department of Energy 20 RDBCore - Work in Progress is a is part of is controlled by is housed by is part of loaded in EPICS device support in RDB. Table for supported device_types and their associated device support revive PV mining script to deduce installed H/W – establishes sw/hw link dbior reports is powered by

21 Pioneering Science and Technology Office of Science U.S. Department of Energy 21 IRMIS Future (cont’d) IRMIS as a core (site-neutral) RDB schema and basic applications – only 28 tables are in RDBCore at present. RDB Extensions: -How can local site specific extensions be built to be (at least partially) reusable? (e.g. framework approach) -Example – ioc applications based on the component DB Universal component type table – at least for the EPICS supported devices. Locally extensible


Download ppt "A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department."

Similar presentations


Ads by Google