IRMIS: Future Developments

Preview:

DESCRIPTION

IRMIS: Future Developments. IRMIS/Relational Database Workshop Argonne National Laboratory D. Dohan, June 12, 2006. component_rel_type. rel_name. component type. component_rel. name description form factor manufacturer function. - PowerPoint PPT Presentation

Citation preview

A U.S. Department of EnergyOffice of Science LaboratoryOperated by The University of Chicago

Argonne National Laboratory

Office of ScienceU.S. Department of Energy

IRMIS: Future Developments

IRMIS/Relational Database Workshop Argonne National LaboratoryD. Dohan, June 12, 2006

2

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Component Connections

The IRMIS schema, how components are interconnected:

• physically (housing hierarchy)

• logically (control hierarchy)

• power grid (power hierarchy)

• Each relationship type is hierarchical in nature (each child has a unique parent in each hierarchy). The hierarchies are modeled as node/edge graphs (DAGs).

component

component_type_id

component type

namedescriptionform factormanufacturerfunction

is a

component_rel_type

rel_name

component_rel

parent_cmpnt_idchild_cmpnt_idlogical_orderlogical_desccomponent_rel_type_id

3

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Component Interfaces

• Each component type has the following properties:

• a set of ‘required’ interfaces

• a set of ’provided’ interfaces

• An ‘interface’ (both required and provided) restricts <<business rule>> the types of parent/child relationships that can take place (in any hierarchy)

• Thus an AllenBradley module (requires interface ‘AB_Slot’) cannot be inserted into a VME Chassis, which only provides an interface ‘VME_Slot’

4

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Component Interfaces - Schema

component

component_type_id

component type

namedescriptionform factormanufacturerfunction

is a

component_rel_type

rel_name

component_rel

parent_cmpnt_idchild_cmpnt_idlogical_orderlogical_desccomponent_rel_type_id

component_type_if

requiredpresentedmax_childrencomponent_type_idcomponet_type_if_type_idcomponent_type_id

component_type_if_type

if_typecomponent_rel_type_id

5

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

IRMIS Future Developments

• Relating Process Variables to Components -- Data Mining

• Query PVs for records with field_type ‘INP’ or ‘OUT’

• Look for a characteristic signature in the INP string. Eg AB #Lx Ay Cz Sv

• This implies the existance of an Allen Bradley module (use DTYP for the specific module type). From IRMIS, we know which IOC has this component.

• By querying the ‘control interface required’ for the component, we have a limited number of component types that the component can connect to - (often only one). In the case of the A/B - we are left with the choice of an 8-slot or 12-slot chassis. Requires user input (once).

• Querying the required control interface of the chassis results in a choice of a PLC-5 or a remote adapter. The adapter number of this new component is obtained from the INP string.

• In this manner, one recursively applies the interface required/provided rule to extract the ‘infrastructure’ components that are implied by the existance of a given process variable.

6

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

IRMIS Future: Object vs Relational Modeling

• The data mining experience - object or relational modeling?

vcct1.3 - file based - single hierarchy - initial datamining

vcct20 - java based - 3 hierarchy - ‘schema 1’

irmis2 - idt - XAL - Hibernate ORM - object modeling - ‘schema 2’

PHP - web based viewer

irmis3 - AJAX - relational model - web based - ‘assembly schema3’

JAVA

PHP,AJAX

Object Model

Relational Model

7

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Component Interfaces - Schema

component

component_type_id

component type

namedescriptionform factormanufacturerfunction

is a

connection_type

connection_type

component_type_interface

component_type_idinterface_id

interface

interfacerequiredprovidedconnection_type_id

assemblyassembly

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_id

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_id

8

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Component Interfaces - Schema

component

component_type_id

component type

namedescriptionform factormanufacturerfunction

is a

connection_type

connection_type

component_type_interface

component_type_idinterface_id

interface

interfacerequiredprovidedconnection_type_id

assemblyassembly

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

9

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

sub_assemblysub_assembly

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

beam_line_xxbeam_line_xx

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

Component Interfaces - Schema

component

component_type_id

component type

namedescriptionform factormanufacturerfunction

is a

assemblyassembly

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

component_idfield_namecontrol_p_idlog_addrhousing_p_idlocatorpower_p_idmode

aps_component

component_idserial_numbercriticality

beam_line_component

component_idserial_numberattr_xrxattr_y…

10

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

IRMIS Future Dev: Signal Tracing

• A component has in general a number of input signals, and a number of output signals.

• Each output signal is some function of the input signals, (and of the component itself).

• Extending the definition of a component output pin:

• Each component output pin has a ‘transfer function’ associated with it.

• The transfer function is similar to a line in a calc record:

• Example: A summing component. O=(A+B)/2. Output pin O is the sum of input pins A and B.

• Example: Fanout. Oj = I0 Output in Pin J = Input on Pin 0;

• (the transfer functions are indicated in green)

• With the pin transfer functions in place, one can now do end-to-end signal tracing (at least up-hill!).

• In the case of the APS timing system, it would thus be possible to trace the source of any event receiver module back to its ultimate source.

11

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

IRMIS Future Dev: Fault Tracing

• Trace failed PVs to locate the common part of the failed field bus path

• Can we have ‘state of health’ for general field bus communications? Or is there some signature (regex?) that can be defined to locates state of health PVs?

- Auto generate alarm handler config files with these PVs on IOC reboot

• Fault tracing is helped considerably if we can do general signal tracing.

12

Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

IRMIS Future Dev: Component Transfer Function

component

component_type_id

component type

namedescriptionform factormanufacturerfunction

is a

component_rel

parent_cmpnt_idchild_cmpnt_idlogical_orderlogical_desccomponent_rel_type_id

port

cmpnt_idport_nameport_order

pin

pin_usagesignal_nameport_idxfer_fcn

cable

colorlabelport_a_idport_b_idpint_detaildest_desc

conductor

cable_idpin_a_idpin_b_id

Recommended