Christian GerkeEPICS rdb Workshop 2005 March EpicsOra building Epics-db-files from an Oracle Database Programmed by Anatoli Khvorostianov
Christian GerkeEPICS rdb Workshop 2005 March Basic Idea Use database instead of flat files make it master of all info –Import dbd-files (define EPICS-version) –Export db-files to be loaded to IOCs –Modify here / re-import modified db-files Define “objects” –Structure: group of records –Structure: can be nested (complex objects) –Parameters –Inheritance
Christian GerkeEPICS rdb Workshop 2005 March Further ideas Link different fields of interest –Epics –Hardware devices (also asset management) –“registry” for graphics, alarming –etc. Use “io_name” as link –Name of sensor/actor in drawings –Name of sensor/actor in graphics –Associated to cable/wires in cabling –…
Christian GerkeEPICS rdb Workshop 2005 March EPICS and rdb at DESY
Christian GerkeEPICS rdb Workshop 2005 March dbd files → epicsOra → db file
Christian GerkeEPICS rdb Workshop 2005 March Prototypes: inheritance for record-fields
Christian GerkeEPICS rdb Workshop 2005 March Record Fields Can be modified at all levels Inherit values from higher level Can use parameters in prototypes e.g. $(desc), $(egu) Can use functions in prototypes e.g. $CONT(record.field), $LINK(record), $ROUND(0.9*$(eguhi)), $IONAME(io_name)
Christian GerkeEPICS rdb Workshop 2005 March Link to hardware Fields: INP, OUT,… Development Assign address string at instance level Calculate address string from variables Take address string from special table Calculate address string and DTYP from device- /asset-tables
Christian GerkeEPICS rdb Workshop 2005 March Structure Re-usable Nested Link records Inherit field values Name rules Copy structure –New object –New epics version
Christian GerkeEPICS rdb Workshop 2005 March Hierarchy in EpicsOra dbd Base prototypes add structure Fields inherit values Define parameters Composite prototypes Assign values Composite Instances Instances db file
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra (Oracle AS 10g, Forms 9)
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra: project
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra base prototype
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra record of base prototype
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra composite prototype
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra record in composite prototype
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra instance of composite prototype
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra instance of base prototype
Christian GerkeEPICS rdb Workshop 2005 March Inside EpicsOra instance of record