BUNCH CLOCK GENERATOR / BCG100 Sample IOC Application 1.20 January 2005 INTRODUCTION This application serves as a sample IOC application for the VME-based BCG100 and the Bunch Clock Generator (BCG). It provides instructions of how to extract the sources and build the application for a beamline IOC. The application was created as described in 'Chapter 2: Getting Started' from the 'EPICS Input / Output Controller Application Developer Guide.' It is intended for VxWorks-based IOCs and is compatible with EPICS base versions 3.14.6 and 3.14.7 and provides a reasonable application departure point. The application requires the sequencer and is part of this distribution. The sequencer (seq) was taken from synApps 5.0 and is version 2-0-8. In addition, the sequencer must be built before the application. Refer to the instructions below. The distribution is archived in tar format and compressed using zip. It can be downloaded from the BCDA website (internal) or is available upon request. The intention is for the application to reside at the same level as EPICS base with the following structure, however it can be extracted to any structure. EPICS/ base-3.14.6/ base-3.14.7/ bcg/ bcgApp/ Db/ op/ src/ configure/ documentation/ iocBoot/ iocbcg/ seq/ 2-0-8/ INSTALLATION Use the below steps to extract and build the application (assuming the above structure): 1) cd EPICS 2) gzip -cd bcgApp.tar.gz | tar -xf - 3) cd bcg 4) Modify EPICS_BASE in ./configure/RELEASE 5) Modify the BCG100 settings in ./iocBoot/iocbcg/st.cmd 6) cd seq/2-0-8 7) Execute make (Linux) or gnumake (Solaris) 8) cd ../.. 9) Execute make (Linux) or gnumake (Solaris) 10) Set the IOCs boot parameter startup script to the path of st.cmd 11) Reboot the IOC Argonne National Laboratory (ANL) Advanced Photon Source (APS) APS Operations Division (AOD) Beamline Controls and Data Acqusition (BCDA) David Kline dkline@aps.anl.gov