\subsection{Joerger SMC24}
\textit{Platforms: All}

\ \newline
This is an MX motor driver for the Joerger SMC24 CAMAC stepping motor
controller from
\MxLink{http://www.joergerinc.com/}{Joerger Enterprises, Inc.}
As of June 2011, this controller is still available
as a ``legacy'' product.
\newline
\newcommand{\MxFieldSmcCECrateZrecord}
{The MX record name for the CAMAC crate.}
%
\newcommand{\MxFieldSmcCESlot}
{The CAMAC slot number `N'.}
%
\newcommand{\MxFieldSmcCEEncoderZrecord}
{The MX record name for the encoder used to store motor positions.}
%
\newcommand{\MxFieldSmcCEMotorZstepsZperZencoderZtick}
{It means what it says.  The motor steps to encoder ticks ratio
may be a non-integer number.}
\newcommand{\MxFieldSmcCEFlags}
{These flags can change the behavior of the driver and are
described below.}
%
\MxSmcCEDriverFields

The allowed values for the \textit{flags} field are:
\newline
\begin{tabularx}{0.9\textwidth}{rcX}
  0x1 & - & The driver assumes that the encoder uses a 32-bit counter.\\
  0x2 & - & Clockwise and counterclockwise encoder pulses will be used.\\
\end{tabularx}

\ \newline
\textbf{Warning:}  As far as I know, this driver has not been tested
in a long time.  However, if broken, I expect that it would take less
than a day to get the MX driver working again.

The Joerger SMC24 controller does not have an internal register to record its
current position, so it needs the assistance of an external device
to keep track of the motor's absolute position.  Traditionally,
a Kinetic Systems 3640 CAMAC up/down counter is used as the external
device, but any device capable of acting as an encoder-like device
may be used as long as there is an MX encoder driver for it.

Also, traditionally the Kinetic Systems 3640 up/down counter was modified
in the field to connect pairs of 16-bit up/down counters to form 32-bit
up/down counters.  However, if this has not been done,
the driver can also emulate in software a 32-bit step counter using
a 16-bit hardware encoder by setting the bit in the "flags" variable
called MXF\_SMC24\_USE\_32BIT\_SOFTWARE\_COUNTER (0x1) .
