esrf

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

HP66XA.MAC
See other macros in category: All
Description:
    Macros to control Hewlett-Packard 664xA,665xA,667xA and 668xA power supplies as pseudo motors
Documentation:
    DESCRIPTION
    This macro set lets define the powersupplies as motors in spec.

    EXAMPLE
    mv hp4 1.2
    (move the hp4 to 1.2 volts)
    ascan hp662 0 10 10 1
    (scan hp662 from 0 to 10 microm. in 10 steps and count for 1 second)
    a2scan hp661 0 20 opti -5 5 10 1
    (scan the optical table stepper motor from -5 to 5 degrees and scan at the same time the hp661 from 0 to 20 micr.)


    DEPENDENCIES
    To use a hp66 as a motor the following conditions have to be fulfilled:
    • The file hp66.mac has to be read in done by: startup s. (this file needs: pseudo.mac , stchanges.mac)
    • the hp66 motors have to be configured done by: SPECADM (Controller NONE, mnemonic as in startupscript)
    • setup the hp66s ( with hp66setup ) done by: startup s.


Macros:
    hp66add
    Usage: hp66add [No of hp66s] [hp661 motor name] [hp661 device name] ...
    Adds the given hp66s to the already defined hp66s

    hp66setup
    Usage: hp66setup [No of hp66s] [hp661 motor name] [hp661 device name] ...
    ... [hp66 n motor name] [hp66 n device name] Sets up the hp66 motor. You have to do that before you can use the hp66. If you don't provide the dev name you will be asked for it . ATTENTION You have to enclose the device name with "" otherwise the / in the name will be interpreted as a division.

Internal Macros:
    hp66_def
    Usage: hp66_def
    Defines pseudo motors from global HP66 variables

    _hp66move
    Usage: _hp66move


    _hp66getangles
    Usage: _hp66getangles


Filename: hp66xa.mac
Author:
Last mod.: 08/08/2002 14:37 by berruyer