esrf

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

UPM60.mac
See other macros in category: All
Description:
    Set of macros to control upm60 sensors
Documentation:
    DESCRIPTION
    Macros to read the UPM60 controller for HBM sensors, using the following servers:
    • Upm60 server
    • Hbmsh server
    The sensors are read through Hbmsh server. They allow to work with one single Upm60 equipement (60 sensors).
    These macros allow to define a pseudomotor which will be connected to an Upm60 channel.
    The user can define the channel on which he wants to work.

    DEPENDENCIES
    To use the `upm60' pseudomotor:
    • load the macro file : upm60.mac
    • setup the encoder : with upm60setup
    • configure your encoder :
      • controller NONE
      • mnemonic upm60


Macros:
    upm60setup
    Usage: upm60setup <nb_of_chan> <hbmsh_device_root> <dev_name> [ "<motor_mne> <upm60_cha> <motor mne> ..."]
    Allows to work with Upm60 sensors of ONE UPM60 EQUIPEMENT (one single upm60 device)
    The list "motor_mnemo upm60_channel.." must be within " ". preliminary inits, defines:
    • UPM60_DEV : Upm60 device name
      filled with upm60_device_name
    • UPM60_HBM_ROOT : filled with hbmsh_device_root_name
      The Hbmsh objects (1 by channel) names will be built as:
      UPM60_HBM_ROOT/`upm60_channel (example : IDXX/Hbmsh/`upm60_channel')
    • UPM60_CHA[] : Upm60 channel for coresponding sensor filled with the `upm60_channel'
    • UPM60_EDEV[] : Hbmsh object name for reading corresponding sensor
    • UPM60_FOUND[] : 0/1 if there is an Upm60 sensor associated defines the `upm60' pseudomotor


    upm60_select
    Usage: upm60_select <mnemo_name>

    select the Upm60 sensor associated to motor `mnemo_name'
    Sets UPM60_SELMOT

    whatis_upm60
    Usage: whatis_upm60
    print the Upm60 channel number selected for polling (UPM60_SELMOT) and the associated motor config number.

    upm60_read
    Usage: upm60_read <motor_mnemo>
    read the value of sensor Upm60 associated to the selected motor (UPM60_SELMOT)
    puts the value in UPM60_VAL
    prints the value

    upm60_read3
    Usage: upm60_read3 <upm60_mnemo>

    called by the pseudo motor mechanism
    read the value of sensor Upm60 associated to the selected motor (UPM60_SELMOT)
    puts the value in UPM60_VAL and A[$1]

    set_acq_time
    Usage: set_acq_time <acq_time_in_msec>
    sets the acquisition time (in msec), it is the time between sending the read command and reading the response
    This time is put in the global variable UPM60_ACQT
    by default : 300 ms

    set_poll_time
    Usage: set_poll_time <poll_time_in_msec>
    sets the polling time (in msec)
    it is the time to wait between 2 sets of acquisitions
    This time is put in the global variable UPM60_POLLT by default : 1 sec

    set_upm60
    Usage: set_upm60 <value>
    sets the value of Upm60 selected channel

Internal Macros:
Filename: upm60.mac
Author:
Last mod.: 08/08/2002 14:37 by berruyer