forked from epics_driver_modules/motorBase
New file from Nia Fong at SLAC
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user