\documentclass{chowto}

\title{How to Set the HMS and SOS Collimators}
\howtotype{user}
%\experiment{Name of experiment} % Optional
\author{Dave Gaskell}
\category{general} % Subject area of this document
%\maintainer{Name of person maintaining document} % Optional
\date{April 14, 2003}

\begin{document}

\begin{abstract}
This document describes how one moves the collimators for the HMS and SOS.
\end{abstract}

\section{HMS and SOS Slit Controls}

A remote control system consisting of motor/actuators exists to slide the 
slits into place. Resolvers specify the exact position of the slits. The 
control box is located downstairs in Hall C, behind the blue power supply 
racks. On the front face there are four buttons for each spectrometer. These 
indicate the three different slit positions and the ``home" position, which 
denotes that no slit is used at all (slit ladder in the up position). Brake 
cables are added to prevent the slit ladder from falling in case of a power 
loss. Next to this an emergency button is included to electrically shut down 
the control system.

After a power cycle the HMS and SOS slits move to the HOME position, returning 
a reading of 0. Thus, after a power failure or other cycle, the slits must be 
commanded to a meaningful position using the commands described below.

Normally, the slits are operated remotely. 

%\newpage

\section{Operation of the HMS Collimators}
\begin{itemize}
\item{Connect to terminal server 7, port 3, i.e., 
\texttt{telnet hctsv7 2003}.}
\item{Hit return to get a \texttt{B->} prompt.\\
NOTE:  Occasionally, just hitting return does not work.  If you hit return a 
few times and do not get a prompt, try typing \texttt{$\backslash$B} 
(the old procedure). This will hopefully get you a prompt.}
\item{Type \texttt{EN}, to enable the motor.}
\item{Type \texttt{RUN 10} and follow the instructions.}
\item{After the slit is in place, disable the motor by typing ``1''.}
\item{Get rid of your session by typing \texttt{cntrl-]}.  This is very 
important, otherwise, no one else can communicate with the slit controllers.}
\end{itemize}

\section{Operation of the SOS Collimators}
\begin{itemize}
\item{Connect to terminal server 5, port 5, i.e., 
\texttt{telnet hctsv5 2005}.}
\item{Hit return to get a \texttt{-->} prompt.}
\item{Type \texttt{EN}, to enable the motor.}
\item{Type \texttt{RUN 10} and follow the instructions.}
\item{After the slit is in place, disable the motor by typing \texttt{1}.}
\item{Get rid of your session by typing \texttt{cntrl-]}.}
\end{itemize}

\section{Collimator Positions}
The collimator positions can be checked by typing \texttt{p pfb} while
connected to the collimator controllers.  The HMS and SOS collimator positions
are given in Table~\ref{positions}.

\begin{table}
\begin{center}
\begin{tabular}{|c|c|c|}\hline
		 & HMS 		 & SOS \\\hline
Sieve slit       & 19804600      & 11638719 \\ \hline
Large Collimator & --            & 3190717 \\ \hline
Pion Collimator  & -3096800      & --      \\ \hline
\end{tabular}
\caption{Collimator positions.}
\label{positions}
\end{center}
\end{table}

\section{Troubleshooting}

\begin{itemize}

\item{\emph{When I try to log in to the HMS slit controller, I get the} 
\texttt{PortServer~8} \emph{text, but when I hit return, nothing happens.}\\
Try hitting return a couple times and wait a few seconds (like maybe 5-10).
If still nothing happens, try typing \texttt{$\backslash$B} (the old 
procedure).}

\item{\emph{I can log in, and I get a prompt, but when I try} \texttt{run 10} 
\emph{I get some weird error message about not being at the right level 
(error 63).}\\
In this case, it is likely that the controller has been left in monitor--mode.
If your prompt has two lines before the arrow (i.e. \texttt{B=>}) ,this is 
likely the case.  Try hitting \texttt{escape} to get out of monitor mode and
start over from \texttt{EN}.}

\end{itemize}


\end{document}

% Copied stuff from Hall C Manual - updated instructions to account 
% for replaced SOS controller.
%
% Revision history:
% $Log: slits.tex,v $
% Revision 1.3  2003/04/14 14:30:39  saw
% (gaskelld) Add a troubleshooting section
%
% Revision 1.2  2003/04/05 22:24:43  saw
% (gaskelld) Added info on how to check collimator positions and table of
% nominal positions
%
% Revision 1.1  2003/04/03 15:04:40  saw
% Information from old Hall C manual with updates to account for replaced
% SOS controller.

