SPEC Macros

Contents:

 

wbs: (White Beam Slit) 1

monosec: (2nd Monochromator Crystal) 2

tmirror: (Toroidal Mirror) 2

smirror: (Secondary, Cut-Off Mirror) 3

Btable: (B-hutch Experimental Table) 3

To Plot Flux vs. Time: 4

Bslit: (9 BM B Slits) 4

Shutters. 5

9BM - Feedback: 5

 

 

 

wbs: (White Beam Slit)

                     

9bm wbs:

wbsvgapa

Adjust absolute vertical gap

 

wbsvgapr

Adjust relative vertical gap

 

wbsvcena

Move absolute vertical center

 

wbsvcenr

Move relative vertical center

 

wbsvcensc

Scan relative vertical center

 

wbshgapa

Adjust absolute horizontal gap

 

wbshgapr

Adjust relative horizontal gap

 

wbshcensc

Scan relative horizontal center

                     

Utility:

wbs

Print this message

 

wwbs

Where wbs

 

 

monosec: (2nd Monochromator Crystal)

                     

monosec:

twth

Move relative theta

 

twinit

Initialize parameters of serial interface

 

twinitth

Initialize th position counter

                                             

Utility:

monosec

Print this message

 

twpos

Where 2nd crystal positions

       

 

tmirror: (Toroidal Mirror)

                     

t – mirror:

tmiry

Move relative vertical (y)

 

tmirysc

Scan relative vertical

 

tmirx

Move relative horizontal (x)

 

tmirxsc

Scan relative horizontal

 

tmirpitch

Pitch (rotation around x-axis)

 

tmirpitchsc

Scan pitch motion

 

tmiryaw

Yaw (rotation around y-axis)

 

tmiryawsc

Scan yaw motion

                     

Utility:

tmirror

Print this message

 

wtmirror

Where mirror motors

 

 

smirror: (Secondary, Cut-Off Mirror)

                     

s – mirror:

smiry

Move relative vertical (y)

 

smirysc

Scan relative vertical

 

smirx

Move relative horizontal (x)

 

smirxsc

Scan relative horizontal

 

smirpitch

Pitch (rotation around x-axis)

 

tmirpitchsc

Scan tilt motion

                     

Utility:

smirror

Print this message

 

wsmirror

Where mirror motors

 

 

Btable: (B-hutch Experimental Table)

                     

9 BMB table:

btabley

Move relative vertical (y)

 

btableysc

Scan relative vertical

 

btablex

Move relative horizontal (x)

 

btablexsc

Scan relative horizontal

 

btablepitch

Pitch (rotation around x-axis)

 

btablepitchsc

Scan tilt motion

 

btableroll

Adjust relative horizontal gap

 

btablerollsc

Move absolute horizontal center

                     

Utility:

btable

Print this message

 

wbtable

Where mirror motors

 

 

To Plot Flux vs. Time:

 

timescan

arg1

Count Time

 

arg2

Sleep Time

 

 

To end: <cntrl c>

 

 

Bslit: (9 BM B Slits)

                     

Bslit:

bslvgapa

Adjust absolute vertical gap

 

bslvgapr

Adjust relative vertical gap

 

bslvcena

Move absolute vertical center

 

bslvcenr

Move relative vertical center

 

bslvcensc

Scan relative vertical center

 

bslhgapa

Adjust absolute horizontal gap

 

bslhgapr

Adjust relative horizontal gap

 

bslhcena

Move absolute horizontal center

 

bslhcenr

Move relative horizontal center

 

bslhcensc

Scan relative horizontal center

                     

Utility:

bslit

Print this message

 

wbsl

Where bsl

 

Note: “+” opens the slits, “-” closes the slits

 

 

Shutters

                     

Front End

f_open

Open front end shutter (A-station shutter)

 

f_close

Close front end shutter (A-station shutter)

Photon

f_open

Open photon shutter (B-Station shutter)

 

f_close

Close photon shutter (B-Station shutter)

 

 

9BM - Feedback:

                     

Feedback:

yfbon

Set DAC Channel YFB to 5.0 V

 

yfboff

Set DAC Channel YFB to 0.0 V

 

xfbon

Set DAC Channel XFB to 5.0 V

 

xfboff

Set DAC Channel XFB to 0.0 V

                     

Utility:

feedback

Print this message

 

wfeedback

DAC Channel Status