Upload
shelley
View
34
Download
0
Tags:
Embed Size (px)
DESCRIPTION
RDB for Diamond. V.Smithers & K.Vijayan June 2003. EPICS Schema contains. Domain, Subdomain, Technical Area, Component Crate Device IOC DBD DBGroups DB File DB file Templates Slot Carrier & IP Cards Connection Between the Cards & the Device. Device Naming. - PowerPoint PPT Presentation
Citation preview
K.Vijayan : RDB for Diamond Control Systems
RDB for Diamond
V.Smithers & K.Vijayan
June 2003
K.Vijayan : RDB for Diamond Control Systems
EPICS Schema contains
• Domain, Subdomain, Technical Area, Component
• Crate
• Device
• IOC
• DBD
• DBGroups
• DB File
• DB file Templates
• Slot
• Carrier & IP Cards
• Connection Between the Cards & the Device
K.Vijayan : RDB for Diamond Control Systems
Device Naming
• Domain, Subdomain,
Technical Area &
Component
• DD[SSS]-TT-CCCCC-NN
• Examples:
LI-VA-PIRG-01
BR01C-MA-VSTR-01
BS-MA-QUAD-01
SR01A-MA-QUAD-10
K.Vijayan : RDB for Diamond Control Systems
DBD File
• Record types, device support options, menus, and other configuration options are defined in “database definition files” (.dbd)
• A Database definition file (extension .dbd) containing the specifications for the various record and device types that are going to be referenced by the .db file
• During the IOC booting process, one or more dbd files are loaded
K.Vijayan : RDB for Diamond Control Systems
DB File
• Record instances are
describe in “database
files” (.db).
• During the IOC booting
process, one or more .db
files are loaded.
record(mbbiDirect,"TS-VA-VALVE-01:ILMON") Instance to therecord{field(DESC,"binary input card 0 bit2") Description of the recordfield (SCAN,".1 second) Record processed every 0.1 secondsfield (DTYP,"XVME-216") Device type of the hardware relatedfield(FLNK," psa_bi0:b1") Forward link to other recordfield(INP,"#COS@@") Address of the cardfiedl(ZNAM,"zero") Description of the two possiblefield(ONAM,"one") states}
K.Vijayan : RDB for Diamond Control Systems
DB File
K.Vijayan : RDB for Diamond Control Systems
DB Template File
• DB Template Files stored in RDB
• VDCT Comment & user comments stored in RDB
• Export & Import - Template files using Perl scripts
K.Vijayan : RDB for Diamond Control Systems
DB Template File
K.Vijayan : RDB for Diamond Control Systems
Connection between Cards & Device
• Carrier Card
• IP Card
• Transition Cards
• Connection Details
• Device
K.Vijayan : RDB for Diamond Control Systems
Connection between Cards & Device
IPCard 0
IPCard 3
IPCard 2
IPCard 1
0
7
0
7
MKS937a
MKS937a
BalzersTPG 300
BalzersTPG 300
Digitel MPC
DigitelMPC
Varian Dual
Varian Dual
0
7
0
7
TST-VA-PENG-01
TST-VA-PIRG-01
TST-VA-PIRG-02
TST-VA-PENG-02
TST-VA-PIRG-05
TST-VA-PIRG-06
TST-VA-PENG-05
TST-VA-PING-06
TST-VA-IONP-05
TST-VA-IONP-06
IP Card Transition Card Controllers Device
Signals
1
2
3
4
1
2
A1
A2
B1
B2
Channels
ty/20/0
ty/20/1
ty/20/2
Serial Device
K.Vijayan : RDB for Diamond Control Systems
Connection between Cards & Device
IPCard 0
IPCard 3
IPCard 2
IPCard 1
0
7
0
7
0
7
0
7Power Supply
IP Card Transition Card Device
Signals
Analog / Digital Signals
K.Vijayan : RDB for Diamond Control Systems
Connection between Cards & Device
K.Vijayan : RDB for Diamond Control Systems
EPICS in RDB
RDB
Perl ScriptsExpanded DB Files
Perl Scripts Expanded
DB Files & Template DB Files
Front end screens (web browser)
using Apache/PHP
Epics Record Template File
Substitution File
dbLoadTemplate
Perl ScriptsDBD File
Perl ScriptsTemplate DB Files
K.Vijayan : RDB for Diamond Control Systems
ER Diagram : EPICS Database
K.Vijayan : RDB for Diamond Control Systems
What we will use
• Oracle 9i on Red Hat Linux AS v2.1 - Dell Server
• Apache Web Server
• PHP
– for user interface screens / forms for data input & reading
using web browser
• Perl
– for the uploading of flat files to the RDB & vice versa
• ER Studio
– Logical and Physical design of the EPICS database
K.Vijayan : RDB for Diamond Control Systems
Web Browser
K.Vijayan : RDB for Diamond Control Systems
Summary
• A central repository for storing all the EPICS information.
• Unique Record names are maintained
• Hierarchy maintained in the record & field
• Open DB Template files, without alignment change in vdct
• ER Design and user interface screens/forms for data input
are available on the web browser
K.Vijayan : RDB for Diamond Control Systems
THE END