Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
WBATT.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Positioning | ||||||
Description:
| ||||||
Documentation:
| ||||||
Macros:
Usage: _attinittable() Initialise the table of parameters for the existing attenuator types. attsetup Usage: attsetup [filename] Initialise the attenuator motor, answering questions or get the information from filename. attref Usage: attref <motor_mnemonic [calibration_step [sign]]> Find the "second filter". Set it as reference position (2) and step on it. The motor will move to a hardware limit switch and then try to find the second filter position with the help of the home switches. The direction of the movement sign is defined as 1 (from negative limit in positive direction) or -1 (positive limit in negative direction). The precision for the home switch search calibration_step [mm] could be defined - default value is 0.004 mm. | ||||||
Internal Macros: | ||||||
Usage: _attref (mnum) Internal function to find the "zero reference filter". The algorithm is based on the fact that the first home switch is passed when we move 0.5 filter distances (i.e.33mm/2 = 16mm) from the limit. The mnum is the axis ordinal number in the motors list. _att_gotolim Usage: _att_gotolim (mnum, sign) Go to positive or negative limit (positive means same sign as the step_size (positive motor movement). Show some animation during the move. Return the current motor position. _attswitchf Usage: _attswitchf (motor_mnemonic, motor_steps, parameter) If par=99, return the home switch status (0-active, 4-nonactive). Otherwise check if home switch signal is active (par=0) or not (par=4) and move the motor untill the desired status reached. Retunt the current motor position. _attswitchicepap Usage: _attswitchicepap (motor_number, motor_steps, parameter) If par=99, return the home switch status (0-active, 4-nonactive). Otherwise check if home switch signal is active (par=0) or not (par=4) and move the motor motor_steps untill the desired status reached. Retunt the current motor position. _attlimitswitchf Usage: _attlimitswitchf (motor_number, sign) Return the limit switch status (0-nonactive, 1=-active). Check low or high limit switch according to the sign. position. _show_waitf Usage: _show_waitf () Draw a bar while action goin on | ||||||
|