1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
EPICS Tutorial - IOC Database Raja Ramanna Centre For Advanced Technology Indore India January Presented by: Marty Kraimer Based on Presentations.
Remote Procedure Call (RPC)
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
Channel Access Protocol Andrew Johnson Computer Scientist, AES Controls Group.
PvData,pvAccess,javaIOC,pvService Status EPICS Meeting Aix-en-Provence, France Marty Kraimer, Guobao Shen, and Matej Sekoranja.
28.2 Functionality Application Software Provides Applications supply the high-level services that user access, and determine how users perceive the capabilities.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
Socket Programming.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
1 - Oracle Server Architecture Overview
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.
1 I/O Management in Representative Operating Systems.
SLAC asyn class, Day 1, August 26, 2010 Example asyn driver Modbus Mark Rivers, Marty Kraimer, Eric Norum University of Chicago Advanced Photon Source.
Server Design Discuss Design issues for Servers Review Server Creation in Linux.
EPICS IOC Diagnostics Tools Jeff Hill. Overview 4 EPICS built-in diagnostic tools 4 solutions to specific problems.
JavaIOC Marty Kraimer EPICS Collaboration Meeting ICALEPCS October
DEMIGUISE STORAGE An Anonymous File Storage System VIJAY KUMAR RAVI PRAGATHI SEGIREDDY COMP 512.
Imperial College Tracker Slow Control & Monitoring.
1 Experimental Physics and Industrial Control System (EPICS) Database Bob Dalesio, May 31,2010.
Experimental Physics and Industrial Control System (EPICS) Database Bob Dalesio, June 27,2001.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
JavaIOC EPICS Meeting SSRF March Presented by: Marty Kraimer.
1 1999/Ph 514: Record Support EPICS Record Support Marty Kraimer APS.
1 1999/Ph 514: IOC Development Environment EPICS IOC Development Environment Marty Kraimer APS.
1 Channel Access Concepts – EPICS Training – K.Furukawa – Mar EPICS Channel Access Concepts Kazuro Furukawa, KEK, ( ) (Bob Dalesio, LANL,
Device Drivers CPU I/O Interface Device Driver DEVICECONTROL OPERATIONSDATA TRANSFER OPERATIONS Disk Seek to Sector, Track, Cyl. Seek Home Position.
XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser Matthias Clausen, DESY XFEL Refrigerator Controls – April CSS Core Applications.
DAQ Control GSI, Aug 2005Hans G. Essel CBM - DAQ Control1 MBS monitor (FOPI) (J.Adamczewski, M.Stockmeier)
EPICS Access from Python Geoff Savage DØ Workshop Thursday June 22, 2000.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
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.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
IOC Application Development/Debugging Shanghai EPICS Seminar Tuesday, 8/29 J.Odagiri.
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
Reliability/ Secure IOC / Outlook M. Clausen / DESY 1 CA-Put Logging BurtSave Warm Reboot Matthias Clausen DESY/ MKS.
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.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
CS533 – Spring Jeanie M. Schwenk Experiences and Processes and Monitors with Mesa What is Mesa? “Mesa is a strongly typed, block structured programming.
New IP Drivers using drvIpac Module Driver:CANopen Carrier Driver:GPFC drvIpac ?? CANopen Tip810 CAN Tip810 mv162GPFCatc40vipc310vipc616 Module driver.
Matthias Clausen, Gongfa Liu, Bernd Schoeneburg (DESY), ICALEPCS, 2007 XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser Redundant EPICS.
Data Communications and Networks Chapter 9 – Distributed Systems ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
Argonne National Laboratory is managed by The University of Chicago for the U.S. Department of Energy ICALEPCS 2005: EPICS Workshop EPICS V4 : Runtime.
1 1999/Ph 514: Channel Access Configuration EPICS Channel Access Configuration Andrew Johnson APS.
B. Dalesio, N. Arnold, M. Kraimer, E. Norum, A. Johnson EPICS Collaboration Meeting December 8-10, 2004 Roadmap for IOC.
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.
Managed by UT-Battelle for the Department of Energy LabVIEW Channel Access Implementaion Alexander Zhukov SNS.
JavaIOC Overview and Update
CS533 Concepts of Operating Systems
BOOTP and DHCP Objectives
Chapter 3 Top Level View of Computer Function and Interconnection
Chapter 3: Windows7 Part 4.
SLAC USA Marty Kraimer and Matej Sekoranja
Tiers vs. Layers.
Writing a Channel Access Client in EPICS
Channel Access Concepts
Banafsheh Hajinasab Based on presentation by K. Strnisa, Cosylab
Channel Access Concepts
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:

1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS

2 1999/Ph 514: Flow of Control EPICS EPICS ARCHITECTURE PHYSICAL OPI IOC

3 1999/Ph 514: Flow of Control EPICS EPICS ARCHITECTURE LOGICAL Channel Access Server Database Access and Scanning Record Device Driver Support Physical I/O IOC Application OPI Channel Access Client LAN

4 1999/Ph 514: Flow of Control EPICS Summary u IOC Initialization u Load various components u Connect to hardware u Start Channel Access Servers u Record Processing u Hardware I/O monitor and control u Post events for CA clients u Channel Access u Connect to channels u Get/Put requests u Monitor Requests u Connection Management

5 1999/Ph 514: Flow of Control EPICS IOC Initialization  ld  iocCore  xxxApp - device,driver, record support  dbLoadDatabase Load database definition files for menus, recordtypes, devices, and drivers  dbLoadRecords, dbLoadTemplates Load record instance files u iocInit u Dynamically link to record, device, and driver support u Start general purpose tasks log server, task watchdog, callback, dbCa, etc u Initialize drivers u Initialize records (two passes) and devices u Start scan tasks u Start access security u Start Channel Access Servers

6 1999/Ph 514: Flow of Control EPICS Record Processing: Common Part u Database Scanning calls dbProcess u Periodic u I/O Interrupt u Event u Passive u Skip if already active u A lock set may have loops u The record may be asynchronous u Skip if the record is disabled u Call record support process routine u Linked records (input, output, forward) that are process passive are processed recursively

7 1999/Ph 514: Flow of Control EPICS Process: Synchronous I/O u Set PACT true (processing active) u Perform I/O operation u For hardware link call device support u For database link u linked records (except scalar NPP NMS input) are in a common lock set. u recursive processing may happen u inputs processed before data transfer u outputs processed after data transfer u For channel access link u inputs are monitored u outputs are handled via a separate task u Check for record specific alarm conditions u Call db_post_event for any fields that change because of record processing u Request processing of forward link u Set PACT false u return

8 1999/Ph 514: Flow of Control EPICS Process: Asynchronous I/O u Asynchronous Start (Called by dbProcess) u Set PACT True u Start I/O operation (normally via device support) u return leaving PACT true u Asynchronous Completion Record processing routine is called again u Complete I/O operation u Check for record specific alarm conditions u Call db_post_event for any fields that change because of record processing u Request processing of forward link u Set PACT false u return

9 1999/Ph 514: Flow of Control EPICS Channel Access u Search u UDP broadcast PVNAME on local subnet (buffered) u Each IOC has a CA broadcast listener u IOC that has PV sends UDP message back to client u TCP connection between each client/server u For each client IOC establishes following tasks u Server task (all communication except monitors) u Event task which handles monitors, I.e. calls to db_post_event u Get u Issue requests u Wait for replies u Put u Issue put. No response except for errors u May cause record processing

/Ph 514: Flow of Control EPICS Channel Access continued u Add Event u Ask for monitor on PV (record.field) u Monitors happen because of calls to db_post_event u Put Notify u Issue put and wait for completion u Completion when all records complete processing u Connection Management Automatic reconnect u Access Security

/Ph 514: Flow of Control EPICS Example CA Put Notify u Client issues put notify and flush u IOC CA server accepts request u dbPutNotify is called u dbScanLock is called - Entire lock set is locked u Value is written to record u Record is processed (if passive and PP true in dbd file) A set of records may start and some complete processing u dbScanUnlock is called u When all records complete processing the CA server is notified u The CA server sends a message back to the client