esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

MIRROR.MAC
See other macros in category: Positioning Obsolete
Description:
    Define height and angle pseudomotors for mirrors with 3 legs (this macro set is probably overseded by tab3.mac)
Documentation:
    DESCRIPTION
            
      __________motor1______motor2
      ________________tilt
      Two pseudo motors are introduced for a 3 leg mirror
      height : defined as the mean value of motor1 and motor2 
      angle  : defined as the difference of m1 and m2 devided by the
               their horizontal distance (length) 
    


    EXAMPLE
    mirrorsetup am1 am2 amt amh ama .872
    Tell spec that motor1 is called am1, motor2 am2 , and the tilt amt. The height is called amh and the angle ama. As the length (or horizontal difference) is given in meters and the motor values are defined as mm in spec config , the angle is in mrad.


    DEPENDENCIES
    The file mirror.mac has to be loaded ! done in idxxsetup.mac (This file needs pseudo.mac stlocal.mac)

Macros:
    mirrorsetup
    Usage: mirrorsetup <motor1> <motor2> <tilt> <height> <angle> <length>
    height and angle will be the pseudo motors

Internal Macros:
    mirror_getangle
    Usage: mirror_getangle


    mirror_getheight
    Usage: mirror_getheight


    mirror_moveangle
    Usage: mirror_moveangle


    mirror_moveheight
    Usage: mirror_moveheight


    mirror_setuser
    Usage: mirror_setuser


    mirror_pdef
    Usage: mirror_pdef


Filename: mirror.mac
Author: MIRROR.MAC JK 2.94
Last mod.: 12/08/2008 15:56 by rey