Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
CC133.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Positioning | ||||||
Description:
| ||||||
Documentation:
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 | ||||||
Macros:
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: | ||||||
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. | ||||||
|