#!../../bin/linux-x86_64/xpsMotor < envPaths cd ${TOP} #dbLoadDatabase("../../dbd/WithAsyn.dbd") #WithAsyn_registerRecordDeviceDriver(pdbbase) dbLoadDatabase("dbd/xpsMotor.dbd") xpsMotor_registerRecordDeviceDriver(pdbbase) ### Motors #dbLoadTemplate "motor.substitutions.xps5" dbLoadTemplate "xpsMotor.substitutions" dbLoadTemplate "XPSAux.substitutions" 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", "164.54.160.55", 5001, 6, 10, 500, 0, 500) #XPSCreateController("XPS1", "129.57.37.26", 5001, 6, 10, 500, 0, 500) XPSCreateController("XPS1", "129.57.194.13", 5001, 6, 10, 500, 0, 500) asynSetTraceIOMask("XPS1", 0, 2) #asynSetTraceMask("XPS1", 0, 255) # asynPort, IP address, IP port, poll period (ms) #XPSAuxConfig("XPS_AUX1", "164.54.160.55", 5001, 50) XPSAuxConfig("XPS_AUX1", "129.57.194.13", 5001, 50) #asynSetTraceIOMask("XPS_AUX1", 0, 2) #asynSetTraceMask("XPS_AUX1", 0, 255) # XPS asyn port, axis, groupName.positionerName, stepSize #XPSCreateAxis("XPS1",0,"GROUP.PHI", "1000") #XPSCreateAxis("XPS1",1,"GROUP.KAPPA", "10000") #XPSCreateAxis("XPS1",2,"GROUP.OMEGA", "10000") #XPSCreateAxis("XPS1",3,"GROUP.PSI", "4000") #XPSCreateAxis("XPS1",4,"GROUP.THETA", "10000") #XPSCreateAxis("XPS1",5,"GROUP.NU", "4000") # XPS asyn port, max points, FTP username, FTP password # Note: this must be done after configuring axes #XPSCreateProfile("XPS1", 2000, "Administrator", "Administrator") cd ${TOP}/iocBoot/ioc${IOC} iocInit