EPICS Asia 2004 Tokai, Japan December 8-10 and later

Slides:



Advertisements
Similar presentations
Control System Studio (CSS)
Advertisements

SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
CLS Process Variable Database By: Diony Medrano. CLS PV Database - Topics Background Design Constraints Design and Implementation Benefits and Future.
EPICS Base R and beyond Andrew Johnson Computer Scientist, AES Controls Group.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Channel Access Protocol Andrew Johnson Computer Scientist, AES Controls Group.
Network Management Overview IACT 918 July 2004 Gene Awyzio SITACS University of Wollongong.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
EPICS Meeting 2005ORNL Rdb systems at SNS Jeff Patton and cast April 27-29, 2005 EPICS Meeting 2005.
29. April 2005EPICS Office 1 Matthias Clausen. 29. April 2005EPICS Office 2 How did it start? By proposal from Ned Arnold at the last EPICS meeting (Looking.
V4 – Executive Summary 1.Provide online add/delete of I/O to support continuous operation. 2.Provide redundant control of remote I/O to support improved.
Maintaining and Updating Windows Server 2008
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
R. Lange, M. Giacchini: Monitoring a Control System Using Nagios Monitoring a Control System Using Nagios Ralph Lange, BESSY – Mauro Giacchini, LNL.
EPICS Meeting, APS, June 14 th 2006 MCS-8 The 8 axes motion control system Rok Šabjan
1. 2 How do I verify that my plant network is OK? Manually: Watch link lights and traffic indicators… Electronically: Purchase a SNMP management software.
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
Ihr Logo Data Explorer - A data profiling tool. Your Logo Agenda  Introduction  Existing System  Limitations of Existing System  Proposed Solution.
SNS Integrated Control System EPICS IOCs – Relational DB Connectivity Bridge A. Liyu, A. Zhukov.
ICS – Software Engineering Group 1 SNS Control Systems A new Tool to study Network Stack Exhaustion in VxWorks Epics Collaboration Meeting Dec. 8, 2004.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Introduction to HP Availability Manager.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
IRMIS 2 Overview Andrew Johnson Computer Scientist, AES Controls.
Introduction to EPICS (Ned Arnold, John Maclean).
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
EPICS Direction to Support Large Projects and Incorporate New Technology Leo R. Dalesio 09/21/99.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Jan Hatje, DESY CSS ITER March 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch.
The microIOC Family Gasper Pajor EPICS Collaboration Meeting Argonne National Laboratory June 2006.
General Time Update David Thompson Epics Collaboration Meeting June 14, 2006.
XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser Matthias Clausen, DESY XFEL Refrigerator Controls – April CSS Core Applications.
IRMIS: a practical Ansatz for an Accelerator Operations DB? S. Herb,
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
3.14 Work List IOC Core Channel Access. Changes to IOC Core Online add/delete of record instances Tool to support online add/delete OS independent layer.
Database Reports and the IOC Crawler Presented by Katia Danilova 09/01/2005.
ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.
NA-MIC National Alliance for Medical Image Computing UCSD: Engineering Core 2 Portal and Grid Infrastructure.
Oct 8-9, 2005ACS Collaboration Meeting – Archamps, France The MicroIOC From Custom To Production First customer: PSI 25 pieces.
GPIB Device Control with COSYLAB microIOC COSYLAB microIOC Development for microIOC with SDK GPIB device control microIOCs in SLAC Things learned Jingchen.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays Channel access priorities Portable server replacement of rsrv.
Advanced Photon Source Channel Access, CaSnooper, and CASW Kenneth Evans, Jr. Presented November 7, 2003 Argonne National Laboratory.
Matthias Clausen, Jan Hatje, DESY CSS Overview – Alarm System and Management CSS Overview - GSI, 11 Februrary CSS Overview Alarm System and CSS.
B. Dalesio, N. Arnold, M. Kraimer, E. Norum, A. Johnson EPICS Collaboration Meeting December 8-10, 2004 Roadmap for IOC.
EPICS and LabVIEW Tony Vento, National Instruments
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Final Presentation Smart-Home Smart-Switch using Arduino
Address Resolution Protocol Yasir Jan 20 th March 2008 Future Internet.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
An Introduction to Epics/Tango Steve Hunt Alceli EPICS Meeting 2008 INFN Legnaro 15 Oct 17:15.
Maintaining and Updating Windows Server 2008 Lesson 8.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
JavaIOC Overview and Update
Relational Database Collaboration
IRMIS Technical Details
Getting Started with EPICS A lecture Series
What Do I Want from an RDB?
EPICS IOCs – Relational DB
EPICS: Experimental Physics and Industrial Control System
Presentation transcript:

EPICS Asia 2004 Tokai, Japan December and later

Where is Tokai?

Site Map

Projects JPARC 3.5 Billion; 7 years; ready in 2008 Shanghai Light Source 150 Million; 4 years; ready in 2009 (does not include salaries) LCLS SNS – complete April 2006 Pohang – XFEL 80 Million; 2009

Shanghai Map

SNS Now

SNS Control Room

General Impressions RTEMS is an accepted system LINUX is widely used EPICS knowledge “ramp up” time is an issue RDB support around EPICS is a hot topic “Micro-EPICS” is being looked at by many 3.14 OSI is widely appreciated

Things which got my notice SNS Archiver SNS Network analysis KGB black-box serial (and GPIB) support Argonne Virtual Linac “Epics on a CD” Argonne Training Series rdbCORE collaboration New Java CA Enhanced Access Control Asyn + stream device Timing system collaboration (TIMO is everywhere) VDCT collaboration EDM progress 3.15 and 4.0 Plans

Archiver Issues Attacked on Four Fronts lArchiver Engine »New LANL archive engine is now running (Kasemir) lArchive Retrieval Tools »New Java-based client-server archive viewer has been deployed. (Chevtsov) »Collaboration with JLab, LCLS and Cosylab lArchive Monitoring Tools have been deployed »Averaging ~3GB/day lWork has started on Archiver data management tools.

Network Tools are Integrated with EPICS Network traffic integrated with EPICS via devSnmp device support* -- data is now displayed via EDM -- data is now stored in the EPICS archiver *SNMP Driver from LANL

VxWorks Network Stack Flow

Protocols we deal with in EPICS UDP port 5065 –CA beacons (“I am here” Heartbeat) –Used to re-establish CA TCP virtual circuits –CA beacons do not expect any replies –The CA Beacon Daemon is listening on UDP port A.K.A caRepeater UDP port 5064 –CA search message –A response is expected within some timeout interval TCP port 5064 –CA server establishes a virtual circuit on port 5064 NFS –UDP port 111 Loading up IOC application Running autosave/restore Re-directing IOC files to boot server NTP –UDP port 123 Keep IOCs time in synch At SNS we should see this about every 10 seconds in our current configuration. RSH –UDP port 514 Remote login support Cat in vxWorks image

Network Traffic Analysis Ethereal Packet Analysis Timeline Bring NIC online T + 3 sec PowerOn IOC T - 0 sec EPICS neighbors come T sec

Network Traffic Analysis (Cont’d) Ethereal Packet Analysis Timeline Warning!! Why is a retransmit necessary, hmmm? NFS is heavy

Network Traffic Analysis (Annotated) Load vxWorks NIC restart Startup.cmd Load EPICS Heavy NFS Still loading EPICS More NFS iocInit is ready EPICS is running AutoSave/Restore Heavy NFS Normal Work Reboot IOC

Results/Conclusions The Network Analysis allows tuning of the network stack from apriori information as well as empirical data collected from the real environment. We have discovered some devices on our network that have improper configurations and hence cause unnecessary traffic. We have discovered that NFS is really a heavy hitter and that autosave/restore request files should be stored in one location. We have discovered that IGMP snooping must be supported on the CISCO edge switches to contain Allen Bradley Control Logix PLC multicast traffic. Multicast traffic should be contained in general. –We moved from the CISCO 3500 series to the CISCO 2950 series CISCO 3500 series only supported CGMP snooping We learned that sometimes IOC application errors are the main cause of Network Stack Exhaustion and/or failure. We have added an “open-source” network sniffer (Ethereal) to our EPICS Network trouble-shooting ToolKit. We have built in the Network diagnostics show routines from WRS in to our IOC’s common support library.

Some more explanations: This microIOC should be a black box for installation: –with a built-in EPICS database –already with preconfigured records –everything must be very user friendly, with wizards, in a plug&play manner.. And made of standard components: –an Ethernet 10/100 MBit connector –an onboard linux/RTEMS processor –a Web server for configuration and viewing –Off-the-shelf parts to replace No moving parts (fan, disk) to break in first place

Enter microIOC small embedded computer interfacing different devices Motor & Control Ethernet Analog & Digital IO Ultra Low Power PoE – Power Over Ethernet Various IO Fanless & Diskless Small

Implementation Details dual Ethernet port allows to separate microIOCs and devices from the rest of the control system available with Linux and RTEMS operating systems and on request with vxWorks –Giving resonable performance and realtime database can be persisted in flash, avoiding problems due to network failures hardware components of the microIOC are of high quality and have long life times –PS has 500,000 h MTBF (55 years) by design, mechanical parts such as hard disks and fans are avoided

The Main User Features Are: completely stand-alone, no VME/PCI or boot PC necessary plug&play: configure IP (DHCP), connect cables and it works simple configuration through Web server, built-in EPICS db –VDCT preconfigured db file for standard devices: PLCs, vacuum, timing, motor control and monochromators –a simple wizard to configure record names and constants installed EDM, Java and Web-based panels for display and setting monitor system health upgrade management professional support and replacement contract as option lower price than a comparable VME system

Argonne Training Aids Vlinac – EPICS on a CD demo app Installs on Windows, Mac, Linux, Solaris Lecture Series – –Online –Grouped for different audiences –Powerpoint + streaming video Available at:

rdbCORE SNS used “proactive” RDB support (to produce EPICS stuff; what they’d like) Argonne used “reactive” RDB support (to analyze EPICS stuff; what really exists) Collaboration to identify commonalities –Not ORACLE dependent –Not site specific –Extendable

First Step – identify common needs XAL Applications JERI VDCT, vi, scripts,.. IOCBoot/ IOCcore.db files SNS RDB xml XAL MPS, … template substitution values APS RDB IRMIS/ PV crawler (read only) rdbCore IRMIS

Current Efforts Plans are still developing … but as of today … –First tables of rdbCore PV database (every field of every record) Installed device database –Control Flow/Housing/Power Cable database –First Tools ‘Controls Framework’ extension of XAL access rdbCore st.cmd crawler to populate PV database PV Viewer “vcct” – Visual Connection Configuration Tool –View relationships between installed devices –Cable Editor/Viewer

Primary Tables Process Variable Table (of rdbCore) –Custom record definitions (and even modified record definitions) are recognized –100% self-populated by “st.cmd crawler” that interprets dbLoadRecords & dbLoadDatabase lines Need a plan to accommodate other CA servers –“extensions” to rdbCore can be added to reference client use of all PVs Crawl through MEDM, ALH, Archiver config files –“Generic SQL” which can generate Oracle or MySQL tables –Contains an entry for each Process Variable (record.field) name loaded into an IOC

Primary Tables Installed Devices Table (of rdbCore) –Each device is fully described by the following Contains an entry for every replaceable component installed in the control system. –hierarchies: Control parent – What is it connected to? Housing parent – What is it housed in? Power parent – What is it powered by? –40-70% self-populated by EPICS business rules (INP/OUT fields, configDevice(), dbior, etc) Cable Table (of rdbCore) –Contains an entry for every cable installed in the control system –Uses ports on “installed devices” as source and destination

Primary Tables PV Table, Installed Device Table, Cable Table provide numerous relationships for advanced queries –What PVs will be affected by a particular device failure? –What PVs will be affected if this cable is disconnected? –What set of devices could cause a particular set of PVs to all be INVALID? And with “extended” tables … –What applications (MEDM displays, scripts, XAL apps, etc) will be affected if this device is powered off? –What applications (MEDM displays, scripts, XAL apps, etc) will be affected if this breaker trips?

Primary Tools - VCCT – Control/Housing/Power

JCA KGB (Cosylab) Not based on JNI Version 4.11 of CA Ken Evans gave high praise Simple to change from old to new JCA Leader/Follower design pattern JCA “lite” is possible (one thread only)

Enhanced Access Control Desire to “reserve” group of PVs for exclusive write Many ideas put forward Leading candidate seems to be an enhanced gateway process which uses extra connections to dynamically manage access control

ASYN and Stream Device Marty Kraimer’s asyn is THE way to do serial I/O drivers Dirk Zimoch’s Stream Device is THE way to implement new devices They have formed a mutual admiration society

Timing Collaboration Timo Korhonen is everywhere. Argonne/SLS/Diamond EVG/EVR design is now ubiquitous –Shanghai –Pohang –JPARC

VDCT status Latest SNS-funded work is done VDCT is now THE tool of choice

EDM Status Converters from MEDM and EDD/DM now work well and are as complete as possible One big drawback is non-resizability SNS is all EDM

Epics Futures just announced (“more stable than ” – Marty) 3.15 features and schedule announced 4.0 features and schedule announced Emphasis on scheduled delivery

How Did We Get Here There was a series of EPICS 2010 meetings that were organized to develop a grand plan and secure funding A large list of capabilities and technologies were collected, however we were not able to generate any serious funding. The control group at Argonne and I met to discuss these issues and determine how we could start moving. A long list of interesting items was produced. It was reduced it to compelling IOC Core issues. That list and plan is now to be presented for comment/support/participation.

Feature/Plan for 3.15 compile the DBD into the database –Andrew – Jan-March 05 –Include the dbd file into the db file Device support for online add –Andrew – March-Sept 05 –Add calls before and after addresses change –Support addition of new hardware during operation –Add calls to support removal of hardware Online Add –Andrew – March-Sept 05 –Add new record instances during operation –Connects to existing hardware –Connects to existing records (or they become ca links) Remove Annoying Things (REALLY ANNOYING THAT IS) Jan release

Plan for 4.00 CA V4 Functional Specification –Func. Spec. Team - Jan-March 05 CA V4 Design –Small Design Team – March-June 05 CA V4 Implementation –Small Implementation Team – July – July 06 Extensible Links –Andrew – July – January 06 Database V4 Functional –Func. Spec. Team – Jan- March 05 Database V4 Design –Design Team – March – June 05 Database Access V4 Implementation –Small Implementation Team – July – July 06

Features in 4.00 Everything we have now and….. Arbitrary Strings Array support to include: subarrays, frequency, offset, dimensions Aggregate Data - a set of channels treated as one variable; get/put in one IOC Client priorities Monitor options to include: on another value, rate, rate if changed, %change, dev Transaction support – multiple actions with acknowledge in a single transaction Group metadata into types and request independently: time, graphics, alarm, ctrl, statistical Redundant Clients to a server Redundant Name Server, Aggregate data source, metadata source Redundant IOCs to a PLC Opaque or complex data support Provide simple data records that can build complex records History data requests??

Everything We Have Now Performance must remain (or improve) Name resolution Get/Monitor/Put/Put w/ Callback/Put completion Events for notification: value, archive, alarm Conversion to native type Automatic reconnect All Current Metadata Supported

Features that are not included in the plan Regular meetings with key collaborators Fund living expenses for short term collaborators Linux real-time performance enhancements/evaluation Improve control package for the database Record management Operating System support Device/driver verification Platform support Solution support for devices Error handling / logging Secure Channel Access Ease of use – ala labview Solicit annoyances from the community Tools extensions – Framework for tightly coupled applications Relationship between EPICS and Access Grid Include standard functions in most used utilities (edm/medm, alh, stripTool, archiver, save/restore, warm reboot, pvgateway, Nameserver, consistent configuration across these tools, high level api (XAL?)

Features that are not included in the plan VDCT IOC applications IDE (esp. 3.14) rdbCore Collaboration support Enhance web site Enhance training Enhance documentation Improve release testing Centralize device support Coordinate release distribution Consistent format for contributed modules Maintain rec Ref Manual Organize regular training Keep current on CPUs/BSPs Develop EPICS primer Coordinate collaboration meetings Develop automatic test suites Quality contributed modules Support and enhance popular extensions Provide exhaustive cross-platform testing ad development hardware Searchable database and supported devices and record types

Conclusions This is an attempt to restart the development effort in IOC core APS has dedicated some limited resource to this and this effort. More support is needed. Many items are not included in this list –Many have contributed as part of their project development –Our ability to provide new direction, improved tools are dependent on projects to contribute on a continuing basis

EPICS – Today’s Control System of Choice Ned Arnold 12/10/2004 … but what about tomorrow?

LANL develops Ground Test Accelerator Control System (GTACS) LBL DESY SLS CLS RIA CEBAF BESSY SLAC IPNS IPNS DAQ ANL APS & LANL begin collaboration on EPICS FNAL D0 KECK Gemini SNS Australian Synchrotron DIAMOND The Collaboration Grows … > 150 Licensees 2003 KEK May 2004 Meeting 100+ Attendees 34 Institutions 75+ Presentations Still the “Control System of Choice”

Reflection on the Collaboration Pros –Synergy – yields many good ideas –Common requirements have a single solution –An extremely beneficial and effective collaboration –Large installed base improves robustness Cons –No one is in charge – tasks can not be delegated or assigned –Contributors do what they want to do [i.e. the un-fun yet important work is often left undone] –When money gets tight, there is less effort donated to the community good

The Cons are Starting to be Felt No one’s in charge … –In light of advancing technology, some of EPICS’ core facilities could be substantially enhanced More good ideas than resources, no common direction Contributors do what they want to do … –Many of the things required to enhance EPICS user support are not voluntarily addressed by the collaboration Consistent documentation Consistent method in packaging/testing contributions Money getting tight … –Construction Funds: Running out … not much on the horizon –Operations Funds: Already being used …being pinched

Looking to the Future What has been attempted? –EPICS 2010 Meetings (three in the last two years) Good discussions The seed has been sown … An attempt was made to move forward … It is now time to fertilize, water, and make something grow

Looking to the Future What is Needed? –“A plan” –“A plan” that encourages the Pros and mitigates the Cons –“A plan” that receives wide acceptance and support … which then becomes “The Plan” –Implementation of “The Plan” –Demonstration that we can deliver on “The Plan”, which will build additional momentum for further plans

Vision … (i.e. A Plan) Establish and promote a direction for the future Aggressively solicit resources from collaborating institutions Make something happen

Establish a direction … Divide the numerous topics into four categories –EPICS Core iocCore Channel Access SNL –Core Tools/Extensions Display Manager, ALH, Archiver, StripTool, Gateway VDCT Other? (rdbCore?) –Collaboration Support Issues –Ideas and R&D for EPICS 5.0 and beyond