k.vijayan : rdb for diamond control systems rdb for diamond v.smithers & k.vijayan june 2003

18
K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

Upload: harvey-arnold

Post on 29-Dec-2015

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

RDB for Diamond

V.Smithers & K.Vijayan

June 2003

Page 2: 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

Page 3: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 4: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 5: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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}

Page 6: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

DB File

Page 7: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 8: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

DB Template File

Page 9: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

Connection between Cards & Device

• Carrier Card

• IP Card

• Transition Cards

• Connection Details

• Device

Page 10: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 11: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 12: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

Connection between Cards & Device

Page 13: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 14: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

ER Diagram : EPICS Database

Page 15: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 16: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

Web Browser

Page 17: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

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

Page 18: K.Vijayan : RDB for Diamond Control Systems RDB for Diamond V.Smithers & K.Vijayan June 2003

K.Vijayan : RDB for Diamond Control Systems

THE END