esrf

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

dac.mac
See other macros in category: Generic I/O
Description:
    Macros to control a dac device server (VME card ICV712)
Documentation:
    DESCRIPTION
    This macro file allows to define dac channels as motors in SPEC. As this is implemented on the macro level not all commands will work.

    EXAMPLE
    mv dac1 50
    Sets an output of 50 in the dac1 device server. this is converted to dac output depending on the ICV712 settings.
    ascan dac2 0 10 10 1
    (scan dac2 from 0 to 10 in 10 steps and count for 1 second)
    a2scan dac1 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 dac1 from 0 to 20 micr.)


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


Macros:
    dacadd
    Usage: dacadd dac-mnemonic dac-device [scale-factor]
    Add definitions for a dac pseudomotor

    dacdel
    Usage: dacdel (dac-mnemonic)
    Delete definitions for one DAC mnemonic

    dacsetup
    Usage: dacsetup [dac-mne1 dac-dev1 [...]]
    Sets parameters for a group of DAC pseudomotors. It can be called interactively or non-interactively by giving all parameters in the command line.

    dacreset
    Usage: dacreset


    dacoff
    Usage: dacoff
    Deactivates definitions for DAC pseudomotors.

Internal Macros:
    dac_add
    Usage: dac_add (dac-mnemonic, dac-device)
    Add definitions for a dac pseudomotor

    dacunsetup
    Usage: dacunsetup


    dacshow
    Usage: dacshow
    Shows current DAC pseudomotors definition.

    dacon
    Usage: dacon
    Activates definitions for DAC pseudomotors.

    dacmove
    Usage: dacmove


    dacgetangles
    Usage: dacgetangles


    dacbody
    Usage: dacbody(mode)
    For blmenu (use blmenu.mac).

Filename: dac.mac
Author:
Last mod.: 27/02/2008 17:39 by rey