Spice_icon SPICE
Spectrometer Instrument Control Environment


com:

The com command will drive the specified motor to the center of mass of the last performed scan.

The syntax for the com alias is:

     com motor    

An important note about this command is that if you type the wrong motor in, the command will drive to the last stored center of mass even if the last scan didn't involve that motor.  For instance, if the last scan was an alignment scan of motor s1 which produced a center of mass of 135 degrees and the user accidently types com s2 (instead of com s1), the drive command will try to drive motor s2 to 135 degrees.


NOTE
that the following information is not required to understand the usage of the command but is included for completeness:

The alias definition is:

drive %1 @(com)

Where %1 is the specified motor name and @(com) will use the stored center of mass from the last performed command. For more information about the syntax of these @(...) variables, see the How to use and command-line variables guide.