# ## Aerotech motor controller simple motor record database # file basic_asyn_motor_as.template { pattern { P , M , DESC , DTYP , DIR, VMAX, VELO, VBAS, ACCL, BDST, BVEL, BACC, PORT , ADDR, MRES , RDBD , PREC, EGU, UEIP, DHLM, DLLM, OFF, INIT } { "$(R):", "PSMOTOR", "Interspace PS motor", asynMotor, Pos, 10, 0.5, 0.01, 2 , 0 , 0.1, 2 , $(MPORT), 0 , 0.00005 , 0.0001, 4 , mm, 1 , 105.1, 9.50, 0 , "" } { "$(U):", "CM1MOTOR", "Interspace CAM1 motor", asynMotor, Pos, 1.0, 1.0, 0.01, 1 , 0 , 0.1, 2 , $(MPORT), 1 , 0.000375, 0.001 , 4 , deg, 0 , 360 , -360, 0 , "" } { "$(U):", "CM2MOTOR", "Interspace CAM2 motor", asynMotor, Pos, 1.0, 1.0, 0.01, 1 , 0 , 0.1, 2 , $(MPORT), 2 , 0.000375, 0.001 , 4 , deg, 0 , 360 , -360, 0 , "" } { "$(U):", "CM3MOTOR", "Interspace CAM3 motor", asynMotor, Pos, 1.0, 1.0, 0.01, 1 , 0 , 0.1, 2 , $(MPORT), 3 , 0.000375, 0.001 , 4 , deg, 0 , 360 , -360, 0 , "" } { "$(U):", "CM4MOTOR", "Interspace CAM4 motor", asynMotor, Pos, 1.0, 1.0, 0.01, 1 , 0 , 0.1, 2 , $(MPORT), 4 , 0.000375, 0.001 , 4 , deg, 0 , 360 , -360, 0 , "" } { "$(U):", "CM5MOTOR", "Interspace CAM5 motor", asynMotor, Pos, 1.0, 1.0, 0.01, 1 , 0 , 0.1, 2 , $(MPORT), 5 , 0.000375, 0.001 , 4 , deg, 0 , 360 , -360, 0 , "" } } # ## Readback for phase shifter including encoders and limit switches # file phaseShifterReadback.template { pattern {P , U , M , PORT , PROTO , ENC_OFF, SCAN } {"$(R):", "$(U):" ,"PSMOTOR", $(PORT), "Interspace.proto", 9.3282 , "1 second"} } # ## Retrieve Axes status # file aeroAxis.template { pattern { P , M , PROTO, ID , PORT , SCAN} {"$(U)" , "CM1MOTOR", "Interspace.proto", "cm1", $(PORT), "1 second" } {"$(U)" , "CM2MOTOR", "Interspace.proto", "cm2", $(PORT), "1 second" } {"$(U)" , "CM3MOTOR", "Interspace.proto", "cm3", $(PORT), "1 second" } {"$(U)" , "CM4MOTOR", "Interspace.proto", "cm4", $(PORT), "1 second" } {"$(U)" , "CM5MOTOR", "Interspace.proto", "cm5", $(PORT), "1 second" } {"$(U)" , "PSMOTOR" , "Interspace.proto", "ps" , $(PORT), "1 second" } } # ## Retrieve task status # file aeroTask.template { pattern {PORT , PROTO , SCAN , TASK} {$(PORT), "Interspace.proto", "1 second", "1"} {$(PORT), "Interspace.proto", "1 second", "2"} } ## Use EPICS Modbus module to retireve potentiometers voltages from labJackT7 file labJackT7PotReadback.template { pattern{ POT, DESC, PORT , OFFSET} { "CM1", "CAM1 pot readback", $(LJPORT), 18 } { "CM2", "CAM2 pot readback", $(LJPORT), 16 } { "CM3", "CAM3 pot readback", $(LJPORT), 14 } { "CM4", "CAM4 pot readback", $(LJPORT), 4 } { "CM5", "CAM5 pot readback", $(LJPORT), 6 } { "LP1", "LP-Y-US readback", $(LJPORT), 8 } { "LP2", "LP-X-US readback", $(LJPORT), 10 } { "LP3", "LP-Y-C readback", $(LJPORT), 12 } { "LP4", "LP-X-DS readback", $(LJPORT), 0 } { "LP5", "LP-Y-DS readback", $(LJPORT), 2 } } ## Use EPICS Modbus module to retrieve potentiometers excitation voltage from LabJackT7 file aeroPotExcitationRef.db { pattern { PORT , SCAN } { $(LJPORT), ".2 second" } } ## Use StreamDevice to reset the controller and to acknowledge all faults file aeroController.template { pattern { PORT , PROTO } { $(PORT), "Interspace.proto" } } ## Use calibration data to convert pot readings to angles file aeroCamPotCalc.template { pattern { CAM } { "CM1" } { "CM2" } { "CM3" } { "CM4" } { "CM5" } } ## Transformation of coordinates from user (x,y) to motor angles and reverse file aerotechCamTransformation.db { pattern { SCAN } { "5 second" } } ## Control the gap of the phase shifter file phaseShifterGapControl.template { pattern {P , M , PROTO , PORT } {"$(R)", "PSMOTOR" , "Interspace.proto", $(PORT)} } ## Phase shifter phase integral file pi_values.db { pattern {P ,PREC} {"$(R):" , 5 } } file spline.template { pattern {P , M , DIR , TNAME , IN , OUT , I , Y , X , LN} {"$(R):" , "DPI2GSpl" , 0 , "pi2gap" , "PIDes" , "GAPDes" , PI , "GAP" , "PI", NPP} {"$(R):" , "DG2PISpl" , 1 , "pi2gap" , "GAPDes" , "PIDes" , GAP, "GAP" , "PI", NPP} {"$(R):" , "AG2PISpl" , 1 , "pi2gap" , "EncRbck", "PIAct" , GAP, "GAP" , "PI", CP} }