esrf

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

LIN2TH.MAC
See other macros in category: Positioning
Description:
    Sets up a 2th motor in angle for a linear translation stage.
Documentation:
    DESCRIPTION
    A very simple macro set to define an angular 2th motor for a linear translation stage. The linear tth real motor and the tth angular pseudo motor can be moved and read by the user. The detector mounted on the translation stage is mecanically coupled to the source to keep the radial distance constant all the time. The calibration can be simply done with an energy dependent detector and the bragg law. You can not set the angular motor, but you have to set the values for the real motor (lin tth).

    EXAMPLE
    tlsetup 987.07 "twot" "lintwot"
    The distance source-detector is set to 987.07 mm. The angular tth motor is called twot and the linear motor lintwot.
    mv twot 20
    The linear stage is moved so the reflected angle will be 20 degrees.


    SETUP
    The linear tth motor must be configuered as a real motor. The angular tth motor must be configured with spec's configuration editor and its controller type set to NONE.

    ATTENTION
    • The only configuration parameter is the distance. No offset is included
    • This configuration parameter is normally loaded each time from the idxxsetup.mac. You have to modify it there.
    • You can not set values for pseudo motors (tth) with set or set_dial


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

Macros:
    tlsetup
    Usage: tlsetup [distance det-sample] [tth-angle-mne] [tth-lin-mne]
    configures the lin tth motor. The radial distance is constant in this setup and given as the first parameter. tthlin = sin(tth)*distance

Internal Macros:
    tl_getangles
    Usage: tl_getangles


    tl_moveall
    Usage: tl_moveall


Filename: lin2th.mac
Author: LIN2TH.MAC - JK 2.94
Last mod.: 17/07/2008 17:13 by rey