esrf

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

HEIDEN.MAC
See other macros in category: Positioning
Description:
    Heidenhain AWE 1024 (Encoder) as pseudo motor
Documentation:
    DESCRIPTION
    A motor will be set up, which reads its position by asking a Heidenhain AWE 1024 about its encoder readings. This pseudomotor can either have a controller NONE (in spec config) and serve only for information. It can also be defined for a real motor . The position of this motor will be replaced by the encoder readings.

    EXAMPLE
    heidensetup 1 7 heid
    One pseudo motor heid will be set up for a Heidenhain AWE at gpib address 7. If the motor heid is defined with spec config editor the its position will be read with the AWE.


    ATTENTION
    • If you disconnect the AWE you have also to undefine the associated pseudo motor with spec's configuration editor. Otherwise you will get GPIB timeouts at each wa.
    • The heidenhain unit has to be started in a certain wait. This is done by the heiden_init <gpib_number> macro. The position will be set to 0 at this moment. If you switch the box off, you have to repeat this procedure.


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

Macros:
    heidensetup
    Usage: heidensetup [no_of_exe] [gpib_channel_of_first_exe] [pseudomne1] [....]
    Define the heiden AWEs as pseudo motors. The gpib address must follow each other.

    heiden_init
    Usage: heiden_init <gpib_channel>
    sets the encoder to 0 and starts the internal counter

    heiden_wackel
    Usage: heiden_wackel <gpib_channel>
    displays the values read on the screen

Internal Macros:
    heidencntsetup
    Usage: heidencntsetup


    _heidensetup
    Usage: _heidensetup


    _heidengetangles
    Usage: _heidengetangles


    _heidengetcounts
    Usage: _heidengetcounts


    heiden_read
    Usage: heiden_read


    heiden_old_read
    Usage: heiden_old_read


    heiden_poll
    Usage: heiden_poll


    heiden_state
    Usage: heiden_state


    heiden_get
    Usage: heiden_get


    heiden_t2
    Usage: heiden_t2


    heiden_s1
    Usage: heiden_s1


    heiden_a0
    Usage: heiden_a0


    heiden_c2
    Usage: heiden_c2


Filename: heiden.mac
Author: HEIDEN.MAC JK 6.93
Last mod.: 25/04/2008 10:19 by rey