New file from Nia Fong at SLAC

This commit is contained in:
MarkRivers
2012-09-12 17:20:32 +00:00
parent 451cd433c2
commit 6e2b491a3f
2 changed files with 56 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
< 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)
### Motors
# Motors substitutions, customize this for your motor
dbLoadTemplate "motor.substitutions.ims"
# Configure asyn communication port, first
# drvAsynIPPortConfigure(IOPortName, port, priority, disable auto-connect, no process EOS)
drvAsynIPPortConfigure("M06", "ts-b34-nw09:2101", 0, 0, 0 )
# Configure one controller per motor, each controller just has 1 axis
# motorPortName, portName, deviceName, movingPollPeriod, idlePollPeriod
ImsMDrivePlusCreateController("IMS1", "M06", "1", 200, 5000)
# Optional: Enable tracing
#asynSetTraceIOMask("IMS1",0,0)
asynSetTraceMask("IMS1",0,9)
# Initialize the IOC and start processing records
iocInit()
+27
View File
@@ -0,0 +1,27 @@
< 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)
### Motors
# Motors substitutions, customize this for your motor
dbLoadTemplate "motor.substitutions.smaractmcs"
# Configure each controller
drvAsynIPPortConfigure("TSP2","ts-b34-nw08:2102",0,0,0)
# Controller port, asyn port, number of axis, moving poll period, idle poll period
# smarActMCSCreateController(const char *motorPortName, const char *ioPortName, int numAxes, double movingPollPeriod, double idlePollPeriod);
smarActMCSCreateController("P0", "TSP2", 1, 0.020, 1.0)
# Controller port, axis number, controller channel
# smarActMCSCreateAxis(const char *motorPortName, int axisNumber, int channel)
smarActMCSCreateAxis("P0", 0, 1);
smarActMCSCreateAxis("P0", 0, 0);
asynSetTraceIOMask("XPS1", 0, 2)
iocInit()