esrf

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

ATTRIBUTES.MAC
See other macros in category: All
Description:
    ATTRIBUTES.MAC - TANGO attribute macro counters.
Documentation:
    DESCRIPTION
    The macro set offers the possibility to set-up a TANGO attribute as macro motor or as macro counter. Only read/write TANGO attributes can be used as macro motor. The macro motor controller defined is called "attr_mot" and The macro counter controller defined is called "attr_ct".

    SETUP
    Motor and Counter Device Configuration (Not CAMAC)
    SCALERS        DEVICE   ADDR               <>MODE  NUM            \   <>TYPE
        YES                                      POLL    1        Software Timer
        YES       attr_ct   IDXX/wcidxx/tg               2         Macro Counter
    Make sure to set the ADDR field with the device name.
    Make sure to set the NUM field to the good number of macro_counters you need.
    If you read from an array of scalars, i.e. a name that was defined multiple times, make sure to set the channel number as the array index. One must set (type p, when on counter) the Custom Parameters "attr_name". If the Custom Parameters "channel" is set, the macro assumes, that the signal name is used multiple times and that the channel is the index in the array of returned values.

    EXAMPLE
    attr_mot_setup tilt id14/eh3-motor/mono_tile/Position
    Set-up the TANGO attribute macro motor with the mnemonic "tilt"


Macros:
    attr_unsetup
    Usage: attr_unsetup
    Removes everything about attributes.mac

    attr_show
    Usage: attr_show
    Displays information about counters managed by attributes macros.

    attr_ct_show
    Usage: attr_ct_show
    Displays informations about macro counters.

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

    attr_mot_unsetup
    Usage: attr_mot_unsetup <mne>
    Removes reading of attribute linked to <mne> motor. ex: attr_mot_unsetup at1

    attr_mot_unsetup_all
    Usage: attr_mot_unsetup_all
    Removes reading of all attributes.

    attr_mot_show
    Usage: attr_mot_show
    Displays informations about attributes macro motors.

Internal Macros:
    attr_error_head
    Usage: attr_error_head
    Cosmetics.

    attr_ct_config
    Usage: attr_ct_config(cntnum, what, p1, p2)
    Called on reconfig.

    attr_ct_cmd
    Usage: attr_ct_cmd(cntnum, what, p1, p2)
    Main function for macro counter.

    __attr_tango_catch_error
    Usage: __attr_tango_catch_error


    attr_spectrum_config
    Usage: attr_spectrum_config(num, type, unit, nb_chan, channel)
    Macro counter and motor config

    attr_spectrum_cmd
    Usage: attr_spectrum_cmd(num, key, p1, p2, unit)
    Macro motor/counter to read TANGO SPECTRUM ATTRIBUTES.

    attr_spectrum_read_test
    Usage: attr_spectrum_read_test


    attr_mot_setup
    Usage: attr_mot_setup
    Configures counter <mne> to read <attribute> of tango device <dev>. example: attr_mot_setup at1 id22eh2/machin/1 X or attr_mot_setup at2 id22eh2/machin/1/X example 2 attr_mot_setup rft1 id22/refillsim/1 Refill_time or attr_mot_setup rft1 id22/refillsim/1/Refill_time %QUOTE%

    attr_mot_config
    Usage: attr_mot_config(motnum, what, p1, p2)
    Called on reconfig.

    attr_mot_cmd
    Usage: attr_mot_cmd(motnum, what, p1, p2)


Filename: attributes.mac
Author: JM CG MP PC AM(a little) HW (Jan 2017)
Last mod.: 09/11/2017 11:13 by witsch