Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
dac_and_relay_magnet_ps.mac | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
Change a dac output together with a relay which changes the polarity on a special box borrowed from ID24. In the config, place yourself on the motor. The DAC needs defining in the config, (hit "p", enter the word "dac" to the left and the taco name to the right. Type `a`! Then enter the relay name entering relay to the left and the relay taco name to the right. Type `a`! For the config value factor enter the word "factor" to the left and the value to the lefts. SETUP In the config editor in the "Motor and Counter Device Configuration" page (hit "D") create a motor controller like follows: MOTORS DEVICE ADDR <>MODE NUM <>TYPE YES DACREL - 1 Macro Motors Then create the macro motor: Number: <>Controller 0: MAC_MOT It is advisable to set the backlash for the macro motor to 0. ATTENTION After a fresh start the macros needed for the macro motor are most likely not available, which necessitates a reconfig first thing. The macros are not conceived for more than one motor. DEPENDENCIES The file dac_and_relay_magnet_ps.mac has to be read in. When read in by the IDXXsetup.mac or the private setup of a particular spec, the fresh start has no access to the _config function. Here, a reconfig is needed before the motors work! | ||||||
Macros:
Usage: dacrel_debug toggle debug mode for the present macros. dacrel_simu Usage: dacrel_simu toggle debug mode for the present macros. | ||||||
Internal Macros: | ||||||
Usage: DACREL_config(mnum,type,unit,mod,chan) Called by spec DACREL_cmd Usage: DACREL_cmd(mnum, cmd, sp1, sp2, p3) Called by spec | ||||||
|