esrf

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

ATT_RELAY.MAC
See other macros in category: Other hardware
Description:
    handle the relay driven attenuator box
Documentation:
    DESCRIPTION
    Aset of rellays allows the remote control of the attenuators.

    SETUP
    The Relay OS-9 device server, using the digital I/O card (ivc196) in the VME crate controls OUTPUT relays. The attenuator value/blades_in table follows:

Macros:
    mattsetup
    Usage: mattsetup <nb_attn> <device_root> <firstin> <firstout>
    set up attenuator box for nb_att attenuators, controlled by relay devices with root name device_root. The firstin is the firs reading the state channel, while the firstout is the first control channel.

    mattset
    Usage: mattset <value>
    set attenuator, where value is a hexadecimal representation of the desires blades in. Insert needed blades first, then retract the unwanted ones to avoid exposure of detector while moving. Verify the result of the operation and print new attenuator status.

    mattstatus
    Usage: mattstatus
    Read attenuator status and print to screen. If an argument is given, the macro repeats until interupted by ^C.

    att
    Usage: att
    read/set attenuators

    att_Set
    Usage: att_Set <value>
    just a common typo...

    att_State
    Usage: att_State <forever>
    ...and another one...

    matt_test
    Usage: matt_test <number of repetitions>
    test the attenuators - puts them in and out and leaves them in their original state.

    matt_table_setup
    Usage: matt_table_setup (args)
    Set the table with sequence of attenuation values.

Internal Macros:
    mattset0
    Usage: mattset0()


    mattreset
    Usage: mattreset()


    mattsetmax
    Usage: mattsetmax()


    _matt_get
    Usage: _matt_get ()
    read attenuator status

    _matt_put
    Usage: _matt_put (value)
    set attenuator to <value>

Filename: att_relay.mac
Author: J.Klora, A.Beteva
Last mod.: 25/06/2007 17:24 by rey