1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS.

Slides:



Advertisements
Similar presentations
EPICS-DIM Interface Peter Zumbruch Experiment control systems group GSI (KS/EE)
Advertisements

® 13-2 Overview After development is completed, you may need to: –Exclude unneeded VxWorks facilities. –Link application code into VxWorks. –Extend VxWorkss.
SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
ICS – Software Engineering Group 1 SNS Control Systems EPICS builds Control Systems Software Engineering “SNS Standards for Building IOC Applications”
1 2003/P571: IOC Development Environment EPICS IOC Development Environment with EPICS on Ubuntu Based on “IOC Development Envirnment” by Andrew Johnson,
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
EPICS Noboru Yaamamoto Jan 27, 2009 for EPICS seminar at RRCAT, Indore Installing EPICS.
4.3 Boot Loader Copyright © OneAccess Networks - All rights reserved -
IOC Application Development/Debugging Beijing EPICS Seminar Tuesday, 8/ J.Odagiri.
SNS Integrated Control System Running IOC Core on Windows and Linux Dave Thompson Wim Blokland Ernest Williams.
PC Application Development Environment PC Based EPICS Application DevelopmentPC Based EPICS Application Development Generic PC vxWorks targetsGeneric PC.
Linux IOC Operations at NSTX - An Overview P. Sichta 28Mar2005.
Lab 4 Department of Computer Science and Information Engineering National Taiwan University Lab4 - Bootloader 2014/10/14/ 13 1.
Finding, Deploying and Managing EPICS Support Modules Andrew Johnson Computer Scientist, AES Controls.
16 - Nov. 2000EPICS Workshop Oak Ridge1 Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
1 Web Server Administration Chapter 3 Installing the Server.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
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 IOC Diagnostics Tools Jeff Hill. Overview 4 EPICS built-in diagnostic tools 4 solutions to specific problems.
How Hardware and Software Work Together
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
ActEyes IP Cam Training Part 1: Camera Setup. Network Setup Overview Each IP Cam on the network will need its own IP address to be assigned. This address.
Chap 5 Startup and Setup Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
SNS Integrated Control System A process manager for soft IOCS DH Thompson.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Feb Material copied from the IOC Application Developer's.
1 1999/Ph 514: IOC Development Environment EPICS IOC Development Environment Marty Kraimer APS.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
 Wind River Systems, Inc Appendix - E Shared Memory Network.
DEBUGGING EPICS APPLICATIONS Bob Dalesio and Rozelle Wright February 10, 1997.
5 The Shell, the IOCS, and the File System. © 2005 Pearson Addison-Wesley. All rights reserved Figure 5.1 The components of a modern operating system.
Disk Layout/Productization Proposal Ron Rechenmacher and Geoff Savage.
Oracle Data Integrator Agents. 8-2 Understanding Agents.
IOC Application Development/Debugging Shanghai EPICS Seminar Tuesday, 8/29 J.Odagiri.
EPICS Application Development At The Canadian Light Source Glen Wright.
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.
Reliability/ Secure IOC / Outlook M. Clausen / DESY 1 CA-Put Logging BurtSave Warm Reboot Matthias Clausen DESY/ MKS.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
RT-LAB Electrical Applications 1 Opal-RT Technologies Use of the “Store Embedded” mode Solution RT-LAB for PC-104.
1 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Lab #3a State Notation Language.
Linux Operations and Administration
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
EPICS Noboru Yaamamoto July 11, 2006 for EPICS seminar at VECC,Kolkata Installing EPICS.
Lab 9 Department of Computer Science and Information Engineering National Taiwan University Lab9 - Debugging I 2014/11/4/ 28 1.
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.
Commands 3/1/ Boot PROM Fundamentals All Sun systems have resident boot PROM firmware Provides basic hardware testing and initialization prior.
Disk Layout/Productization Proposal Ron Rechenmacher and Geoff Savage.
Channel Access Security 2006 O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 Channel Access Security  The IOC Application.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Operating Environment. Installation and Upgrade Options Solaris suninstall program Solaris Web Start Installation Custom Jumpstart procedure Standard.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
 Wind River Systems, Inc Chapter - 4 CrossWind.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Stephanie Allison Software Mar 2, 2006 IOC Applications Host Applications Directory Structure Environment Setup Issues.
