43 lines
945 B
Python
43 lines
945 B
Python
|
|
|
|
def home_fast_table():
|
|
caput ("SAR-EXPMX1:ASYN.AOUT", "enable plc 1")
|
|
|
|
def get_fx_pos():
|
|
return caget("SAR-EXPMX:MOT_FX.RBV", 'f')
|
|
|
|
def set_fx_pos(pos):
|
|
return caput("SAR-EXPMX:MOT_FX.VAL", float(pos))
|
|
|
|
|
|
def get_fy_pos():
|
|
return caget("SAR-EXPMX:MOT_FY.RBV", 'f')
|
|
|
|
def set_fy_pos(pos):
|
|
return caput("SAR-EXPMX:MOT_FY.VAL", float(pos))
|
|
|
|
def get_ry_pos():
|
|
return caget("SAR-EXPMX:MOT_ROT_Y.RBV", 'f')
|
|
|
|
def set_ry_pos(pos):
|
|
return caput("SAR-EXPMX:MOT_ROT_Y.VAL", float(pos))
|
|
|
|
def get_cz_pos():
|
|
return caget("SAR-EXPMX:MOT_CZ.RBV", 'f')
|
|
|
|
def set_cz_pos(pos):
|
|
return caput("SAR-EXPMX:MOT_CZ.VAL", float(pos))
|
|
|
|
def get_cx_pos():
|
|
return caget("SAR-EXPMX:MOT_CX.RBV", 'f')
|
|
|
|
def set_cx_pos(pos):
|
|
return caput("SAR-EXPMX:MOT_CX.VAL", float(pos))
|
|
|
|
|
|
def set_mount_position():
|
|
set_fx_pos(0.0)
|
|
set_fy_pos(0.0)
|
|
set_ry_pos(0.0)
|
|
set_cz_pos(0.0)
|
|
set_cx_pos(0.0) |