Presentation is loading. Please wait.

Presentation is loading. Please wait.

R. Keitel, TRIUMF, Vancouver Epics Collaboration Meeting, Argonne 16-June-2006 Converting from edd/dm to edm.

Similar presentations


Presentation on theme: "R. Keitel, TRIUMF, Vancouver Epics Collaboration Meeting, Argonne 16-June-2006 Converting from edd/dm to edm."— Presentation transcript:

1 R. Keitel, TRIUMF, Vancouver Epics Collaboration Meeting, Argonne 16-June-2006 Converting from edd/dm to edm

2 ISAC Radioactive Beam Facility

3 ISAC Control System 3000 Devices ~13000 I/O channels Ø9000 digital Ø3500 analog Ø70 motors Ø~ 90000 EPICS records 34 IOCs (Motorola MVME162, PC104, Pentium) vxWorks(26), Linux(3), WindowsXP(5) 12 PLC systems (Modicon (11), Siemens(1), supervised by EPICS) 9 RF control systems (Windows98/XP, supervised by EPICS)

4 edd/dm Situation Started with EPICS 10 years ago Picked dm because of speed and small footprint Old, graphs, …., but “did the job” Wanted more features, introduced bug No point wasting time  move forward to edm

5 What did we need ? We have 2400 display files 1700 generated by program 700 drawn and maintained interactively ØNeed converter.adl .edl regenerated every time an interlock specification changes ØNeed tool for programming edl files

6 Potential show-stoppers: ØColour rules edd/dm allows macros for partial PV names Øedm,’s CALC\.... PVs accepted only complete PV names instead of: A=ILE:IG5 would have to type: CALC\(ILE:IG5:STATTMO, ILE:IG5:STATON, ILE:IG5:STATOFF, ILE:IG5:STATINT, ILE:IG5:STATDRV) First look at edm

7 Potential show-stopper: ØColour rules Solution: ØModify edm (John Sinclair)

8 Programming: EdlBuild Perl module library ØEdl.pm - main code module ØEdlRectangle.pm - widget module (1 per widget) -- no widget-specific code -- Ø…… syntax similar to Perl/Tk allows configuration of any widget property easy to configure site-specific “look and feel” extensible http://isacwserv.triumf.ca/epics/edlbuild

9 EdlBuild example

10 .adl .edl Conversion started with existing converter badlfish (D. Kotturi, SLAC) ôfought SLAC specifics (colours, colour rules..) ôsome things were missing ôsome things wouldn’t work for us rewrote Økept adl parsing – saved tons of work Øadded TRIUMF colour module Øused EdlBuild for edl generation >>> tadl2edl.pl <<< Included in EdlBuild tar

11 Conversion Experience (I) Plan Øprepare operations group – tutorial sessions Øuse window of opportunity – Jan/Feb/Mar shutdown Øafter SC linac controls commissioning Actual Øcontrols installation/commissoning for SC linac moved into shutdown Øsome chaos Øoperations group was terrific

12 Conversion Experience (II) several iterations: convert  improve tadl2edl some things didn’t convert well (i.e. we didn’t make the converter smart enough) Øbar-graphs ØXY-plots fixed interactively  no more conversions didn’t understand edm well enough Øbad defaults in converter Ødifferent default behaviour between dm and edm used simple Perl filters to fix the whole screen set

13 Other Issues dm loads “static” record info for each dl file Øused HOPR, LOPR for re-scaling XY-plots, bars, meters edm PV factory loads only once ØXY-plot ok Øused kludges with embedded windows ØJS helped by modifying the meter widget dm valuator (= slider) widgets used extensively Øallowed fine sliding Øextensive TRIUMF mods edm motif slider barely fits Ømade major mods to motif slider to recreate TRIUMF functionality Øwill be repackaged as “Triumf Slider”

14 More issues XY-graph Øneeded dump to ASCII file  JS Øadded “clear plot” command Bar Ødisplay PV1 Øcolour based on alarm state of PV2 Fix in database: ØPV1.SDIS “PV2.SEVR MS” ØPV1.DISV 4 Related Display Øadded CTRL-MB3  start web-browser with cgi script - small footprint dillo - integrate context-sensitive web-help into edm

15 Summary Conversion to edm is done ISAC controls runs production with edm since late March dm removed from last console a few weeks ago edm is stable operations is happy collaboration with John Sinclair was a pleasure – thanks John!

16


Download ppt "R. Keitel, TRIUMF, Vancouver Epics Collaboration Meeting, Argonne 16-June-2006 Converting from edd/dm to edm."

Similar presentations


Ads by Google