Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
CHECKAIR.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Positioning | ||||||
Description:
| ||||||
Documentation:
This is a macro package which can be used for moving motors where an airpad has to be switched on before the move The airpad will be switched on every time the motor is moved. The macro will wait a certain time until the air is inflated and inform the user. Before displaying a prompt the airpad will be switched off again. During counting ( for example in scans) the air will be switched off. The air will just be switched off if it has been switched on before by the macro set. If the airpad has been switched on explicitly by the user (for example with the special beamline macro airpad_on) the air will stay inflated even during scans. EXAMPLE ATTENTION The check if air is inflated is not really done. The only thing which is checked is the status of the digital output on the icv196 card. You should check if everything is working with airpad-on and airpad-off DEPENDENCIES | ||||||
Macros:
Usage: checkairsetup [device] [motormne1] [motormne2] [..] declares the motor [motormne1] to be moved only if air is inflated. The device is the device name of the ICV192 digital output channel to control the airpad airpad_on Usage: airpad_on switches the air on airpad_off Usage: airpad_off switches the air off | ||||||
Internal Macros: | ||||||
Usage: checkoff Waits for motor to stop and switches air off if we switched it on. checkair Usage: checkair <motor> checks if <motor> will move, air is switched on and switches it on if necessary. Will to be done before the move. checkifonair Usage: checkifonair Reads device and puts result in boolean ISONAIR checksavepos Usage: checksavepos <motor> Saves old position for <motor> checkswitchairon Usage: checkswitchairon <motor> Switches air on and remembers that we did it checkswitchairoff Usage: checkswitchairoff <motor> Switches air off if we switched it on internally | ||||||
|