esrf

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

MVH_brakes.mac
See other macros in category: All
Description:
Documentation:
    DESCRIPTION
    control of the brakes of the mirrors.

Macros:
    MVH_brakes_setup
    Usage: MVH_brakes_setup <brakeu_mne> <brakeu_pol> <braked_mne> <braked_pol> ...
    Definition of the sets of brakes. One set defines 2 brakes (one 'up' and one 'down') and is associated to a mirror.
    A brake action is realized by a motor applying a vertical force on an horizontal plate to avoid motion on the element pressed by this plate. The commands to apply or release a brake is done by moving the motor to a specific position (). There are 2 brakes, each one pressing on one region of the plate.
    Typical setup: MVH_setup brakeu braked [brakebu brakebd ...]
    - brakeu_mne: mnemonic for 'brake up' motor
    - brakeu_pol: brake polarity for 'brake up' motor: 0 if [applied on lim-, released on lim+] or 1 if [applied on lim+, released on lim-]
    - braked_mne: mnemonic for 'brake down' motor
    - braked_pol: brake polarity for 'brake up' motor: 0 if [applied on lim-, released on lim+] or 1 if [applied on lim+, released on lim-]
    The macros will give the possibility to move the brakes of a set at the same time.

    MVH_brakeon
    Usage: MVH_brakeon (brake_set_number)
    set brakes ON (wait until end of motion)

    MVH_brakeoff
    Usage: MVH_brakeoff (brake_set_number)
    set brakes OFF (wait until end of motion)

    MVH_status
    Usage: MVH_status (brake_set_number)
    Gives the status of the brakes

    MVH_brakeuon
    Usage: MVH_brakeuon (brake_set_number)
    set brake up ON

    MVH_brakedon
    Usage: MVH_brakedon (brake_set_number)
    set brake down ON

    MVH_brakeuoff
    Usage: MVH_brakeuoff (brake_set_number)
    set brake up OFF

    MVH_brakedoff
    Usage: MVH_brakedoff (brake_set_number)
    set brake down OFF

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

    MVH_stopu
    Usage: MVH_stopu (brake_set_number)
    stops brake up

    MVH_stopd
    Usage: MVH_stopd (brake_set_number)
    stops brake down

Internal Macros:
    _MVH_statu
    Usage: _MVH_statu (brake_set_number)
    reads icepap status of the brake up motor.

    _MVH_statd
    Usage: _MVH_statd (brake_set_number)
    reads icepap status of the brake down motor.

    _MVH_pollu
    Usage: _MVH_pollu (brake_set_number)
    wait for the end of motion of brake up motor. It returns:
    - -1 if problem
    - 1 no limit
    - 2 if lim+
    - 3 if lim-
    - 4 if lim+ and lim-

    _MVH_polld
    Usage: _MVH_polld (brake_set_number)
    wait for the end of motion of brake down motor. It returns:
    - -1 if problem
    - 1 no limit
    - 2 if lim+
    - 3 if lim-
    - 4 if lim+ and lim-

    _MVH_checkmot
    Usage: _MVH_checkmot (brake_set_number)
    check that the motors for MVH are defined. exit if not.

Filename: MVH_brakes.mac
Author: mcd march 2011
Last mod.: 07/02/2012 09:48 by domingue