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