esrf

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

NTAB2.MAC
See other macros in category: All
Description:
    Macros to control two leg table(s) with logical motors xtilt and height
Documentation:
    DESCRIPTION
    A table with two legs For geometry 0 (standard): tilt is the angle defined by the two legs. The middle position stays fixed when moving the tilt. height is the height at this point. All motors must be defined in config.

    EXAMPLE
    tab2setup 1 0 122 tab1 tab2 xti hgt Defines one table geometry 0 distance 122 mm motor names
    mvr hgt 3 Moves relative height 3 mm. this will move all tab motors up 3 mm.
    ascan xti 0 3 10 1 Will scan on angles xti between 0 and 3 stopping in 10 intermediate points and counting for one second at each point


    DEPENDENCIES
    To use the table with its pseudomotors the following must be done
    • The file ntab2.mac has to be read in done by: startup s. (this file needs: pseudo.mac , stchanges.mac)
    • the pseudo motors have to be configured done by: SPECADM (Controller NONE, mnemonic as in startupscript)
    • setup the table ( with tab2setup ) done by: startup s.


Macros:
    tab2setup
    Usage: tab2setup
    Setup one table in the system

    tab2unsetup
    Usage: tab2unsetup (table-mnemonic)
    Delete definitions for one table

    tab2show
    Usage: tab2show
    Shows a list with the actual configuration in this system

    tab2on
    Usage: tab2on table-number
    Sets on the track between table and logical motors

    tab2off
    Usage: tab2off table-number
    Sets off the track between table and logical motors

Internal Macros:
    tab2_bl1get
    Usage: tab2_bl1get
    Read position from controller for bl1.

    tab2_bl2get
    Usage: tab2_bl2get
    Read position from controller for bl2.

    tab2_xtiget
    Usage: tab2_xtiget
    Calculates xti from tab1, tab2

    tab2_hgtget
    Usage: tab2_hgtget
    Calculates hgt from tab1, tab2

    tab2_bl1move
    Usage: tab2_bl1move
    Moves tab1 when xti or hgt change

    tab2_bl2move
    Usage: tab2_bl2move
    Moves tab2 when xti or hgt change

    tab2_xtimove
    Usage: tab2_xtimove


    tab2_hgtmove
    Usage: tab2_hgtmove


    tab2_tf
    Usage: tab2_tf (calcidx , tbl1, tbl2, xti, hgt, mode, d1)
    calcidx gives the index of the value to be calculated. Indexes are starting from 0 (tbl1) and go to 3 (hgt). The 2 leg motors and the 2 pseudo motors are all the time given. Depending on calcidx only 2 of them are used in the calculation. The mode allows for different geometries.

    _tab2on
    Usage: _tab2on(t2_tabmne)


    _tab2off
    Usage: _tab2off(t2_tabmne)


Filename: tab2.mac
Author: Vicente Rey. June 1995 $Revision: 1.0 $, $Date: 2003/09/22 15:13:43 $
Last mod.: 22/09/2003 17:14 by papillon