#============================================================== # # Abs: Subsitution file for motion control IOCs # # Name: slowWireScannerControls.db # # Side: This script expectes the following # environment variables to be defined upon entry. # # Facility: LCLS Motion Controls # # Auth: 30-Oct-2019, N. Balakrishnan (NAMRATA) # Rev: dd-mmm-yyyy, Reviewer's Name (USERNAME) #-------------------------------------------------------------- # Mod: # 22-Jun-2020, N. Balakrishnan (NAMRATA) # Extract from sioc-ltuh-mc04 #============================================================== # Motor record file basic_asyn_motor.db { pattern { DEV , DESC , ASYNPORT , AXIS , DIR, VELO, VBAS, VMAX, ACCL, BDST, MRES , ERES, PREC, EGU , DHLM , DLLM } { "\$(U)" ,"\$(MAD)" , "\$(ASYN_MOTOR)", "\$(AXIS)" , Pos, 1000, 500 ,2000 ,0.1 , 0 , '2e-1' , 1 , 4 , um , 0 , 0 } } # Aerotech axis file aerotechAxisSupport.db { pattern { U , PORT , AXIS , MAD } { "\$(U)" , "\$(ASYN)" , "\$(AERO_AXIS)", "\$(MAD)" } } # Wirescannner high level app pvs file PhysicsAppSupport.db { pattern { area , location , mad , xout , xoffs , xin , uout , uin , yout , yoffs , yin , orient } { "\$(AREA)", "\$(UNIT)" ,"\$(MAD)", 12278 , 11278 , 10278 , 1000 , -1000 ,-16653 ,-17653 ,-18653 , -45 } } # Slow wire scanner LVDT support file aerotech_lvdt.template { pattern { U , MAD , PORT , AXIS , CHAN , coeff7 , coeff6 , coeff5 , coeff4 , coeff3 , coeff2 , coeff1 , coeff0 , hihi , lolo , high , low } { "\$(U)" ,"\$(MAD)" , "\$(ASYN)","\$(AERO_AXIS)" , "\$(AI_CHAN)" , 0.00070 , 0.000146978578352 ,-0.141701602559 ,0.00258269789188 ,10.8701319049,-0.605255667552 ,-2920.77686028, 7661.28068802, 35000 , -20000 , 33000 , -19000 } } # Slow wire scanner DB file slow_wire.template { pattern { dev , mad , evnt } { "\$(U)" ,"\$(MAD)" , 140 } } # Slow wire scanner autocorrect template file autoCorrection.template { pattern { dev } { "\$(U)" } } file motor_alarms.template { pattern { DEVICE , CALC , INPA , INPB , INPC } { "\$(U)", "(A>=B)?0:1" , "\$(U):MOTR.RBV", 3000 , 0 } }