System Requirements
-------------------

1. Apache Ant <http://ant.apache.org/>: Used to build src/exphi.pmc


How to Install
--------------

1. Set up required M-variables on PMAC.

   Example 1: Turbo PMAC2 VME Ultralite

   M1981->X:$078424,0,1 ; First digital output (exposure shutter) of ACC-68E
   M1982->X:$078424,1,1 ; Second digital output (exposure trigger) of ACC-68E
   M0562->D:$00028B     ; Motor 5 (Phi) actual position (1/[I0508*32] cts)

   Example 2: Turbo PMAC2 Clipper

   M0000->Y:$078400,0,1 ; First digital output (exposure shutter)
   M0001->Y:$078400,1,1 ; Second digital output (exposure trigger)
   M0562->D:$00028B     ; Motor 5 (Phi) actual position (1/[I0508*32] cts)

2. Configure values in src/exphi.pmc.properties (see src/exphi.pmc.template
   for description of these variables)

3. Generate custom exphi.pmc:

   $ cd src
   $ ant exphi.pmc

4. Load exphi.pmc on PMAC

5. Load exphi.db on EPICS IOC (see doc/example)

6. (Optional) Open MEDM screen (see scripts/control.sh)
