esrf

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

jena.mac
See other macros in category: All
Description:
    Jena
Documentation:
    DESCRIPTION
    Macros to work with a Jena piezosystem both trough a GPIB connection or a serial interface. Piezos will be seen as motors in SPEC This macro set was adapted by DFC from another one installed on ID13 by Vicente Rey. Uses a new Interface EDA3 (RS232 and GPIB) 12 bits or EDA5 16 bits How to configure the jena piezos as pseudo motors in the setup file. jenasetup 1 1 0 0 2 "xd 0 40" "z 1 40" jenasetup <no_ctrls><gpib/ser><addr><12/16 bits><mot_mne><chan><40>

    DEPENDENCIES
    To use a jena as a motor the following conditions have to be fulfilled:
    • The file jena.mac has to be read in done by: startup script
    • the jena motors have to be configured done by: config (Controller NONE, mnemonic as in startupscript)
    • setup the jenas ( with jenasetup ) done by: setup


Macros:
    jenasetup
    Usage: jenasetup
    Prompts or receive parameters for the piezos

    jena_start
    Usage: jena_start
    start the current programmed function on channel 0, see jena_setsin macro.

    jena_stop
    Usage: jena_stop
    stop the current programmed function on channel 0, see jena_setsin macro.

    jena_setsin
    Usage: jena_setsin <offset> <amplitude> <frequency> <points/period> <num. periods> <initial angle> <divider>
    set parameters for the SINUS function on channel 0.

Internal Macros:
    jenabody
    Usage: jenabody(mode)


    jenaoff
    Usage: jenaoff


    jenaon
    Usage: jenaon


    jenaunsetup
    Usage: jenaunsetup


    jenainit
    Usage: jenainit
    Initializes all channels and sets current/voltage to zero It is called from setup and the after each reconfig/resetup

    jena_def
    Usage: jena_def


    jenamove
    Usage: jenamove(i,j)


    jenaget
    Usage: jenaget(i,j)


    jenacount
    Usage: jenacount(i,j)


    jenacmd
    Usage: jenacmd(unit,cmd)


    jenaread
    Usage: jenaread(unit,cmd)


Filename: jena.mac
Author: V.Rey Bakaikoa 28/1/1997 . DFC 27/06/2001
Last mod.: 31/05/2016 19:16 by guilloud