Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create the $IOC_DATA directory for your iocs as follows:
      1. cd $IOC_DATA
      2. mkdir sioc-<area>-<subsystem-prefix><2-digit#>
      3. cd  <sioc>
      4. mkdir archive autosave-req autosave iocInfo restore yaml
  2.  Create the $EPICS_IOCS  ioc boot directory
    1. mkdir  sioc-<area>-<subsystem-prefix><2-digit#>
  3. Setup ioc boot directory files
    1. cd $EPICS_IOCS/sioc-<area>-<subsystem-prefix><2-digit#>
    1. copy the ioc startup.cmd script from  $EPICS_IOCS/template
      1.  for Linux running iocsh:    cp ../template/startup.cmd.soft         startup.cmd
         
  4. Edit st.cmd
    1. replace <ioc>  with your ioc name
    2. replace <t_a> with the target, such as  linux-x86  or linux-x86_64 or rhel6-x86_64 (ref. your application bin directory).
    3. replace <exe> with your IOC Application executable this ioc should load
    4. if your IOC Application uses a non-standard location for the st.cmd file,  change path of the EPICS_IOC_APPSetup a relative symbolic link that points to the EPICS IOC Applicaiton TOP as follows:  
               ln -s ../../iocTop/<app>/<version> iocSpecificRelease
  1. Modify $EPICS_IOCS/screeniocs    Please note that this is a symbolic link to a CVS file.
    1. verify that the file in use has not been modified without being committed.
      1. cd $EPICS_IOCS/All/<facility>      , where facility is Dev,Prod,facet,acctest
      2. cvs diff -r HEAD screeniocs
      3. if there are issues, then send email to whoever made the change or to controls-software that you are about to update this file and uncommitted edits will be lost, so please commit your changes to CVS.  If you don't get a response,  you can either add the changes to CVS in addition to yours or just add yours.
    2. check out screeniocs from CVS into your work area
      1. cd
      2. cd <work>
        cvs co epics/iocCommon/All/<facility>   , where facility is Dev,Prod,facet,acctest
        1. cd epics/iocCommon/All/<facility>/screeniocs
        2. edit screeniocs
          1. add line for <ioc>. For server refer to table 1 above.
            format:  sioc-<area>-<subsystem prefix><2-digit #>  <executable w/full absoluete path>    sioc   <server>    [#comment}
          2. The "comment" field in  screeeniocs  is optional and must be preceded by a  "#".
          3. add comment in the "Mod:" section of the header
    3. commit your changes of screeniocs to CVS  as follows:
      1.  cvs commit  -m "added cpu and ioc blah" screeniocs
    4. update the screeniocs file in use
      1. cd $EPICS_IOCS/All/<facility>
      2.  rm -f screeniocs
      3. cvs update screeniocs
         

...