Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
PIEZO.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
This macro set let you use a piezo as a motor in spec. As this function is implemented on the macro level - not all commands will work EXAMPLE DEPENDENCIES To use a piezo as a motor the following conditions have to be fulfilled: | ||||||
Macros:
Usage: piezoadd [No of piezos] [piezo1 motor name] [piezo1 device name] ... Adds the given piezos to the already defined piezos piezosetup Usage: piezosetup [No of piezos] [piezo1 motor name] [piezo1 device name] ... ... [piezo n motor name] [piezo n device name] Sets up the piezo motor. You have to do that before you can use the piezo. If you don't provide the dev name you will be asked for it . ATTENTION You have to enclose the device name with "" otherwise the / in the name will be interpreted as a division. piezosafety Usage: piezosafety <step delay time or 0> <max. jump> <step size> We test if the move is bigger than <max jump> and if yes move in steps of <step size> to the requested value. The time between each step is given in <step delay time>. If this time is equal to 0 then the safety service is desactivated. piezoon Usage: piezoon Defines pseudo motors for piezos. Switches these motors on. Move of pseudo motor will move piezos. piezooff Usage: piezooff Switches all piezos off. Motor can be moved but no effect on piezos | ||||||
Internal Macros: | ||||||
Usage: _piezogetangles <mnemonic> <esrf device name> Read valueback from piezo device server and put it into A array _piezomove Usage: _piezomove <mne> <device-name> <step delay time or none> <max. jump> <step size> Moves piezo . If 3rd parameter is none or 0 we will directly go to the new value. If the 3 parameter contains a time we test if the move is bigger then <max jump> and if yes move in steps of <step size> to the requested value. The time between each step is given in <step delay time>. | ||||||
|