esrf

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

PIEZO.MAC
See other macros in category: All
Description:
    Macros to control a piezo connected to an ICV712 Vme card
Documentation:
    DESCRIPTION
    This macro set let you use a piezo as a motor in spec. As this function is implemented on the macro level - not all commands will work

    EXAMPLE
    mv piezo1 50
    (move the piezo1 to 50 micrometer)
    ascan piezo2 0 10 10 1
    (scan piezo2 from 0 to 10 microm. in 10 steps and count for 1 second)
    a2scan piezo1 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 piezo1 from 0 to 20 micr.)


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


Macros:
    piezoadd
    Usage: piezoadd [No of piezos] [piezo1 motor name] [piezo1 device name] ...
    Adds the given piezos to the already defined piezos

    piezosetup
    Usage: piezosetup [No of piezos] [piezo1 motor name] [piezo1 device name] ...
    ... [piezo n motor name] [piezo n device name] Sets up the piezo motor. You have to do that before you can use the piezo. 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.

    piezosafety
    Usage: piezosafety <step delay time or 0> <max. jump> <step size>
    We test if the move is bigger than <max jump> and if yes move in steps of <step size> to the requested value. The time between each step is given in <step delay time>. If this time is equal to 0 then the safety service is desactivated.

    piezoon
    Usage: piezoon
    Defines pseudo motors for piezos. Switches these motors on. Move of pseudo motor will move piezos.

    piezooff
    Usage: piezooff
    Switches all piezos off. Motor can be moved but no effect on piezos

Internal Macros:
    _piezogetangles
    Usage: _piezogetangles <mnemonic> <esrf device name>
    Read valueback from piezo device server and put it into A array

    _piezomove
    Usage: _piezomove <mne> <device-name> <step delay time or none> <max. jump> <step size>
    Moves piezo . If 3rd parameter is none or 0 we will directly go to the new value. If the 3 parameter contains a time we test if the move is bigger then <max jump> and if yes move in steps of <step size> to the requested value. The time between each step is given in <step delay time>.

Filename: piezo.mac
Author:
Last mod.: 03/12/2014 14:32 by mauro