Initial commit of SINQ EPICS Application
This commit is contained in:
6
iocBoot/Makefile
Normal file
6
iocBoot/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
TOP = ..
|
||||
include $(TOP)/configure/CONFIG
|
||||
DIRS += $(wildcard *ioc*)
|
||||
DIRS += $(wildcard as*)
|
||||
include $(CONFIG)/RULES_DIRS
|
||||
|
5
iocBoot/iocsinqEPICS/Makefile
Normal file
5
iocBoot/iocsinqEPICS/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = linux-x86
|
||||
TARGETS = envPaths
|
||||
include $(TOP)/configure/RULES.ioc
|
10
iocBoot/iocsinqEPICS/motor.substitutions.el734
Normal file
10
iocBoot/iocsinqEPICS/motor.substitutions.el734
Normal file
@ -0,0 +1,10 @@
|
||||
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}
|
||||
{NZ:mota:, 1, "m$(N)", "asynMotor", mota, 1, "sgu", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 1., 3, 20, -20, ""}
|
||||
{NZ:mota:, 2, "m$(N)", "asynMotor", mota, 2, "sgl", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 1., 3, 20, -20, ""}
|
||||
{NZ:mota:, 3, "m$(N)", "asynMotor", mota, 3, "sgd", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 1., 3, 20, -20, ""}
|
||||
{NZ:mota:, 4, "m$(N)", "asynMotor", mota, 4, "som", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 37, -37, ""}
|
||||
{NZ:mota:, 5, "m$(N)", "asynMotor", mota, 5, "sty", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 150, -149, ""}
|
||||
}
|
9
iocBoot/iocsinqEPICS/motor.substitutions.mcb4b
Normal file
9
iocBoot/iocsinqEPICS/motor.substitutions.mcb4b
Normal file
@ -0,0 +1,9 @@
|
||||
file "$(TOP)/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}
|
||||
{IOC:, 1, "m$(N)", "asynMotor", MCB4B1, 0, "Bottom", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, -.001, 3, 16, 0, ""}
|
||||
{IOC:, 2, "m$(N)", "asynMotor", MCB4B1, 1, "Top", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, -.001, 3, 16, 0, ""}
|
||||
{IOC:, 3, "m$(N)", "asynMotor", MCB4B1, 2, "Inboard", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, -.001, 3, 16, 0, ""}
|
||||
{IOC:, 4, "m$(N)", "asynMotor", MCB4B1, 3, "Outboard", mm, Pos, 2.0, 0.1, .2, 0, 1, .2, -.001, 3, 16, 0, ""}
|
||||
}
|
13
iocBoot/iocsinqEPICS/motor.substitutions.orion
Normal file
13
iocBoot/iocsinqEPICS/motor.substitutions.orion
Normal file
@ -0,0 +1,13 @@
|
||||
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}
|
||||
{OR:mota:, 1, "m$(N)", "asynMotor", mota, 1, "mom1", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 19, -13.4, ""}
|
||||
{OR:mota:, 2, "m$(N)", "asynMotor", mota, 2, "mom2", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 63, -23.4, ""}
|
||||
{OR:mota:, 3, "m$(N)", "asynMotor", mota, 3, "som", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 42, -27, ""}
|
||||
{OR:mota:, 4, "m$(N)", "asynMotor", mota, 4, "stt", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 150.99, -47.99, ""}
|
||||
{OR:mota:, 5, "m$(N)", "asynMotor", mota, 5, "sgl", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 15.05, -15.14, ""}
|
||||
{OR:mota:, 6, "m$(N)", "asynMotor", mota, 6, "sgu", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 15.06, -15.41, ""}
|
||||
{OR:mota:, 7, "m$(N)", "asynMotor", mota, 7, "chi", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 131.05, -33.01, ""}
|
||||
{OR:mota:, 8, "m$(N)", "asynMotor", mota, 8, "phi", degree, Pos, 2.0, 0.1, .2, 0, 1, .2, 0.001, 3, 360.94, -1., ""}
|
||||
}
|
11873
iocBoot/iocsinqEPICS/orion.log
Normal file
11873
iocBoot/iocsinqEPICS/orion.log
Normal file
File diff suppressed because it is too large
Load Diff
43
iocBoot/iocsinqEPICS/st.cmd
Executable file
43
iocBoot/iocsinqEPICS/st.cmd
Executable file
@ -0,0 +1,43 @@
|
||||
#!../../bin/linux-x86/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 EL734 motor controller
|
||||
drvAsynIPPortConfigure("serial1", "narziss-ts:3002",0,0,0)
|
||||
#drvAsynIPPortConfigure("serial1", "localhost:8080",0,0,0)
|
||||
EL734CreateController("mota","serial1",6);
|
||||
|
||||
### Motors
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=NZ:,R=serial1,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
dbLoadTemplate "motor.substitutions.el734"
|
||||
|
||||
|
||||
#--------- 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")
|
||||
dbLoadRecords("${TOP}/db/el737Record.db")
|
||||
|
||||
asynSetTraceIOMask("cter1",0,2)
|
||||
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq sncxxx,"user=koenneckeHost"
|
31
iocBoot/iocsinqEPICS/st.cmd.mcb4b
Normal file
31
iocBoot/iocsinqEPICS/st.cmd.mcb4b
Normal file
@ -0,0 +1,31 @@
|
||||
#errlogInit(5000)
|
||||
< envPaths
|
||||
# Tell EPICS all about the record types, device-support modules, drivers,
|
||||
# etc. in this build from CARS
|
||||
dbLoadDatabase("../../dbd/WithAsyn.dbd")
|
||||
WithAsyn_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
drvAsynIPPortConfigure("serial1", "164.54.160.36:4002",0,0,0)
|
||||
asynOctetSetInputEos("serial1",0,"\r")
|
||||
asynOctetSetOutputEos("serial1",0,"\r")
|
||||
asynSetTraceIOMask("serial1", 0, 2)
|
||||
#asynSetTraceMask("serial1", 0, 255)
|
||||
|
||||
MCB4BCreateController("MCB4B1", "serial1", 4, 100, 5000)
|
||||
|
||||
### Motors
|
||||
dbLoadTemplate "motor.substitutions.mcb4b"
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=IOC:,R=serial1,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
iocInit
|
||||
|
||||
# This IOC does not use save/restore, so set values of some PVs
|
||||
dbpf("IOC:m1.RTRY", "0")
|
||||
dbpf("IOC:m1.TWV", "0.1")
|
||||
dbpf("IOC:m2.RTRY", "0")
|
||||
dbpf("IOC:m2.TWV", "0.1")
|
||||
dbpf("IOC:m3.RTRY", "0")
|
||||
dbpf("IOC:m3.TWV", "0.1")
|
||||
dbpf("IOC:m4.RTRY", "0")
|
||||
dbpf("IOC:m4.TWV", "0.1")
|
34
iocBoot/iocsinqEPICS/std.cmd
Executable file
34
iocBoot/iocsinqEPICS/std.cmd
Executable file
@ -0,0 +1,34 @@
|
||||
###!../../bin/linux-x86/sinqEPICS
|
||||
# for debugging..................
|
||||
## 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 EL734 motor controller
|
||||
drvAsynIPPortConfigure("serial1", "narziss-ts:3002",0,0,0)
|
||||
EL734CreateController("mota","serial1",6);
|
||||
|
||||
### Motors
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=IOC:,R=serial1,PORT=serial1,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
dbLoadTemplate "motor.substitutions.el734"
|
||||
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq sncxxx,"user=koenneckeHost"
|
43
iocBoot/iocsinqEPICS/sto.cmd
Executable file
43
iocBoot/iocsinqEPICS/sto.cmd
Executable file
@ -0,0 +1,43 @@
|
||||
#!../../bin/linux-x86/sinqEPICS
|
||||
|
||||
## This is for ORION
|
||||
## 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 Delta Tau MCU
|
||||
#pmacAsynIPConfigure("mcu1","localhost:8080")
|
||||
pmacAsynIPConfigure("mcu1","orion-mcu1:1025")
|
||||
pmacCreateController("mota","mcu1",0,8,50,10000);
|
||||
pmacCreateAxes("mota",8);
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=OR:,R=mcu1,PORT=mcu1,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
dbLoadTemplate "motor.substitutions.orion"
|
||||
|
||||
|
||||
#--------- load EL737 counter box
|
||||
#drvAsynIPPortConfigure("cter1","orion-ts:3002",0,0,0)
|
||||
#dbLoadRecords("$(ASYN)/db/asynRecord.db","P=OZ:,R=cter1,PORT=cter1,ADDR=0,OMAX=80,IMAX=80")
|
||||
#dbLoadRecords("${TOP}/db/ORel737Record.db")
|
||||
|
||||
#asynSetTraceIOMask("cter1",0,2)
|
||||
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq sncxxx,"user=koenneckeHost"
|
Reference in New Issue
Block a user