Spice_icon SPICE
Spectrometer Instrument Control Environment


setpos:

The setpos alias is used to redefine the current position to some specified value.  It is an alias to the zero command which is designed to avoid the user having to remember the definition of the zero angle.

The syntax for the setpos alias is:

     setpos motor value    

This will redefine the zero angle of motor so that it is at position value.  For example, the command setpos s1 100 will redefine the zero angle so that the current position now reads 100.



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

The alias definition is:

     zero %1 @(%1.zero)+@(%1)-%2

The argument @(%1.zero) will use the current zero angle for the motor specified by %1 and the @(%1) will use the current position for the motor specified by %1.  For more information about the syntax of these @(...) variables, see the How to use and command-line variables guide.