# Database for Compton Calorimeter positions # # V.K. July 16, 2012 # Macro paramters: # $(P) - XPS Controller name (P=halldxps4:) # $(R) - Motor (R=m1) #alias("$(P)$(R)","$(pref)hd:compcal:motor") record(ao,"$(pref)hd:compcal:motionCondit"){ field(DTYP,"Soft Channel") field(VAL,"0.1") field(SCAN, "Passive") } record(ao,"$(pref)hd:compcal:home"){ field(DTYP,"Soft Channel") field(VAL,"0.0") field(PINI, "YES") field(SCAN, "Passive") } record(ao,"$(pref)hd:compcal:home:proc"){ field(DTYP,"Soft Channel") field(DOL,"$(pref)hd:compcal:home") field(OMSL,"closed_loop") field(OUT,"$(P)$(R).VAL PP NMS") field(SCAN, "Passive") } record(calc, "$(pref)hd:compcal_at_home") { field(INPA, "$(P)$(R).RBV") field(INPB, "$(pref)hd:compcal:home") field(INPC, "$(P)$(R).DMOV") field(INPE, "$(pref)hd:compcal:motionCondit") field(SCAN, ".2 second") field(CALC, "(ABS(A-B)