#!../../bin/linux-x86_64/xpsMotor < envPaths cd ${TOP} dbLoadDatabase("dbd/xpsMotor.dbd") xpsMotor_registerRecordDeviceDriver(pdbbase) ### Motors dbLoadTemplate "db/xpsGoniometer.substitutions" dbLoadTemplate "db/XPS2_Aux_ai.substitutions" dbLoadRecords("db/standardScans.db","P=halldxps2:x:,MAXPTS1=2000,MAXPTS2=1000,MAXPTS3=1000,MAXPTS4=10,MAXPTSH=2000") dbLoadRecords("db/saveData.db","P=halldxps2:x:") dbLoadRecords("db/scanProgress.db","P=halldxps2:x:scanProgress:") #asSetFilename("ca_security.txt") # asyn port, IP address, IP port, number of axes, # active poll period (ms), idle poll period (ms), # enable set position, set position settling time (ms) XPSCreateController("XPS2", "129.57.194.11", 5001, 8, 10, 500, 0, 500) XPSAuxConfig("XPS_AUX1", "129.57.194.11", 5001, 50) # XPS asyn port, axis, groupName.positionerName, stepSize(1/0.001 mm) # XPS asyn port, axis, groupName.positionerName, stepSize(1/0.001 mm) XPSCreateAxis("XPS2",0,"X.MTM200PE1BV6", "1000") XPSCreateAxis("XPS2",1,"Y.MTM100PE1BV6", "1000") XPSCreateAxis("XPS2",2,"rX.BGS80PPV6" , "100000") XPSCreateAxis("XPS2",3,"rZ.URS75BPPV6" , "100000" ) XPSCreateAxis("XPS2",4,"rY.URS150BPPV6", "100000" ) iocInit cd ${TOP}/iocBoot/iocxpsMotor saveData_Init("saveData.req", "P=halldxps2:x:") seq &scanProgress, "S=halldxps2:x:,P=halldxps2:x:scanProgress:" dbpf("halldxps2:x:scan1.R1PV", "halldxps2:x.RBV") dbpf("halldxps2:x:scan1.P1PV", "halldxps2:x.VAL") dbpf("halldxps2:x:scan1.D01PV", "halldxps2:x.RBV") #dbpf("halldxps2:x:scan1.D01PV", "halldxps2:XPSAuxAi0.VAL") dbpf("halldxps2:x:scan1.D02PV", "halldxps2:XPSAuxAi1.VAL") dbpf("halldxps2:x:scan1.D03PV", "halldxps2:XPSAuxAi2.VAL") dbpf("halldxps2:x:scan1.D04PV", "halldxps2:XPSAuxAi3.VAL") dbpf("halldxps2:x:scan1.P1SP", "1") dbpf("halldxps2:x:scan1.P1EP", "3") dbpf("halldxps2:x:scan1.P1SI", "1.") #dbpf("halldxps2:x:scan1.NPTS", "10") dbpf("halldxps2:x:saveData_fileSystem", "/halldfs1/home/kakoyan") dbpf("halldxps2:x:saveData_subDir", "sscanData") dbpf("halldxps2:x:saveData_baseName", "data_x_") #