esrf

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

CC133.MAC
See other macros in category: Positioning
Description:
    Macros for defining encoders as pseudocounters.
Documentation:
    OVERVIEW
    This macroset allow to define encoders conected to CC133 boards as pseudocounters. Each time the counters are read, the pseudocounters are loaded with the current values of the associated encoders. The values of the encoders may also be multiplied by scale factors.
    The definition of a pseudocounter is done by the macro cc133setup that has to be executed once per encoder. There is no limit in the number of encoders that can be defined by this way.

    The encoders must be accessible through their own device server (not MAXE).

    EXAMPLE
    cc133setup enc0 id47/cc133a/1 2.5
    Associates the pseudocounter `enc0' to the encoder `id47/cc133a/1' and sets the scale factor to 2.5.
    setc133 enc0 5
    Changes the encoder position to 5.
    cc133show
    Displays the current configuration.


Macros:
    cc133setup
    Usage: cc133setup <pseudo_counter> <device_name> [<scale_factor>]
    Associates the encoder <device_name> to <pseudo_counter>. If scale factor is not explicitly specified, unity is assumed.

    setcc133
    Usage: setcc133 [<pseudo_counter> [<new_value>]]
    Sets the position of the encoder associated to <pseudo_counter> to <new_value>. If no parameters are specified, the macros prompt for them.

    cc133show
    Usage: cc133show
    Lists the pseudocounters currently defined along with the associated device names and scale factors.
    If a counter name is associated to an encoder by cc133setup but the counter is not included in the configuration of spec, the corresponding line is marked as disabled.

Internal Macros:
    cc133unsetup
    Usage: cc133unsetup <pseudo_counter>
    Removes the definition of a encoder as pseudocounter.

    cc133_getcounts
    Usage: cc133_getcounts <pseudo_counter> <device_name> [<scale_factor>]
    Reads the current encoder position and stores it in the corresponding global variable.

Filename: cc133.mac
Author: P.Fajardo, (Original 8/96).
Last mod.: 27/02/2008 13:51 by rey