EasyManua.ls Logo

Sutter Instrument MPC-325 Series - Appendix E. Quick Reference; External Control

Sutter Instrument MPC-325 Series
71 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MPC-325 SERIES OPERATION MANUAL – REV. 3.20F (20200303)
59
APPENDIX E. QUICK REFERENCE
E.1. External Control
Controlling the MPC-325 externally via computer is
accomplished by sending commands to the MPC-200
controller over the USB interface between the
computer and the USB connector on the rear of the
ROE-200 that’s connected to the MPC-200
controller. The USB device driver for Windows is
downloadable from Sutter Instrument’s web site
(www.sutter.com
). The MPC-325 (MPC-200)
requires USB CDM (Combined Driver Model)
Version 2.10.00 or higher. The CDM device driver for
the MPC-325 (MPC-200) consists of two device
drivers: 1) USB device driver, and 2) VCP (Virtual
COM Port) device driver. Install the USB device
driver first, followed by the VCP device driver. The
VCP device driver provides a serial RS-232 I/O
interface between a Windows application and the
MPC-325 (MPC-200). Although the VCP device
driver is optional, its installation is recommended
even if it is not going to be used. Once installed, the
VCP can be enabled or disabled.
The CDM device driver package provides two I/O
methodologies over which communications with the
controller over USB can be conducted: 1) USB Direct
(D2XX mode), or 2) Serial RS-232 asynchronous via
the VCP device driver (VCP mode). The first method
requires that the VCP device driver not be installed,
or if installed, that it be disabled. The second method
requires that the VCP be installed and enabled.
Virtual COM Port (VCP) Serial Port Settings: The
following table lists the required RS-232 serial
settings for the COM port (COM3, COM5, etc.)
generated by the installation or enabling of the VCP
device driver.
Table E-1. USB-VCP interface serial port settings.
Property
Setting
Data (“Baud”) Rate (bits per second (bps))
128000
Data Bits
8
Stop Bits
1
Parity
None
Flow Control
None
The settings shown in the above table can be set in
the device driver’s properties (via the Device
Manager if in Windows) and/or programmatically in
your application.
Protocol and Handshaking: Command sequences do
not have terminators. All commands return an
ASCII CR (Carriage Return; 13 decimal, 0D
hexadecimal) to indicate that the task associated
with the command has completed. When the
controller completes the task associated with a
command, it sends ASCII CR back to the host
computer indicating that it is ready to receive a new
command. If a command returns data, the last byte
returned is the task-completed indicator.
Command Sequence Formatting: Each command
sequence consists of at least one byte, the first of
which is the “command byte”. Those commands that
have parameters or arguments require a sequence of
bytes that follow the command byte. No delimiters
are used between command sequence arguments,
and command sequence terminators are not used.
Although most command bytes can be expressed as
ASCII displayable/printable characters, the rest of a
command sequence must generally be expressed as a
sequence of unsigned byte values (0-255 decimal, 00
– FF hexadecimal, or 00000000 – 11111111 binary).
Each byte in a command sequence transmitted to the
controller must contain an unsigned binary value.
Attempting to code command sequences as “strings”
is not advisable. Any command data returned by the
controller should be initially treated as a sequence of
unsigned byte values upon reception. Groups of
contiguous bytes can later be combined to form
larger values, as appropriate (e.g., 2 bytes into 16-bit
“word”, or 4 bytes into a 32-bit “long” or “double
word”). For the MPC-200, all axis position values
(number of microsteps) are stored as “unsigned
long” 32-bit positive-only values, and each is
transmitted and received to and from the controller
as four contiguous bytes.
Axis Position Command Parameters: All axis
positional information is exchanged between the
controller and the host computer in terms of
microsteps. Conversion between microsteps and
microns (micrometers) is the responsibility of the
software running on the host computer (see
Microns/microsteps conversion
table for conversion
factors).
Microsteps are stored as positive 32-bit values
(“long” (or optionally, “signed long”), or “unsigned

Table of Contents