- EPICS
Infobox Software
name = EPICS
developer =Argonne National Laboratory
released = initial release|2004|3|21
latest_release_version =
latest_release_date =December 4 ,2007
latest_preview_version =
latest_preview_date =
operating_system =Cross-platform
genre =Open Source
license =
website = [http://www.aps.anl.gov/epics/ EPICS website] The Experimental Physics and Industrial Control System (EPICS) is a software environment used to develop and implementdistributed control system s to operate devices such asparticle accelerator s,telescope s and other largeexperiment s. EPICS also providesSCADA capabilities. The tool is designed to help develop systems which often feature large numbers of networked computers providing control and feedback.EPICS uses
client/server andpublish/subscribe techniques to communicate between the various computers. One set of computers (the servers orinput/output controllers), collect experiment and control data in real-time using the measurement instruments attached to it. This information is given to another set of computers (the clients) using the Channel Access (CA) network protocol. CA is a high bandwidth networking protocol, which is well suited tosoft real-time applications such as scientific experiments.Look and feel
EPICS interfaces to the real world with IOCs (Input Output Controllers) . These are either stock-standard PCs or VME standard
embedded system processors that manage a variety of "plug and play " modules (GPIB ,RS-232 ,IP Carrier etc.) which interface to control system instruments (oscilloscope s,network analyzer s) and devices (motors,thermocouple s, switches, etc.). The IOC holds and runs a database of 'records' which represent either devices or aspects of the devices to be controlled. IOC software used for hard-real-time normally useRTEMS orVxWorks , though work has been ongoing in porting to other systems. Soft real-time IOC software sometimes runs onLinux orMS-Windows based machines.Other computers on the network can interact with the IOC via the concept of channels. Take, for example a particle accelerator with shutters between sectors. There would typically be several channels corresponding to a shutter: an output channel to activate shutter motion, an input channel to see the status of the shutter (e.g. shut, open, moving, etc.), and probably some additional analog input channels representing temperatures and pressures on each side of the shutter. Channel names are typically in the form EQUIPMENT:SIGNALNAME (e.g. ACCELERATOR_RING:TEMP_PROBE_4, although they can be much less verbose to save time).
Most operations are driven directly from a standalone
GUI package such as EDM (editor/display manager) or MEDM (Motif/EDM). These allow creation of GUI screens with dials, gauges, text boxes, simple animations, etc.However it is not just GUI software which can interact with EPICS: any software which can speak the CA protocol can get and put values of records. For example on the EPICS website there are several extension packages which allow CA support in things like
MATLAB ,LabVIEW ,Perl , Python,Tcl , ActiveX, etc. Hence it is easy to do things like make scripts which can activate EPICS controlled equipment.Record types
There are different types of records available in EPICS. Here are some common types. Note that in addition to the other records not mentioned here, it is possible to create your own record type to interact with a device.
Each record has various fields in it, which are used for various tasks. AI and AO Analog Input and Output records can obviously store an analog value, and are typically used for things like set-points, temperatures, pressure, flow rates, etc. A limited amount of conversion to and from raw device data is available natively in the record (typically scaling and offsetting, but not advanced conversion like two's complement or logarithmic). BI and BO Binary Input and Output records are generally used for commands and statuses to and from equipment. Calc and Calcout These two records can access other records and perform a calculation based on their values. (E.g. calculate the efficiency of a motor by a function of the current and voltage input and output, and converting to a percentage for the operator to read). Stepper Motor Control of a stepper motor. Allows settings of things like accelerations and velocities, as well as position.
Record processing
Records in EPICS must have a designated scan time, otherwise they are automatically set as passive. A passive record will never process (unless its PROC field is written to). Mostly records are set to process on a periodic scan (such every 0.1 second).
Alternately records may be set to process only on events.
Facilities using EPICS
Partial list...
*Australia
**Australian Synchrotron
*Asia
**KSTAR -Korea Superconducting Tokamak Advanced Research (Republic of Korea )
**J-PARC -Joint Facility for High Intensity Proton Accelerators (Japan )
**BSRF -Beijing Synchrotron Radiation Laboratory (China )
*Europe
**Deutsches Elektronen Synchrotron (DESY) (Germany )
**Diamond Light Source -Rutherford Appleton Laboratory (England )
**Swiss Light Source -Paul Scherrer Institut (Switzerland )
*North America
**Advanced Light Source -Lawrence Berkeley National Laboratory (United States )
**Advanced Photon Source -Argonne National Laboratory (United States )
**Canadian Light Source Synchrotron -University of Saskatchewan (Canada )
**FNAL -Fermi National Accelerator Laboratory (United States )
**LIGO
**Los Alamos Neutron Science Center -Los Alamos National Laboratory (United States )
**National Superconducting Cyclotron Laboratory -Michigan State University (United States )
**National Synchrotron Light Source -Brookhaven National Laboratory (United States )
**Spallation Neutron Source -Oak Ridge National Laboratory (United States )
**Stanford Synchrotron Radiation Laboratory -Stanford University (United States )
**TJNAF -Thomas Jefferson National Accelerator Facility (United States )
**TRIUMF -University of British Columbia (Canada )External links
*General sites
** [http://www.aps.anl.gov/epics/ EPICS website]
** [http://www.epics.org EPICS website Canada ]
*Asian users
** [http://www-acc.kek.jp/WWW-ACC-exp/KEKB/control/KEKB-Control-home.html KEKB Japan]
*European users
** [http://www-csr.bessy.de/control/ Berlin Electron Synchrotron (BESSY II)]
** [http://www-kryo.desy.de/main/epics_main.html Deutsches Elektronen Synchrotron (DESY)]
** [http://www.sls.psi.ch/controls/ Swiss Light Source]
*North American users
** [http://www.lightsource.ca/machine/controlinstrumentations.php Canadian Light Source (CLS)]
** [http://www.jlab.org/accel/controls/controls.html Jefferson Labs]
** [http://www2.keck.hawaii.edu/realpublic/epics/ KECK Observatory]
** [http://csg.lbl.gov/CSG.html Lawrence Berkeley National Laboratory]
** [http://lansce.lanl.gov/ Los Alamos Neutron Science Center (LANSCE)]
** [http://www.nscl.msu.edu/ The National Superconducting Cyclotron Lab (NSCL)]
** [http://ics-web1.sns.ornl.gov/ Spallation Neutron Source (SNS)]
** [http://www.slac.stanford.edu/comp/unix/package/epics/index.html Stanford Linear Accelerator (SLAC)]
** [http://isacwserv.triumf.ca/ TRIUMF]
Wikimedia Foundation. 2010.