#!../../bin/linux-x86_64/xpsMotor < envPaths cd ${TOP} dbLoadDatabase("dbd/xpsMotor.dbd") xpsMotor_registerRecordDeviceDriver(pdbbase) ### Motors dbLoadTemplate "db/xpsMotor_1.substitutions" dbLoadTemplate "db/XPSAux_ai.substitutions" dbLoadRecords("db/standardScans.db","P=halldxps3:m1:,MAXPTS1=2000,MAXPTS2=1000,MAXPTS3=1000,MAXPTS4=10,MAXPTSH=2000") dbLoadRecords("db/saveData.db","P=halldxps3:m1:") dbLoadRecords("db/scanProgress.db","P=halldxps3:m1: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("XPS1", "129.57.194.13", 5001, 8, 10, 500, 0, 500) #XPSCreateController("XPS1", "129.57.37.26", 5001, 8, 10, 500, 0, 500) XPSAuxConfig("XPS_AUX1", "129.57.194.13", 5001, 50) # XPS asyn port, axis, groupName.positionerName, stepSize(1/0.00215 mm) XPSCreateAxis("XPS1",0,"M.P1", "465.11627") # iocInit cd ${TOP}/iocBoot/iocxpsMotor saveData_Init("saveData.req", "P=halldxps3:m1:") seq &scanProgress, "S=halldxps3:m1:,P=halldxps3:m1:scanProgress:" dbpf("halldxps3:m1:scan1.R1PV", "halldxps3:m1.RBV") dbpf("halldxps3:m1:scan1.P1PV", "halldxps3:m1.VAL") dbpf("halldxps3:m1:scan1.D01PV", "halldxps3:XPSAuxAi0.VAL") dbpf("halldxps3:m1:scan1.D02PV", "halldxps3:XPSAuxAi1.VAL") dbpf("halldxps3:m1:scan1.D03PV", "halldxps3:XPSAuxAi2.VAL") dbpf("halldxps3:m1:scan1.D04PV", "halldxps3:XPSAuxAi3.VAL") dbpf("halldxps3:m1:scan1.P1SP", "1") dbpf("halldxps3:m1:scan1.P1EP", "10") dbpf("halldxps3:m1:scan1.NPTS", "10") dbpf("halldxps3:m1:saveData_fileSystem", "/halldfs1/home/kakoyan") dbpf("halldxps3:m1:saveData_subDir", "./sscanData") dbpf("halldxps3:m1:saveData_baseName", "data_")