1. Hook up PMAC tuning computer to PMAC upstream of the Aperture stand.
2. Back up the coordinate systems, if it has not already been done, using the executive backup command.
3. Undefine the coordinate system with the following commands in the PMAC executive terminal window:
&1#1->0#2->0 &2#3->0#4->0
4. Ensure that motor 1 is not on a limit. Drive motor 2 positive until it goes into the positive limit. Motor 2 moves negative from its home position, so the most positive position is the home position. Home the motor with homez. Move motor 2 -50,000 steps to clear limit hysteresis, and then to -30,000, and again home the motor with homez.
5. Drive motor 1 to its negative limit, home it with homez, move it to 50,000 steps, move it back to 30,000 steps, and home it again with homez.
6. Restore the coordinate systems, using the executive restore command.
7. Drive the motors using the coordinate system to center the aperture with an opening of 2mm x 4mm. This is done with the following commands:
&1 Q51=0 Q52=2000 b6r &2 Q51=0 Q52=4000 b6r
Positions after the drive, in steps:
#1 713467 #2 -356734 #3 426933 #4 -213467
Note that since the resolution of the drive is 123 steps per micron, there may be a slight discrepancy in these positions.