\subsection{XIA HSC-1 Huber Slit Controller}

By default, the HSC-1 Huber Slit Controllers are delivered with default values
that do not allow the slit blades to be moved to anywhere the blades can 
physically reach.  The default values for parameters 1 and 2 are:

\begin{tabular}{|c|c|c|c|}
\hline
Parameter  &         Name         &  Default Value  &  Default in um \\
\hline
    1      &  Outer Motion Limit  &      4400       &    11000 um \\
\hline
    2      &    Origin Position   &       400       &     1000 um \\
\hline
\end{tabular}

The MX drivers for the HSC-1 assume that these two parameters have been
redefined to have the following values:

\begin{tabular}{|c|c|c|c|}
\hline
Parameter  &         Name         &  Default Value  &  Default in um \\
\hline
    1      &  Outer Motion Limit  &     10400       &    26000 um \\
\hline
    2      &    Origin Position   &      5200       &    13000 um \\
\hline
\end{tabular}

The reprogramming must be done using a terminal program like Kermit or
Minicom.  Suppose you have an HSC-1 controller with a serial number of
XIAHSC-B-0001.  Then the appropriate commands to send to the HSC-1 
would be:
\newline\ 
\begin{verbatim}
    !XIAHSC-B-0001 W 1 10400
    !XIAHSC-B-0001 W 2 5200
\end{verbatim}
\ \newline
Next, in the MX config file, specify the limits, scales and offsets of the
various axes as follows:

\begin{tabular}{|c|c|c|c|c|}
\hline
 XIA motor name & negative limit (raw units) & positive limit (raw units)
 	& scale & offset \\
\hline
       A        &    -65535      &     65535      &  2.5  & -13000 \\
\hline
       B        &    -65535      &     65535      &  2.5  & -13000 \\
\hline
       C        &    -65535      &     65535      &  2.5  &      0 \\
\hline
       S        &         0      &    131071      &  2.5  & -26000 \\
\hline
\end{tabular}

Then, you will be able to move the A, B, and C motors from -13000 um to
+13000 um and the S motor from 0 um to 26000 um.

Please note that the HSC-1 motor positions can only be set to the
value 0.  A ``set motor ... position'' command to any other value than
zero will fail.  The ``set motor ... position 0'' command itself will 
cause the HSC-1 to execute an ``Immediate Calibration'' or ``0 I'' command.
Also note that the slit size motor S cannot be moved to a negative value,
so if S is at zero and there is a visible gap between the blades, then you
will have to manually close the slit by hand.

Here is an example database for two HSC-1 controllers attached to the
same serial port:
\begin{verbatim}

hsc1_rs232 interface rs232 tty "" "" 9600 8 N 1 N 0xd0a 0xd /dev/ttyS0
hsc1_1     interface controller hsc1 "" "" hsc1_rs232 2 XIAHSC-B-0067 XIAHSC-B-0069
hsc67a     device motor hsc1_motor "" "" 0 0 -65535  65535 0 -1 -1 2.5 -13000 um hsc1_1 0 A
hsc67b     device motor hsc1_motor "" "" 0 0 -65535  65535 0 -1 -1 2.5 -13000 um hsc1_1 0 B
hsc67c     device motor hsc1_motor "" "" 0 0 -65535  65535 0 -1 -1 2.5      0 um hsc1_1 0 C
hsc67s     device motor hsc1_motor "" "" 0 0      0 131071 0 -1 -1 2.5 -26000 um hsc1_1 0 S
hsc69a     device motor hsc1_motor "" "" 0 0 -65535  65535 0 -1 -1 2.5 -13000 um hsc1_1 1 A
hsc69b     device motor hsc1_motor "" "" 0 0 -65535  65535 0 -1 -1 2.5 -13000 um hsc1_1 1 B
hsc69c     device motor hsc1_motor "" "" 0 0 -65535  65535 0 -1 -1 2.5      0 um hsc1_1 1 C
hsc69s     device motor hsc1_motor "" "" 0 0      0 131071 0 -1 -1 2.5 -26000 um hsc1_1 1 S
\end{verbatim}
