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 [number] for BL-3A
FOURC> umv att [number]

FOURC> atten [thickness (mm)] (0-9.9mm [delta: 0.1mm])
FOURC>             (0-1mm [delta: 0.05mm]) for BL-4C
     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>

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]

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>

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

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

SPEC
FOURC> timepix_init

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> array_dump("file_name", _a_data_) (To save 1D data)

To change parameters
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_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> onze_get_last_image_file

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 0 0 255 255
FOURC> p t_CEN
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>