\documentstyle{article}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{3}
\setlength{\topmargin}{0mm}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{220mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{0mm}
\newenvironment{command}%
{\begin{list}{}{\setlength{\leftmargin}{27mm}%
                \setlength{\itemsep}{0mm}%
                \setlength{\labelwidth}{22mm}%
                \setlength{\labelsep}{5mm}}}%
{\end{list}}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\title {CCD Commands}
\author {Mark Jeffries}
\date {\today}
\maketitle
\tableofcontents

\vspace {10mm}

\section {General}

\subsection {Starting up}
\begin{command}
\item [Format:]      {\tt CCDINIT}
\item [Description:]  Starts support of the VAX CCD mimic display, updates
                      all the instrument status in the d-task and on the
                      mimic display and logs the d-task on to monitor mode.
\end{command}

\subsection {Updating status}
\begin{command}
\item [Format:]      {\tt CCDUPDATE} 
\item [Description:]  Brings the current status of all the mechanisms 
                      in the CCD mimic up to date.
\end{command}

%\subsection {Listing the noticeboard}
%\begin{command}
%\item [Format:]      {\tt CCDVALUES}
%\item [Description:]  Gives a rough display of pertinent CCD d-task
%                      status values on the screen. This is only intended
%                      for use when the mimic display is out of action.
%\end{command}

\section {The mimic display}

In general, mechanisms and/or values appear in blue on the display when
they are moving or changing, in red when they are in an error condition,
and in white when they are inactive and healthy. Green can also be used to 
represent a mechanism that is in use and yellow a light path.
The CCD mimic screen is selected by entering the command {\tt SCREEN CCD}.

\section {CCD commands}

\subsection {Starting an exposure}
\begin{command}
\item [Format:]             {\tt CCDRUN} {\it run\_number} {\it exposure\_time}
\item [Description:]         Sets the exposure time and run number then does an
                             exposure of the appropriate length. The CCD is 
                             automatically cleared at the start and read out at 
                             the end of the exposure.
\item [{\it run\_number:}]   The run number.
\item [{\it exposure\_time}] The exposure time, between 0 and 16000 seconds.
\end{command}        
                     
\subsection {Stopping an exposure}
\begin{command}      
\item [Format:]     {\tt CCDFINISH} 
\item [Description:] Stops an exposure and reads out the chip.
\end{command}        
                     
\subsection {Aborting an exposure}
\begin{command}      
\item [Format:]     {\tt CCDABORT} 
\item [Description:] Stops an exposure without reading out the chip.
\end{command}       
                    
\subsection {Pausing an exposure}
\begin{command}     
\item [Format:]     {\tt CCDPAUSE} 
\item [Description:] Pauses an exposure by closing the shutter until the restart
                     command is given.
\end{command}

\subsection {Restarting an exposure}
\begin{command}     
\item [Format:]     {\tt CCDRESTART}
\item [Description:] Restarts an exposure that has been paused.
\end{command}

\subsection {Setting monitor mode}
\begin{command}     
\item [Format:]     {\tt CCDMONITOR} {\it mode}
\item [Description:] Turns monitor mode on or off.
\item [{\it mode}]  {\tt ON} or {\tt OFF}.
\end{command}  

\end{document}
