esrf

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

See other macros in category: All
Description:
Documentation:
    DESCRIPTION
    Control of the Brucker BEC1 magnet power supply, using serial line:
    - 9600 bauds
    - 8 data bits
    - 1 start and 1 stop bits
    - no parity
    the CTS and RTS signals must be connected together.
    The field is expressed in gauss.
    The user can control via macromotor or pseudomotor
    - if macromotor, then the controller is set in the spec config as 'bec1'.
    the macromotor must define a parameter 'serial' with the serial line index.

Macros:
    bec1on
    Usage: bec1on (mne)
    set <remote>-<reset errors>-<power on>-<field regulation>

    bec1off
    Usage: bec1off (mne)
    set -<power off>-

    bec1_readfield
    Usage: bec1_readfield (serial)
    reads the field, and set the global variable BEC1_field
    returns: 0 (if OK), -1 (if not OK)

    bec1_setfield
    Usage: bec1_setfield (serial,field,sleep)
    set the field. Waits <sleep> seconds before continuing.
    returns 0 (1f OK) and -1 (if not OK)

    bec1_status
    Usage: bec1_status (mne)
    prints the status

    bec1_inform
    Usage: bec1_inform (mne,<1/0>)
    to set/remove the MSL mode

    bec1_debug
    Usage: bec1_debug
    toggle the debug mode if (!(whatis("__bec1_debug") & 2)) rdef __bec1_debug \'#$*\'

    bec1_wr
    Usage: bec1_wr(mystr)
    write a command

    bec1___setup
    Usage: bec1___setup <mne> <ser_unit>
    setup (if use pseudomotor)

    bec1___on
    Usage: bec1___on
    pseudo on (if use pseudomotor)

    bec1___off
    Usage: bec1___off
    pseudo off (if use pseudomotor)

Internal Macros:
    bec1_config
    Usage: bec1_config(num,cmd,p1,p2,p3)
    MACRO MOTOR: Called by spec after reading the config file

    bec1body
    Usage: bec1body(mode)
    For blmenu (use blmenu.mac). (if use pseudomotor)

    bec1_wa
    Usage: bec1_wa <mne> <serial nb>
    pseudomotor reading. (if use pseudomotor)

    bec1_mv
    Usage: bec1_mv <mne> <serial nb>
    pseudomotor motion (if use pseudomotor)

Filename: brucker_bec1.mac
Author: mcd july 2011
Last mod.: 06/07/2011 08:54 by domingue