Bender

The homing sequence on the bender (MC04, channel 6) seems to have the wrong parity.  Instead of moving to the negative limit, it moves to the positive limit.

Rather than running the homing procedure, step to the negative limit.  This can be done via EPICS or by issuing the #6j- command in the Pewin terminal.  Adam Young tells me that the home marker is about +6000 steps from the negative limit, so move there and zero out the display -- #6HMZ.  This will leave the bender reporting to EPICS that it is not homed, but it can be moved sensibly to a bend value.

190,000 steps seems to be about right for the XAFS table.


End of Table

In [563]: RE(move_m2(4.2))

The M2 target is 4.20 mRad relative to the beam incident on M2

Move M2 pitch to 2.80 mRad
         BCT:          36.05
         xafs_yu:      119.84
         xafs_yd:      118.22
         (correction): 0.00

q to quit -- any other key to begin moving motors >
Out[563]: ()

In [588]: m2.wh()
M2:
        vertical =  -4.349 mm           YU  =  -6.152
        lateral  =   0.000 mm           YDO =  -2.546
        pitch    =   2.800 mrad         YDI =  -2.546
        roll     =   0.000 mrad         XU  =  -0.129
        yaw      =   0.200 mrad         XD  =   0.129


In [589]: dm3_bct.user_readback.value
Out[589]: 34.6407

+ bender at 200,000


XAFS position

Beam profile, focused at XAFS position (rotated by +90), each unit is 50 microns
In [703]: RE(move_m2(4.7))

The M2 target is 4.70 mRad relative to the beam incident on M2

Move M2 pitch to 2.30 mRad
         BCT:          25.14
         xafs_yu:      108.30
         xafs_yd:      105.53
         (correction): 0.00

q to quit -- any other key to begin moving motors >
Out[703]: ()

In [702]: m2.wh()
M2:
        vertical =  -4.349 mm           YU  =  -5.830
        lateral  =   0.000 mm           YDO =  -2.868
        pitch    =   2.300 mrad         YDI =  -2.868
        roll     =   0.000 mrad         XU  =  -0.129
        yaw      =   0.200 mrad         XD  =   0.129

In [704]: dm3_bct.user_readback.value
Out[704]: 23.7383

bender at 210,000