A first sort of working version of a asyn driver for the Nanotoec SMCI
motors. Homing still needs more testing
This commit is contained in:
6
iocBoot/iocsinqEPICS/envPaths
Normal file
6
iocBoot/iocsinqEPICS/envPaths
Normal file
@ -0,0 +1,6 @@
|
||||
epicsEnvSet("ARCH","linux-x86-debug")
|
||||
epicsEnvSet("IOC","iocsinqEPICS")
|
||||
epicsEnvSet("TOP","/afs/psi.ch/project/sinqdev/sinqepicsapp")
|
||||
epicsEnvSet("EPICS_BASE","/usr/local/epics")
|
||||
epicsEnvSet("ASYN","/usr/local/epics/support/asyn-4-18")
|
||||
epicsEnvSet("MOTOR","/usr/local/epics/support/motor-6-7")
|
8
iocBoot/iocsinqEPICS/motor.substitutions.nanotec
Normal file
8
iocBoot/iocsinqEPICS/motor.substitutions.nanotec
Normal file
@ -0,0 +1,8 @@
|
||||
file "$(MOTOR)/db/basic_asyn_motor.db"
|
||||
{
|
||||
pattern
|
||||
{P, N, M, DTYP, PORT, ADDR, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT}
|
||||
{KM36:nano:, 1, "m$(N)", "asynMotor", nano, 1, "m1", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, .0001, 3, 30, -30, "1"}
|
||||
{KM36:nano:, 2, "m$(N)", "asynMotor", nano, 2, "m2", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, .0001, 3, 60, -60, "10"}
|
||||
{KM36:nano:, 3, "m$(N)", "asynMotor", nano, 3, "m3", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, .0001, 3, 100, -100, "9"}
|
||||
}
|
37
iocBoot/iocsinqEPICS/nanotest.cmd
Executable file
37
iocBoot/iocsinqEPICS/nanotest.cmd
Executable file
@ -0,0 +1,37 @@
|
||||
#!../../bin/linux-x86-debug/sinqEPICS
|
||||
|
||||
|
||||
## You may have to change sinqEPICS to something else
|
||||
## everywhere it appears in this file
|
||||
|
||||
< envPaths
|
||||
|
||||
cd ${TOP}
|
||||
|
||||
## Register all support components
|
||||
dbLoadDatabase "dbd/sinqEPICS.dbd"
|
||||
#dbLoadDatabase "dbd/sinq.dbd"
|
||||
sinqEPICS_registerRecordDeviceDriver pdbbase
|
||||
|
||||
## Load record instances
|
||||
#dbLoadRecords("db/xxx.db","user=koenneckeHost")
|
||||
|
||||
|
||||
#---------- load Nanotec motor controller
|
||||
#drvAsynIPPortConfigure("serial1", "narziss-ts:3002",0,0,0)
|
||||
drvAsynIPPortConfigure("serial1", "localhost:2020",0,0,0)
|
||||
NanotecCreateController("nano","serial1",3,"1,10,9");
|
||||
|
||||
### Motors
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=KM36:,R=serial1,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
dbLoadTemplate "motor.substitutions.nanotec"
|
||||
|
||||
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq sncxxx,"user=koenneckeHost"
|
Reference in New Issue
Block a user