EasyManua.ls Logo

SPEX 270M - Moving a device

Default Icon
89 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...
270M
Rapid Scanning Imaging Spectrograph
variables are not reset). If the control program that you write will be called several
times
in
a session, then you should only initialize if the computer or the spectrometer
have been turned off.
2.3 Moving a device:
There are two ways
to
move the device, either a relative step move or an absolute
step move. The relative step move function requires a number of steps
to
move the
device from its current position. The absolute step move function requires a number
that
is
the target position of the device after the function call.
Both functions include parameters that specify which device
is
to
be moved and
whether limits of the device are
to
be checked (check limits if third parameter
is
non-zero). If the check limits parameter
is
non-zero and the device has a limit switch,
then the motor will not be moved if the switch
is
closed and it will stop if the switch
becomes closed while moving. The check limit parameter should only be non-zero
when moving the monochromator towards the limit switch
(i.e.
from one wavelength
to one that is higher). The step position for absolute moves must be
in
the range
between o and the maximum step position for that device
o.e.
for 270M systems:
38000 for mono, 1120 for slits). If it
is
desired to move a below this range then relative
moves are required. ·
SYNTAX:
"R
[HWARE NUMBER] [RELATIVE STEPCOUNT] [CHECKLIMIT];
0
"A [HWARE NUMBER] [ABSOLUTE STEP POSITION] [CHECKUMIT];"
EXAMPLES:
"R
0 5000 1 ;
0
- move mono 5000 steps and stop if the calibration switch fires.
"A
10 0;" - close side exit slit and
do
not check the limit.
NOTE:
During the operation
of
these commands, the device driver constantly checks
to
see if
. the user wishes
to
interrupt by determining if the escape key has been pressed. This
command flushes the keyboard buffer before moving the device. Keystrokes other
than the escape key are read and ignored by the device driver. If the escape key is
pressed, it
is
left
in
the keyboard buffer for the calling program
to
deal with. If a
command has been interrupted in this way you can find the current position of the
motor you were moving with the Query command.
Revieed
November
24,
1992
63
Leica Microsystems, Inc.'s Ex. 1033
Page 72 of 89