SPEC reference manual (BL-3A, 4C)

Staff: H. Nakao (PHS 4868)

Fourc circle diffractometer

# fourc

or
# fourc -f

# fourc -l [filename]

To see the log
# tail -f log

ION Chamber

FOURC> getgain
FOURC> setgain0 2.0E-7
FOURC> setgain1 2.0E-9
(We can use only gain "2x10^(x)". Only "2" is available.)

FOURC> autorange0 [0(OFF)/1(ON)]]
FOURC> autorange1 [0(OFF)/1(ON)]]

FOURC> get_PLC
FOURC> set_PLC 10

FOURC> pa_svc_start
FOURC> pa_svc_stop

FOURC> reset_stars
(Please enter this command, when pa0 and pa1 values are strange.)

X-ray energy

FOURC> getE
FOURC> moveE [keV]

Monochromator

FOURC> chk_thresh=-1
FOURC> plotselect pa0 (mon)
FOURC>
FOURC>
FOURC> dscan DTH -0.02 0.02 30 1
FOURC> umv DTH CEN

Slit control

FOURC> slits
(h1*v1,cen) 0.30*0.30,-0.00,-0.00
atten 0
(h2*v2,cen) 1.00*1.00,0.00,0.00
(h3*v3,cen) 10.00*10.00,0.00,0.00

FOURC> nslit1 10 10
FOURC> nslit2 10 10
FOURC> nslit3 10 10

Slit1, 2 alignment
FOURC> slit1;slit2

Attenuator control

FOURC> atten [thickness (mm)] (0-9.9mm [delta: 0.1mm])
FOURC>             (0-1mm [delta: 0.05mm])
     att1 [0:0mm, 1:1mm, ... , 9:9mm, -1:0.05mm]
     att2 [0:0mm, 1:0.1mm, ... , 10:1.0mm]
FOURC> umv att1 [number] att2 [number]

FOURC>
FOURC> _att_con_ = 0 or 1
FOURC> _d_att_ = 0.1 (Delta-thickness=0.1mm)
FOURC> _att_max_= 20000
FOURC> _att_min_= 1000
(Notice: The counter defined by "DET" is used in this macro.)
FOURC>

Solenoid shutter control

FOURC> s_shutter_open
FOURC> s_shutter_close
FOURC> s_shutter_status
FOURC>
FOURC> ssc_init
FOURC>

4-cicle diffractometer

FOURC> wh
H K L = 1.0000 0.1500 -0.5000
Alpha = 0 Beta = -30 Azimuth = -180
Omega = 0 Lambda = 1.54

Two Theta Theta Chi Phi
30.0000 0.0000 90.0000 0.0000

FOURC> wa
(to check current positions of all)

FOURC> dscan tth -0.2 0.2 20 1
FOURC> umv tth CEN (pl_xMAX)
FOURC>
FOURC> th2th -0.2 0.2 30 1
FOURC> an_cen (or an_max)
FOURC> uan [tth_angle] [th_angle]
FOURC>
FOURC> umv [motor_name] [angle_abs]
FOURC> umvr [motor_name] [angle_rel]

FOURC> or0 [h] [k] [l]
FOURC> or1 [h] [k] [l]
FOURC> or_swap

1.FOURC> reflex_beg
Reflections file (reflex)?
FOURC> (find and move to a reflection ...)
FOURC> reflex 2 2 0
FOURC> (find and move to another reflection ...)
FOURC> reflex 2 0 2
FOURC> ...

FOURC> reflex_end
Type "qdo reflex" to recalculate orientation matrix.
FOURC> qdo reflex
FOURC> calcL
FOURC> pa

 

<Macro>
FOURC> qdo [macro file name]
FOURC> prdef [command name]

For example,
[Macro file(test.mac)]
def test_command '{
 wh; pa
}'

FOURC> qdo test.mac
FOURC> prdef test_command
FOURC> test_command

Motor setting

To check limits and current positions
FOURC> wm [motor_name]

To change present value
FOURC> set [motor_name] [value]

To change limit settings
FOURC> set_lm [motor_name] [low_limit] [high_limit]

Cryostat

FOURC> _LTC_is_on_ = 1
FOURC> te
FOURC> te 45 (to set target temperature)

FOURC> reset_cryocon (to reset communication with cryocon)
FOURC> cryo_ctrl_on (Control ON)
FOURC> cryo_ctrl_off (Control OFF)
FOURC> cryo_get_ctrl_status
FOURC> cryo_get_ctrl_mode
To change control mode
FOURC> PID
FOURC> RAMP
FOURC> cryo_get_pid
FOURC> cryo_set_pid [Loop (1 or 2)] [P] [I] [D]
FOURC> set_mheater [Heater Range (1:HI 2:MID 3:LOW)] [Loop (1 or 2)]
FOURC>

