esrf

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

TTMFIX.MAC
See other macros in category: All
Description:
    Special macro to fix 2theta to two times theta
Documentation:
    DESCRIPTION
    A simple macro set which uses pseudo motors to couple the 2th movement to the theta movement. If the user types ttmfix, 2th will be move twice the angle theta moves. The initial offset will be kept.

    EXAMPLE
    fixttmsetup 2th th  ( tells the macro which motors to use)
        th : 10 degrees
        2th: 25 degrees
      fixttm   (from now on 2th will be coupled to th)
      mv th 20
      wa 
        th : 20 degrees (th moved 10 degrees) 
        2th: 45 degrees (2th moved 20 degrees)
      freettm  (from now on, 2th can be move independently)
    
    fixttmsetup tth-motor th-motor

    ATTENTION
    If you use a standard geometrie together with a standard spec monochromator, the coupling of tth to the mono energy during energy scans is done inside spec. See help Escan at spec prompt.

    DEPENDENCIES
    The file fixttm.mac has to be read in !done by: startup script (this file needs: stchanges.mac)

Macros:
    fixttmsetup
    Usage: fixttmsetup
    used to fix the current position for tth. Moveing th now will move tth twice the angle

    fixttm
    Usage: fixttm
    fixes the tth motor

    freettm
    Usage: freettm
    frees the tth motor for movement again

    scan_E
    Usage: scan_E
    like scanE but with fixed tth (the same as fixttm; scanE; freettm)

    new_E
    Usage: new_E
    like moveE but with fixed tth (the same as fixttm; moveE; freettm)

Internal Macros:
    ttmfix_checkall
    Usage: ttmfix_checkall


    ttmcleanup
    Usage: ttmcleanup
    frees the ttm motor if ^c is hit

Filename: ttmfix.mac
Author: TTMFIX.MAC - JK 6.93
Last mod.: 08/08/2002 14:37 by berruyer