Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
MATT.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Other hardware | ||||||
Description:
| ||||||
Documentation:
A set of rellays allows the remote control of the attenuators. SETUP The relays are driven auther using the digital I/O card (ivc196) in the VME crate controls OUTPUT relays or a WAGO digital input/output module. DEPENDENCIES wagocore.mac | ||||||
Macros:
Usage: mattsetup <type> <other_parametres> set the attenuators up. The other_parameters depend on the control unit type (WAGO or other). matt_wago_setup Usage: matt_wago_setup <nb> <root> <firstin> <firstout> set up attenuator box for nb filters, controlled by wago devices with root name root. The firstin is the firs reading the state (input) channel, while the firstout is the first control (output) channel. matt_get Usage: matt_get () Get the attenuation. mattset0 Usage: mattset0 () Set the attenuation to 0 (all the available filters out). mattreset Usage: mattreset () Reset the attenuation to its initial value. mattsetmax Usage: mattsetmax () Set the attenuation to the max value (all the available filters in). _mattset Usage: _mattset (val) set attenuator, where val is a hexadecimal representation of the desired blades in. Insert needed blades first, then retract the unwanted ones to avoid exposure of detector while moving. Verify the result of the operation. Return the attenuator status. mattset Usage: mattset <value> set attenuator, where value is a hexadecimal representation of the desired 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: | ||||||
Usage: mattinit Initialise the different control types. _setup Usage: _setup (nb,root,fin,fout) set up attenuator box for nb filters, controlled by a devices with root name root. The fin is the first reading the state (input) channel, while the fout is the first control (output) channel. _matt_get Usage: _matt_get () Read attenuator status. _matt_wagoget_2posbit Usage: _matt_wagoget_2posbit () Get the wago attenuator value (double/security cabling). _matt_wagoget_1posbit Usage: _matt_wagoget_1posbit () Get the wago attenuator value (simple cabling). _matt_wagoget_alternate Usage: _matt_wagoget_alternate () Get the wago attenuator value - alternate cabling. _matt_read Usage: _matt_read () Read the wago module. Return the number of channels red if OK, -1 if error. _matt_put Usage: _matt_put (value) set the attenuator to value | ||||||
|