The SINQ IOC working in the ESS EPICS environment
This commit is contained in:
@ -1,41 +1,42 @@
|
||||
#!../../bin/linux-x86/sinqEPICS
|
||||
#!/opt/amor/epics/sinqEPICS
|
||||
|
||||
## You may have to change sinqEPICS to something else
|
||||
## everywhere it appears in this file
|
||||
|
||||
cd /opt/amor/epics
|
||||
|
||||
< 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 EL734 motor controller
|
||||
drvAsynIPPortConfigure("serial1", "narziss-ts:3002",0,0,0)
|
||||
#drvAsynIPPortConfigure("serial1", "localhost:8080",0,0,0)
|
||||
EL734CreateController("mota","serial1",6);
|
||||
#---------- connect to controllers
|
||||
drvAsynIPPortConfigure("serial1", "localhost:60001",0,0,0)
|
||||
drvAsynIPPortConfigure("serial2", "localhost:60002",0,0,0)
|
||||
drvAsynIPPortConfigure("serial3", "localhost:60003",0,0,0)
|
||||
EL734CreateController("mota","serial1",12);
|
||||
EL734CreateController("motb","serial2",12);
|
||||
EL734CreateController("motc","serial3",12);
|
||||
|
||||
### Motors
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=NZ:,R=serial1,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=SQ:AMOR:,R=serial1,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=SQ:AMOR:,R=serial2,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=SQ:AMOR:,R=serial3,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
dbLoadTemplate "motor.substitutions.el734"
|
||||
dbLoadTemplate "mota.substitutions"
|
||||
dbLoadTemplate "motb.substitutions"
|
||||
dbLoadTemplate "motc.substitutions"
|
||||
|
||||
|
||||
#--------- load EL737 counter box
|
||||
drvAsynIPPortConfigure("cter1","narziss-ts:3003",0,0,0)
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=NZ:,R=cter1,PORT=cter1,ADDR=0,OMAX=80,IMAX=80")
|
||||
drvAsynIPPortConfigure("cter1","localhost:62000",0,0,0)
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=SQ:AMOR:,R=cter1,PORT=cter1,ADDR=0,OMAX=80,IMAX=80")
|
||||
dbLoadRecords("${TOP}/db/el737Record.db")
|
||||
|
||||
asynSetTraceIOMask("cter1",0,2)
|
||||
#asynSetTraceIOMask("cter1",0,2)
|
||||
|
||||
iocInit
|
||||
|
||||
|
Reference in New Issue
Block a user