EasyManua.ls Logo

Sutter Instrument MPC-200 - Page 45

Sutter Instrument MPC-200
73 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-385 SERIES OPERATION MANUAL REV. 3.21K (20201120)
43
Declaring the microsteps/microns conversion factors in C/C++:
/* conversion factors for MP-225/M, MP-285/M, or MP-265/M based config.
*/
double us2umCF = 0.0625; /* microsteps to microns */
double um2usCF = 16; /* microns to microsteps */
/* conversion factors for MP-245[S]/M, MP-845[S]/M, or MP-865/M based
config. */
double us2umCF = 0.046875; /* microsteps to microns */
double um2usCF = 21.333333333; /* microns to microsteps */
/* conversion factors for MT-800 config. */
double us2umCF = 0.078125; /* microsteps to microns */
double um2usCF = 12.8; /* microns to microsteps */
Converting between microsteps and microns in C/C++:
/* converting X axis current position */
cp_x_um = cp_x_us * us2umCF; /* microsteps to microns */
cp_x_us = cp_x_um * um2usCF; /* microns to microsteps */
Do the same for Y and Z, and for any other position sets used in the application.
5. Ranges and Bounds: See
Ranges and Bounds
table for exact minimum and maximum
values for each axis of each compatible device that can be connected. All move commands
must include positive values only for positions negative positions must never be
specified. All positions are absolute as measured from the physical beginning of travel of a
device’s axis. In application programming, it is important that positional values be
checked (>= 0 and <= max.) to ensure that a negative absolute position is never sent to
the controller and that end of travel is not exceeded. All computational relative positioning
must always resolve to accurate absolute positions.
Declaring minimum and maximum absolute position variables in C/C++:
/* minimum and maximum positions for X, Y, & Z */
double min_x_um, min_y_um, min_z_um; /* minimum microns */
double max_x_um, max_y_um, max_z_um; /* maximum microns */
Set minimum and maximum absolute positions for each axis see Ranges & Bounds table.
/* initialize all minimum positions in microns*/
min_x_um = 0;
min_y_um = 0;
min_z_um = 0;
/* initialize all maximum positions in microns*/
/* MP-225/M, MP-285/M, MP-845[S]/M, MP-245[S]/M, etc. */
max_x_um = 25000;
max_y_um = 25000;
max_z_um = 25000;
/* MP-865/M */
max_x_um = 50000;
max_y_um = 12500;
max_z_um = 25000;
/* MP-265/M */
max_x_um = 25000;
max_y_um = 12500;
max_z_um = 25000;

Table of Contents

Related product manuals