Managing a Cisco Devices Internetwork
IOC Application Development / Debugging
Chapter Objectives In this chapter, you will learn:
Router Startup and Setup
CHAPTER 7.
Relational Database Collaboration
Instructor & Todd Lammle
CCNA 3 v3.1 Module 6 Switch Configuration
Operating Systems Lecture 4.
Instructor & Todd Lammle
Instructor & Todd Lammle
Router Startup and Setup
Module 3 Configuring a Router.
Presentation transcript:

1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS

2 1999/Ph 514: Working With an IOC EPICS Typical Directory Structure for EPICS Applications u All directories and files are referenced relative to some user-defined directory under which all IOC related files exist u e.g. = /home/phoebus/STUDNTn/ioc/linac = /home/phoebus/STUDNTn/ioc/example = /home/phoebus/STUDNTn/ioc/project  /home/phoebus/STUDNTn/ioc/linac is provided for you and already contains appropriate.dbd and.db files for the IOCs. You will create the other top directories during the lab sessions.

3 1999/Ph 514: Working With an IOC EPICS Directory Structure of u / u config/ - configuration and make rules u linacApp/ - ioc related source files u Db/ u Makefile.Host - must edit to add database files u xxLinacSim.db - Example database file u *.db - other database files as required u src u Makefile.Host - Rules to build linacApp.dbd u Makefile.Vx u Rules to build linacLib u Rules to install iocCore and sequencer u *.c - C files for added device support, records, etc u *.st - sequence programs u base.dbd and baseLIBOBJS u select components from epics base u linacInclude.dbd u Specifies additional components to be included in linacApp.dbd

4 1999/Ph 514: Working With an IOC EPICS Directory Structure of u / u iocBoot/ u ioclinac/ u st.cmd - startup script for vxWorks u bin u db u dbd u include u lib u... Install directories created and maintained by ‘gnumake’. Do not edit files in these directories.

5 1999/Ph 514: Working With an IOC EPICS Connecting to the IOC’s Console Port u In an xterm window on the Unix workstation u cu -l cua/a u If vxWorks is running, you now have access to the vxWorks shell u bootChange - edit boot parameters u CTL-X - cause a reboot u help - displays vxWorks debugging commands u ____ - any global function loaded at boot time u If vxWorks is not running, you are interacting with a ROM-based debugger u p - Print boot parameters u c - Change boot parameter - Start boot process u ? - help (shows available commands)

6 1999/Ph 514: Working With an IOC EPICS Booting an IOC u vxWorks Boot Parameters '.' = clear field; '-' = go to previous field; ^D = quit boot device: ei processor number: 0 host name: phoebus file name: /usr/local/vxWorks/5.3/mv167bp0/vxWorks inet on ethernet (e): xxx:fffffe00 inet on backplane (b): host inet (h): gateway inet (g): user (u): ftp password (pw) (blank = use rsh): flags (f): 0x0 target name (tn): iocuspasn startup script (s): /home/phoebus/STUDNTn/ioc/linac/ioclinac/st.cmd other (o): u The only parameter you will need to change is ‘startup script’

7 1999/Ph 514: Working With an IOC EPICS vxWorks Startup Script u A vxWorks startup script is used to load EPICS software and databases. The path for the startup script is specified in the boot parameters. u Typical startup script (st.cmd) # Example vxWorks startup file # Following must be added for many board support packages #cd < cdCommands /* defines appbin, startup */ cd appbin ld < iocCore /* loads ioc system software */ ld < seq /* loads the EPICS sequencer */ ld < linacLib /* loads user specified object code */ cd startup dbLoadDatabase("../../dbd/linacApp.dbd") dbLoadRecords("../../db/xxLinacSim.db","user=studnt1") iocInit /* starts ioc software */ seq &bpmTrajectory, "user=studnt0” /* starts a sequence program */

8 1999/Ph 514: Working With an IOC EPICS IOC Test Facilities u Useful vxWorks routines u i - list tasks u d - dump memory u ld < filename.o - load object module u lkup “name” - find address of global variable u spy - show CPU usage per task u Useful EPICS-supplied routines (See Chapter 6 Application Developer’s Guide) u dbl - list records u dbnr - list number of each record type u dbpr “ “, 5 - print all fields of a record u dbgf “ “ - get field value u dbpf “ “,” “ -put field value u dbior - print driver/device report u casr - Channel Access Server Report u dbel “<record” - CA Event list report  dbcar - Database CA Report