110 likes | 253 Views
Status. Converting PROSCAN CS to EPICS. Damir Anicic, Paul Scherrer Institute, Villigen, Switzerland For EPICS collaboration meeting 2008, Shanghai, 10-14 March 2008. What is PROSCAN?. Medical facility for tumor treatment First beam 01.12.2006 Patient treatment since 01.06.2007
E N D
Status Converting PROSCAN CS to EPICS Damir Anicic, Paul Scherrer Institute, Villigen, Switzerland For EPICS collaboration meeting 2008, Shanghai, 10-14 March 2008
What is PROSCAN? • Medical facility for tumor treatment • First beam 01.12.2006 • Patient treatment since 01.06.2007 • GANTRY1 in operation • New OPTIS soon • GANTRY2 patients in 2009 • Experiment (PIF) area in use • In-house developed ACS CS • Conversion to EPICS in progress • Gantry1 operation and OPTIS tests during working hours • PIF on most nights/weekends • => No time to test EPICS available COMET: Compact Medical Therapy Cyclotron Diameter = 3.2 m, Weight = 90 t, Power-consumption = 300 kW, Superconducting Energy = 250 MeV Protons
Facts • Project start 01.04.2007 • Delayed to 01.06.2007 because of GANTRY1 • One person for IOCs (drivers,templates,…), 100% • One person for DataBase, up to 50% • One person for Workstation applications, up to 30%
Facts (2) • 104 Magnets • 54 Digital I/O • 1 Degrader • 22 „Digitizer“ • 91 Harps (profile monitors) • 88 Current measurements++ • 110 RPS (Interlock) • 7 Motors • 22 High Voltage Sources • 48 Vacuum devices - PLC • 284 COMET devices - PLC • 116 Virtual • 350 VME boards or IP modules on 21 IOCs
How to migrate to EPICS • Keep naming conventions • Base on same principle (IOCs do simple I/O) • Make “workstation-apps” talk EPICS-CA • Adjust MEDM screens • Use existing EPICS drivers, implement missing • Create required templates • Implement driver-configs, substitution files • All data (templates/substitutions/driver-configs) in DB
How to do that? • KISS-principle : Keep It Simple and Stupid • Just do it, simple and as fast as possible • Find time to test it (Saturday, 01.03.2008 first try) • Correct mistakes, implement what was forgotten and go to previous step unless all done and OK
What has been done • 11 drivers • 3 record types • 4 genSubs • 50 MEDM adl files adjusted • 10 Applications converted to CA
What has been done (2) • 52 templates • 365 driver configs • 1009 template substitutions • 35628 records created
What happened on March 1st • Boot 20 EPICS IOCs (all but one) • One did not start, unplug one card, starts • Many wrong driver configs detected and corrected • No single digital I/O worked (driver config mix-up diagnosed) • We forgot to implement Waveform template substitutions (91), few added to test it • First try was declared a success
What’s next • Second try end of March (probably) • Detect and correct any errors • We’ll try to get the beam up • On later trials • Convert other applications (Beam Allocator is crucial) • Do dummy-irradiations together with medical group • Switch to EPICS in Jun 2008 (?)
That’s all Folks! We are all GENIUS!