esrf

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

millitron.MAC
See other macros in category: Positioning
Description:
    Macros to control a MILLITRON 1240 Version 2.0
Documentation:
    DESCRIPTION
    This macro file allows to connect a millitron micrometer as a pseudo counter in SPEC.
    History:
    18/10/01, L.Claustre change on milon macro see the setup section.
    18/12/00, L.Claustre first version for distribution.


    SETUP
    Controller 1240
    The millitron controller has to be configured before using it with this macros.
    Press the \"config\" press-button (on the rear panel), then go the \"PARAM E/S\" menu and check values are the following:
    • 9600
    • PR.V--
    • RS232C
    • CAR.8n1
    • NO.DIS.
    Then go to the main menu and check the \"CALCUL\" option is set instead of \"SANS C/I\".
    Now save changes, so go to the \"SAUVEG.\" menu and press the down button (right side), \"OK\" should be displayed.
    SPEC
    configure a ESRF serial device (dserver for IBAM) with baud rate set to 9600 and with \"raw\" mode.
    SerialLine dserver
    Default resources are enough.


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


Macros:
    milsetup
    Usage: milsetup [mil-mne1 serial_id1 channel_nr1 [...]]
    Sets parameters for a group of millitron micrometer pseudocounters. It can be called interactively or non-interactively by giving all parameters in the command line.

    milreset
    Usage: milreset
    Reset internal lists.

    milshow
    Usage: milshow
    Shows current MIL pseudocounters definition.

    miloff
    Usage: miloff
    Deactivates definitions for MIL pseudocounters.

    milon
    Usage: milon
    Activates definitions for MIL pseudocounters.

    mildisp
    Usage: mildisp
    Activates the display for the input selected.

Internal Macros:
    miladd
    Usage: miladd mil-mnemonic serial_id channel_nr
    Add definitions for a millitron micrometer pseudocounter

    mil_add
    Usage: mil_add (mil-mnemonic, serial_id, channel_nr)
    Add definitions for a millitron micrometer pseudocounter

    milblon
    Usage: milblon()


    milbody
    Usage: milbody(mode)


    milunsetup
    Usage: milunsetup (mil-mnemonic)
    Delete definitions for one MILLI mnemonic

    mildel
    Usage: mildel (mil-mnemonic)
    Delete definitions for one MIL mnemonic

    mil_getcounts
    Usage: mil_getcounts


Filename: millitron.mac
Author: Laurent
Last mod.: 12/08/2008 15:45 by rey