esrf

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

See other macros in category: All
Description:
    Macros for the use of a 17T superconducting magnet controller from Birmingham (????).
Documentation:
    DESCRIPTION
    Use of the Birmingham superconducting magnet controller.

    SETUP
    In the config editor in the "Motor and Counter Device Configuration" page (hit "D") create a motor controller like follows:
    MOTORS          DEVICE          ADDR  <>MODE  NUM             <>TYPE
       YES          BIRMSM             -            1       Macro Motors
    Then create the macro motor:
    Number: <>Controller           0: MAC_MOT
    
    Unit/[Module/]Channel                 0/0 (first num is index num of controller)
    Name                                 birm
    Mnemonic                             birm
    Steps per degree/mm                 10000
    Sign of user * dial                     1
    Backlash [steps]                        0
    Steady-state rate [Hz]                  1
    Base rate [Hz]                          1
    Acceleration time [msec]                1
    Motor accumulator                       0
    Restrictions <>                      NONE

    Dial = accumulator / steps
      High limit                      17.0000
      Current                          0.0000
      Low limit                      -17.0000
    User = sign * dial + offset
      Offset                           0.0000
      `High' limit                    17.0000
      Current                          0.0000
      `Low' limit                    -17.0000

    It is advisable to set the backlash for the macro motors to 0.

    ATTENTION
    Channel numbers are :
    0 for magnet field
    1 for Current Temp Heat Exchanger
    2 for Current Temp Probe
    3 for Needle Valve Position
    4 for Needle Valve Pressure Target
    5 for Needle Valve Actual Pressure
    6 for helium level
    7 for atto position


    DEPENDENCIES
    The file birmingham_magnet.mac havs to be read in.

Macros:
    BIRMSMdebug
    Usage: BIRMSMdebug
    toggle debug mode for the present macros.

    BIRMSM_info
    Usage: BIRMSM_info
    toggle info mode for the present macros.

    __BIRMSM_simuf
    Usage: __BIRMSM_simuf(cmd)
    toggle info mode for the present macros.

    BIRMSM_simu
    Usage: BIRMSM_simu
    toggle debug mode for the present macros.

    BIRMSM_command
    Usage: BIRMSM_command [output|voltage|heater|ramprate|units|target|persistent|ready|getstatus]
    miscellaneous calls to the controller

    BIRMSM_heater
    Usage: BIRMSM_heater
    miscellaneous calls to the controller

Internal Macros:
    _birmsm__set_serial_parameters
    Usage: _birmsm__set_serial_parameters (serialline, parity, speed)
    Setting serial line parameters

    BIRMSM_config
    Usage: BIRMSM_config(mnum,type,unit,mod,chan)
    Called by spec,

    BIRMSM_cmd
    Usage: BIRMSM_cmd(mnum, cmd, p1, p2, p3)
    Called by spec

    __BIRMSM_io
    Usage: __BIRMSM_io (addr, cmd)
    Called by spec, write command to controller and read answer.

    __BIRMSM_put
    Usage: __BIRMSM_put (addr, cmd)
    Called by spec, write command to controller, no answer expected. return .error. in case of error

    __BIRMSM_get
    Usage: __BIRMSM_get (addr)
    Called by spec, read an answer

Filename: birmingham_magnet.mac
Author: BLISS - ESRF, H. Witsch
$Revision: 1.1 $
Last mod.: 19/08/2013 11:02 by witsch