Channel Access Concepts

Slides:



Advertisements
Similar presentations
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Advertisements

EPICS Base R and beyond Andrew Johnson Computer Scientist, AES Controls Group.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
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.
Overview SAP Basis Functions. SAP Technical Overview Learning Objectives What the Basis system is How does SAP handle a transaction request Differentiating.
VLAN Trunking Protocol (VTP)
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
April 2000Dr Milan Simic1 Network Operating Systems Windows NT.
1 Channel Access Concepts – EPICS Training – K.Furukawa – Mar EPICS Channel Access Concepts Kazuro Furukawa, KEK, ( ) (Bob Dalesio, LANL,
1 2009: Channel Access EPICS Channel Access Andy Foster Observatory Sciences Limited.
Final Review of ITER PBS 45 CODAC – PART 1 – 14 th, 15 th and 16 th of January CadarachePage 1 FINAL DESIGN REVIEW OF ITER PBS 45 CODAC – PART 1.
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.
INFORMATION SYSTEM-SOFTWARE Topic: OPERATING SYSTEM CONCEPTS.
Hwajung Lee.  Interprocess Communication (IPC) is at the heart of distributed computing.  Processes and Threads  Process is the execution of a program.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
1 Writing Channel Access Clients–EPICS Training – K.Furukawa – Mar EPICS Writing Channel Access Clients Kazuro Furukawa, KEK, ( ) (Marty.
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.
Writing EPICS Channel Access Clients in Python Geoff Savage March 2003.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays Channel access priorities Portable server replacement of rsrv.
Connecting LabVIEW to EPICS network
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
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.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
PART1 Data collection methodology and NM paradigms 1.
General Purpose Grid Computing LCA. Specification The system will provide a multi-threaded, shared memory environment that is distributed across a loosely.
Introduction to Operating Systems Concepts
Architecture Review 10/11/2004
Integrating ArcSight with Enterprise Ticketing Systems
Chapter 19: Network Management
Integrating ArcSight with Enterprise Ticketing Systems
Module 12: I/O Systems I/O hardware Application I/O Interface
z/Ware 2.0 Technical Overview
The Client/Server Database Environment
#01 Client/Server Computing
Chapter 3: Windows7 Part 4.
Chapter 16: Distributed System Structures
Chapter 3: Windows7 Part 1.
Ch > 28.4.
Radiation- and Magnet field- Tolerant Power Supply System
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
Operating System Concepts
CSE 451: Operating Systems Winter Module 22 Distributed File Systems
Overview of Computer Architecture and Organization
Software models - Software Architecture Design Patterns
Distributed File Systems
BIC 10503: COMPUTER ARCHITECTURE
Distributed File Systems
Threads Chapter 4.
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
CSE 451: Operating Systems Spring Module 21 Distributed File Systems
Design Components are Code Components
Distributed File Systems
Overview of Computer Architecture and Organization
CSE 451: Operating Systems Winter Module 22 Distributed File Systems
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
AIMS Equipment & Automation monitoring solution
Writing a Channel Access Client in EPICS
Channel Access Concepts
Outline Operating System Organization Operating System Examples
Distributed File Systems
Distributed File Systems
Module 12: I/O Systems I/O hardwared Application I/O Interface
#01 Client/Server Computing
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL, USPAS1999)

Why Channel Access? We don’t have Network transparent computing in general (yet) Plenty of administration tasks for sharing data No standard way for remote processing RPC, COM, CORBA, RMI, .NET, etc. In EPICS, Channel Access provides Efficient Software Bus on Network Performance, Rapid development, Maintenance, Administration Tuned for each operating system (But no internal documentation yet)

Channel Access : The EPICS Software Bus Operator Interface Archive Tool Alarm Tool Application Application

Control Processing Functionalities On-demand Synchronous On-demand Asynchronous Periodical On-Change (with value deadband) (with rate limit) On-Event (Trigger) Cache List of Control Points Static Information and History using the Same API Existent Control Systems Support a Part of Those

What is Channel Access (CA) Standardized communication path to a field(s) within a record (process variable) in any IOC database(s). This field is a communication path to an IO channel or software. Integrates software modules into the control system. A callable interface (library of subroutines).

Why Use Channel Access Callable interface designed for easy use by casual applications Callable interface also designed for use by system software components such as the operator interface, sequencer, and the archiver Operating system transparency Network transparency (access to remote and local channels is identical) CPU architecture independence (silent data conversion) Isolation from system software changes. Efficiency (host IO channels) Efficiency (network remote IO channels)

Channel Access network architecture Operator Operator Data logger, Interface 1 ... Interface n Data Analysis CAC CAC CAC CAC CAC IEEE 802.3 CAS CAC CAS CAC CAS CAC ... IO Controller 1 IO Controller 2 IO Controller n CAS Channel Access Server CAC Channel Access Client

Client Server Model CA is a network service. Clients use the callable interface (link to the CA library). Server replicated in each IOC (part of iocCore). Clients make requests to the servers across the network. CA defines a network protocol. Local operations are initiated and performed by the host processor. Remote operations are initiated but not performed on the host processor.

Asynchronous Nature of CA CA does not wait to gain access to the network prior to returning from each library call. Remote operation requests are buffered and sent when the buffer fills or when you ask. Data fetched from a remote machine is generally not immediately available. With few exceptions values written into your variables by CA should not be referenced until you have synchronized. All operations guaranteed to be executed in the order requested.

Why is CA Asynchronous? Combined operations are more efficient when sharing a common resource such as a bus. Combined operations can be more efficient when passing through system software layers. Sometimes it is useful to perform labor on a local processor while several operations are completing on remote processors. The plant is often asynchronous.

Simple Unconverted I/O Channel Reads and Writes CA Performance Reads Writes Simple Unconverted I/O Channel Reads and Writes

Methods of Synchronizing No data fetches are left outstanding after completing a call to ca_pend_io(). Asynchronous replacement for ca_get(): ca_get() ca_pend_io(), Use a monitor. Use fetch with callback. Use a synch protocol with a remote program.

Event Propagation In any process control system, an application program must be prepared to respond to any one of a number of asynchronous events. Events include hardware or software state changes (limit switches, flow indicators, out of range analog channels, software exceptions, etc.)

CA Software Interface to Events An event is a significant change in either the value of a field or the condition of the record as a whole. Events are placed in a queue and handled in the order that they occurred. A channel can be monitored by specifying a handler to be run each time an event occurs. CA client applications using events tend to be tree structured. Updating the client’s local value for a channel this way can save on network traffic since a message soliciting the update need not be sent.

Event Rate Management (Analog Channels) The rate at which updates are sent over the network should be minimized by the project engineer within reasonable constraints. This rate is managed by adjusting the channel’s deadband and scan rate. (R3.15 may provide facility to limit monitor rate (?))

CA Exceptions Since the CA client library does not wait to gain access to the network prior to returning from each call an operation can fail in the server after the library call that initiated it returns. Status of these unsuccessful operations are returned from the server to the client’s exception handler. The default exception handler prints a message for each unsuccessful operation and aborts the client if the condition is severe. Operations which fail in the server are nearly always caused by programming errors.

Channel Naming Convention CA requires that channels have a name. The IOC database requires names of the form: <record name>[.<field name>] rfhv01.LOPR” “rfhv01” Record names are assigned by project engineer following project naming convention. Record field names and purposes are record type specific A list of the field names available for each record can be obtained from the database documentation (EPICS Record Reference Manual.) If the field name is omitted, the field .VAL is assumed. This field contains a control or read back value.

Native Data Types All channels have a “native” data storage type in the IOC. All native data storage types are “atomic”. Atomic data types include: integer, floating point, string, enumerated etc. When transferring a new value to/from a channel the client program specifies the data format to supply/receive it in. This is often referred to as the external data type. The external data type can be different from the native type if conversion is possible.

Compound Data Types Compound data types contain a channel value combined with additional status or configuration information. Value + Alarm Status + Timestamp + Drive Limits Compound types involve the database record as a whole. Compound types can currently only be used with gets and monitors. Data types are described in db_access.h. (DBR_XXXX)

Connection Management Network Connections are inherently transient. A channel’s connection state is either not found, connected, or disconnected. CA allows you to specify a handler to be run when a channel’s connection state changes. Connection requires a server for the channel and a valid network path to the server. CA automatically restores connection upon notification from the server.

Software Releases IOC core and CA client library EPICS major release number must match, or client will not find sever. This is due to potential CA protocol redesign between major releases. CA protocol is upwardly compatible within a major release. When new features are added to the client, older versions of the server won’t support them.

WORKSTATION user program Channel Access Channel Access Repeater client Channel Access Channel Access C program server client database access library SNL sequence DATABASE database library record support device support device drivers IOC instrumentation and control hardware