To compensate thermal expantion of the cold head roughly
   c_z(T)=(T-T0)*slope+c_z(T0): slope depends on cryostat
[cryo-?:Iwatani(BL-4C)]
slope: 0.00153
FOURC> umv c_z (T-T0)*0.00153-2.726

[cryo-3:Daikin(BL-4C)]
slope: 0.00233 (50K-250K)

FOURC> cryo_get_input_source_info
FOURC> cryo_get_overtemp_info
FOURC> cryo_get_cal_table_name

FOURC> cryo_srv_status (cryocon logger status)
FOURC> cryo_srv_start (cryocon logger start)
FOURC> cryo_srv_stop (cryocon logger stop)

SDD

FOURC> sdd_measure 10

FOURC>
FOURC> sdd_data_get
FOURC> sdd_data_save (file: ./tmp.dat)

Timepix [256x256 pixels, Pixel size: 55umx55um]

How to start up:
PC(Timepix): boot
Login: nakao
timepix.sh in terminal [端末]

SPEC
FOURC> timepix_init
     timepix_init (Type again, if you see the message, "Connection restored" )

FOURC> _timepix_on_= 1 (or 0)
FOURC> timepix_auto_save_on
FOURC> timepix_auto_save_off

For ct
FOURC> _1_x1_ = 0; _1_y1_ = 0; _1_x2_ = 255; _1_y2_ = 255;
FOURC> _2_x1_ = 0; _2_y1_ = 0; _2_x2_ = 255; _2_y2_ = 255;
FOURC> _3_x1_ = 0; _3_y1_ = 0; _3_x2_ = 255; _3_y2_ = 255;
FOURC> _4_x1_ = 0; _4_y1_ = 0; _4_x2_ = 255; _4_y2_ = 255;

To get oscillation photograph
FOURC> atten 0;timepix_os th A[th]-0.5 A[th]+0.5 20 2;atten 4

To get 1D data
FOURC> timepix_get_1d [0 or 1] [x1] [y1] [x2] [y2]
FOURC> p t_CEN
FOURC> plot_data_save [filename] (To save 1D data)
FOURC> [array_dump("file_name", _a_data_) (To save 1D data)]

To change parameters
FOURC> timepix_get_file_num
FOURC> timepix_set_file_num 2
FOURC> timepix_get_imagefile_prefix
FOURC> timepix_set_imagefile_prefix user_2_
FOURC> timepix_set_image_path /home2/timepix/data
FOURC> timepix_last_file_para

FOURC> timepix_get_last_image_file
FOURC> timepix_set_last_image_file /home2/timepix/data/user_2_70.tif
FOURC> timepix_get_THL
FOURC> timepix_set_THL 315

FOURC> timepix_initialize (Camera initialize after Camera power-on)
FOURC> timepix_init (STARS connection initialize)

Timepix (advanced usage)
To view 2D image
# export LANG=C; /home/nakao/bin/onze &
# fourc
FOURC> timepix_image_view
FOURC> timepix_image_view [num]

To get "Image_sum"
FOURC> _timepix_image_sum_on_ = 1
FOURC> atten 0;lup th -0.3 0.3 30 1;atten 4
FOURC> fmt_write("lup_th.tiff","tiff",image_sum)
FOURC> image_sum_1d [0 or 1] [x1] [y1] [x2] [y2] [bg] (for image_sum)
FOURC> p t_CEN
FOURC> _2d_to_1d [0 or 1] [x1] [y1] [x2] [y2] [bg] (for image_data)
FOURC> p t_CEN
FOURC> plot_data_save [filename] (To save 1D data)
FOURC>
delta tth 0.5 <----> delta pixel (dp)
FOURC> d_length = dp*0.055/sin(0.5/180.*PI)
FOURC>
FOURC> find_dcen
FOURC> find_ocen
FOURC> timepix_cen
FOURC>

FOURC> spec -s (Simulation mode)
FOURC>

For debug

FOURC> fon dlog
FOURC> debug 192
FOURC> reconfig
FOURC> debug 128

# use commands that display anomalies

FOURC> debug 0
FOURC> fclose dlog
FOURC>

Remote control Tips

ssh user@bl-3a-rt.kek.jp

[ssh port forwarding]
ssh -L 8080:192.168.1.209:80 user@bl-3a-rt.kek.jp
--> Web address: [localhost:8080]