forked from epics_driver_modules/motorBase
Renaming NoMPF/WithMPF NoAsyn/WithAsyn.
This commit is contained in:
@@ -12,15 +12,15 @@ To build this Newport MM4000/5/6 example;
|
||||
|
||||
- in <motor>/motorApp/Makefile: #DIRS += NewportSrc must be uncommented.
|
||||
|
||||
- in <motor>/motorExApp/Makefile: #DIRS += WithMPF must be uncommented.
|
||||
- in <motor>/motorExApp/Makefile: #DIRS += WithAsyn must be uncommented.
|
||||
|
||||
- in <motor>/motorExApp/WithMPF/Makefile: uncomment both,
|
||||
#!WithMPF_LIBS += Newport
|
||||
- in <motor>/motorExApp/WithAsyn/Makefile: uncomment both,
|
||||
#!WithAsyn_LIBS += Newport
|
||||
and,
|
||||
#!WithMPFVx_LIBS += Newport
|
||||
#!WithAsynVx_LIBS += Newport
|
||||
|
||||
- in both <motor>/motorExApp/WithMPF/WithMPFInclude.dbd, and in
|
||||
<motor>/motorExApp/WithMPF/WithMPFVxInclude.dbd
|
||||
- in both <motor>/motorExApp/WithAsyn/WithAsynInclude.dbd, and in
|
||||
<motor>/motorExApp/WithAsyn/WithAsynVxInclude.dbd
|
||||
uncomment, #include "devNewport.dbd"
|
||||
|
||||
Finally, cd <motor>; gnumake clean uninstall; gnumake
|
||||
@@ -30,5 +30,5 @@ To run this Newport MM4000/5, "asyn" example on a Unix OS;
|
||||
- Edit the st.cmd.unix file for either sun or linux.
|
||||
- Start the ioc from this directory by executing the following command.
|
||||
|
||||
../../bin/${EPICS_HOST_ARCH}/WithMPF st.cmd.unix
|
||||
../../bin/${EPICS_HOST_ARCH}/WithAsyn st.cmd.unix
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ cd topbin
|
||||
# be added before any C++ code is loaded (see SPR #28980).
|
||||
sysCplusEnable=1
|
||||
|
||||
ld < WithMPFVx.munch
|
||||
ld < WithAsynVx.munch
|
||||
|
||||
cd startup
|
||||
dbLoadDatabase("$(TOP)/dbd/WithMPFVx.dbd")
|
||||
WithMPFVx_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadDatabase("$(TOP)/dbd/WithAsynVx.dbd")
|
||||
WithAsynVx_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
< envPaths
|
||||
|
||||
dbLoadDatabase("$(TOP)/dbd/WithMPF.dbd")
|
||||
WithMPF_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadDatabase("$(TOP)/dbd/WithAsyn.dbd")
|
||||
WithAsyn_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
< envPaths
|
||||
|
||||
dbLoadDatabase("$(TOP)/dbd/WithMPFWin32.dbd")
|
||||
WithMPFWin32_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadDatabase("$(TOP)/dbd/WithAsynWin32.dbd")
|
||||
WithAsynWin32_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ errlogInit(5000)
|
||||
< envPaths
|
||||
# Tell EPICS all about the record types, device-support modules, drivers,
|
||||
# etc. in this build from CARS
|
||||
dbLoadDatabase("../../dbd/WithMPF.dbd")
|
||||
WithMPF_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadDatabase("../../dbd/WithAsyn.dbd")
|
||||
WithAsyn_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
### Motors
|
||||
dbLoadTemplate "motor.substitutions.xps"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = linux-x86
|
||||
#ARCH = vxWorks-ppc604
|
||||
TARGETS = cdCommands
|
||||
TARGETS += envPaths
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
To build any examples;
|
||||
|
||||
- in <motor>/configure/RELEASE: EPICS_BASE and MOTOR must be defined.
|
||||
|
||||
- in <motor>/Makefile: the following two lines must be uncommented;
|
||||
#DIRS := $(DIRS) $(filter-out $(DIRS), motorExApp)
|
||||
#DIRS := $(DIRS) $(filter-out $(DIRS), iocBoot)
|
||||
|
||||
To build this Newport MM4000/5/6 example;
|
||||
|
||||
- in <motor>/configure/RELEASE: IPAC and ASYN must all be defined.
|
||||
|
||||
- in <motor>/motorApp/Makefile: #DIRS += NewportSrc must be uncommented.
|
||||
|
||||
- in <motor>/motorExApp/Makefile: #DIRS += WithMPF must be uncommented.
|
||||
|
||||
- in <motor>/motorExApp/WithMPF/Makefile: uncomment both,
|
||||
#!WithMPF_LIBS += Newport
|
||||
and,
|
||||
#!WithMPFVx_LIBS += Newport
|
||||
|
||||
- in both <motor>/motorExApp/WithMPF/WithMPFInclude.dbd, and in
|
||||
<motor>/motorExApp/WithMPF/WithMPFVxInclude.dbd
|
||||
uncomment, #include "devNewport.dbd"
|
||||
|
||||
Finally, cd <motor>; gnumake clean uninstall; gnumake
|
||||
|
||||
To run this Newport MM4000/5, "asyn" example on a Unix OS;
|
||||
- Set the EPICS_HOST_ARCH environment variable correctly.
|
||||
- Edit the st.cmd.unix file for either sun or linux.
|
||||
- Start the ioc from this directory by executing the following command.
|
||||
|
||||
../../bin/${EPICS_HOST_ARCH}/WithMPF st.cmd.unix
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
file "$(MOTOR)/motorApp/Db/XPSAuxLi.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, CHAN, SCAN}
|
||||
{IOC:, XPSAux1Li, XPS_AUX1, 0, "I/O Intr"}
|
||||
{IOC:, XPSAux2Li, XPS_AUX1, 1, "I/O Intr"}
|
||||
{IOC:, XPSAux3Li, XPS_AUX1, 2, "I/O Intr"}
|
||||
{IOC:, XPSAux4Li, XPS_AUX1, 3, "I/O Intr"}
|
||||
}
|
||||
|
||||
file "$(MOTOR)/motorApp/Db/XPSAuxBi.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, CHAN, MASK, SCAN}
|
||||
{IOC:, XPSAux1Bi0, XPS_AUX1, 0, 0x000001, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi1, XPS_AUX1, 0, 0x000002, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi2, XPS_AUX1, 0, 0x000004, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi3, XPS_AUX1, 0, 0x000008, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi4, XPS_AUX1, 0, 0x000010, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi5, XPS_AUX1, 0, 0x000020, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi6, XPS_AUX1, 0, 0x000040, "I/O Intr"}
|
||||
{IOC:, XPSAux1Bi7, XPS_AUX1, 0, 0x000080, "I/O Intr"}
|
||||
{IOC:, XPSAux2Bi0, XPS_AUX1, 1, 0x000001, "I/O Intr"}
|
||||
{IOC:, XPSAux2Bi1, XPS_AUX1, 1, 0x000002, "I/O Intr"}
|
||||
{IOC:, XPSAux2Bi2, XPS_AUX1, 1, 0x000004, "I/O Intr"}
|
||||
{IOC:, XPSAux2Bi3, XPS_AUX1, 1, 0x000008, "I/O Intr"}
|
||||
{IOC:, XPSAux2Bi4, XPS_AUX1, 1, 0x000010, "I/O Intr"}
|
||||
{IOC:, XPSAux2Bi5, XPS_AUX1, 1, 0x000020, "I/O Intr"}
|
||||
{IOC:, XPSAux3Bi0, XPS_AUX1, 2, 0x000001, "I/O Intr"}
|
||||
{IOC:, XPSAux3Bi1, XPS_AUX1, 2, 0x000002, "I/O Intr"}
|
||||
{IOC:, XPSAux3Bi2, XPS_AUX1, 2, 0x000004, "I/O Intr"}
|
||||
{IOC:, XPSAux3Bi3, XPS_AUX1, 2, 0x000008, "I/O Intr"}
|
||||
{IOC:, XPSAux3Bi4, XPS_AUX1, 2, 0x000010, "I/O Intr"}
|
||||
{IOC:, XPSAux3Bi5, XPS_AUX1, 2, 0x000020, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi0, XPS_AUX1, 3, 0x000001, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi1, XPS_AUX1, 3, 0x000002, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi2, XPS_AUX1, 3, 0x000004, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi3, XPS_AUX1, 3, 0x000008, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi4, XPS_AUX1, 3, 0x000010, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi5, XPS_AUX1, 3, 0x000020, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi6, XPS_AUX1, 3, 0x000040, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi7, XPS_AUX1, 3, 0x000080, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi8, XPS_AUX1, 3, 0x000100, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi9, XPS_AUX1, 3, 0x000200, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi10, XPS_AUX1, 3, 0x000400, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi11, XPS_AUX1, 3, 0x000800, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi12, XPS_AUX1, 3, 0x001000, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi13, XPS_AUX1, 3, 0x002000, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi14, XPS_AUX1, 3, 0x004000, "I/O Intr"}
|
||||
{IOC:, XPSAux4Bi15, XPS_AUX1, 3, 0x008000, "I/O Intr"}
|
||||
}
|
||||
|
||||
file "$(MOTOR)/motorApp/Db/XPSAuxBo.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, CHAN, MASK}
|
||||
{IOC:, XPSAux1Bo0, XPS_AUX1, 0, 0x000001}
|
||||
{IOC:, XPSAux1Bo1, XPS_AUX1, 0, 0x000002}
|
||||
{IOC:, XPSAux1Bo2, XPS_AUX1, 0, 0x000004}
|
||||
{IOC:, XPSAux1Bo3, XPS_AUX1, 0, 0x000008}
|
||||
{IOC:, XPSAux1Bo4, XPS_AUX1, 0, 0x000010}
|
||||
{IOC:, XPSAux1Bo5, XPS_AUX1, 0, 0x000020}
|
||||
{IOC:, XPSAux1Bo6, XPS_AUX1, 0, 0x000040}
|
||||
{IOC:, XPSAux1Bo7, XPS_AUX1, 0, 0x000080}
|
||||
{IOC:, XPSAux3Bo0, XPS_AUX1, 1, 0x000001}
|
||||
{IOC:, XPSAux3Bo1, XPS_AUX1, 1, 0x000002}
|
||||
{IOC:, XPSAux3Bo2, XPS_AUX1, 1, 0x000004}
|
||||
{IOC:, XPSAux3Bo3, XPS_AUX1, 1, 0x000008}
|
||||
{IOC:, XPSAux3Bo4, XPS_AUX1, 1, 0x000010}
|
||||
{IOC:, XPSAux3Bo5, XPS_AUX1, 1, 0x000020}
|
||||
{IOC:, XPSAux4Bo0, XPS_AUX1, 2, 0x000001}
|
||||
{IOC:, XPSAux4Bo1, XPS_AUX1, 2, 0x000002}
|
||||
{IOC:, XPSAux4Bo2, XPS_AUX1, 2, 0x000004}
|
||||
{IOC:, XPSAux4Bo3, XPS_AUX1, 2, 0x000008}
|
||||
{IOC:, XPSAux4Bo4, XPS_AUX1, 2, 0x000010}
|
||||
{IOC:, XPSAux4Bo5, XPS_AUX1, 2, 0x000020}
|
||||
{IOC:, XPSAux4Bo6, XPS_AUX1, 2, 0x000040}
|
||||
{IOC:, XPSAux4Bo7, XPS_AUX1, 2, 0x000080}
|
||||
{IOC:, XPSAux4Bo8, XPS_AUX1, 2, 0x000100}
|
||||
{IOC:, XPSAux4Bo9, XPS_AUX1, 2, 0x000200}
|
||||
{IOC:, XPSAux4Bo10, XPS_AUX1, 2, 0x000400}
|
||||
{IOC:, XPSAux4Bo11, XPS_AUX1, 2, 0x000800}
|
||||
{IOC:, XPSAux4Bo12, XPS_AUX1, 2, 0x001000}
|
||||
{IOC:, XPSAux4Bo13, XPS_AUX1, 2, 0x002000}
|
||||
{IOC:, XPSAux4Bo14, XPS_AUX1, 2, 0x004000}
|
||||
{IOC:, XPSAux4Bo15, XPS_AUX1, 2, 0x008000}
|
||||
}
|
||||
|
||||
file "$(MOTOR)/motorApp/Db/XPSAuxLo.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, CHAN}
|
||||
{IOC:, XPSAux1Lo, XPS_AUX1, 0}
|
||||
{IOC:, XPSAux3Lo, XPS_AUX1, 1}
|
||||
{IOC:, XPSAux4Lo, XPS_AUX1, 2}
|
||||
}
|
||||
|
||||
|
||||
file "$(MOTOR)/motorApp/Db/XPSAuxAi.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, CHAN, LOPR, HOPR, PREC, SCAN}
|
||||
{IOC:, XPSAuxAi0, XPS_AUX1, 0, -10.0, 10.0, 4, "1 second"}
|
||||
{IOC:, XPSAuxAi1, XPS_AUX1, 1, -10.0, 10.0, 4, "1 second"}
|
||||
{IOC:, XPSAuxAi2, XPS_AUX1, 2, -10.0, 10.0, 4, "1 second"}
|
||||
{IOC:, XPSAuxAi3, XPS_AUX1, 3, -10.0, 10.0, 4, "1 second"}
|
||||
}
|
||||
|
||||
file "$(MOTOR)/motorApp/Db/XPSAuxAo.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, CHAN, DRVL, LOPR, DRVH, HOPR, PREC}
|
||||
{IOC:, XPSAuxAo0, XPS_AUX1, 0, -10.0, -10.0, 10.0, 10.0, 4}
|
||||
{IOC:, XPSAuxAo1, XPS_AUX1, 1, -10.0, -10.0, 10.0, 10.0, 4}
|
||||
{IOC:, XPSAuxAo2, XPS_AUX1, 2, -10.0, -10.0, 10.0, 10.0, 4}
|
||||
{IOC:, XPSAuxAo3, XPS_AUX1, 3, -10.0, -10.0, 10.0, 10.0 4}
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
file "$(MOTOR)/db/basic_motor.db"
|
||||
{
|
||||
pattern
|
||||
{P, N, M, DTYP, C, S, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT}
|
||||
{IOC:, 1, "m$(N)", "MM4000", 0, 0, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""}
|
||||
{IOC:, 2, "m$(N)", "MM4000", 0, 1, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""}
|
||||
{IOC:, 3, "m$(N)", "MM4000", 0, 2, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""}
|
||||
{IOC:, 4, "m$(N)", "MM4000", 0, 3, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
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}
|
||||
{IOC:, 1, "m$(N)", "asynMotor", XPS1, 0, "motor $(N)", mm, Pos, .3, .1, .2, 0, 1, .2, 0.000048828, 5, 62.5, 50, ""}
|
||||
{IOC:, 2, "m$(N)", "asynMotor", XPS1, 1, "motor $(N)", mm, Pos, .3, .1, .2, 0, 1, .2, 0.000147750, 5, 10, 0, ""}
|
||||
{IOC:, 3, "m$(N)", "asynMotor", XPS1, 2, "motor $(N)", mm, Pos, .3, .1, .2, 0, 1, .2, 0.000048828, 5, 62.5, 50, ""}
|
||||
}
|
||||
file "$(MOTOR)/db/XPS_extra.db"
|
||||
{
|
||||
pattern
|
||||
{P, R, PORT, ADDR}
|
||||
{IOC:, m1, XPS1, 0}
|
||||
{IOC:, m2, XPS1 1}
|
||||
{IOC:, m3, XPS1 2}
|
||||
}
|
||||
@@ -1,280 +0,0 @@
|
||||
# The is the "ASYN" example for communication to either a Newport MM4000/5 or an
|
||||
# IMS483 controller. The examples must be configured by including or omitting
|
||||
# comment characters (i.e., #'s) from this file.
|
||||
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
# The following must be added for many board support packages
|
||||
#!cd "... IOC st.cmd complete directory path ... "
|
||||
|
||||
< cdCommands
|
||||
#!< ../nfsCommands
|
||||
|
||||
cd topbin
|
||||
|
||||
# If the VxWorks kernel was built using the project facility, the following must
|
||||
# be added before any C++ code is loaded (see SPR #28980).
|
||||
sysCplusEnable=1
|
||||
|
||||
ld < WithMPFVx.munch
|
||||
|
||||
cd startup
|
||||
dbLoadDatabase("$(TOP)/dbd/WithMPFVx.dbd")
|
||||
WithMPFVx_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
|
||||
# Configure the ASYN server code. This MUST be configured too!
|
||||
< st_asynserver.cmd.Vx
|
||||
|
||||
# Newport MM3000 and MM4000/5/6 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM3000Setup(1, 10)
|
||||
#!MM4000Setup(1, 10)
|
||||
|
||||
# Newport MM3000 and MM4000/5/6 driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!MM3000Config(0, "a-Serial[0]")
|
||||
#!drvMM3000debug=4
|
||||
#!MM4000Config(0, "a-Serial[0]")
|
||||
#!drvMM4000debug=4
|
||||
|
||||
# The MM4000 driver does not set end of string (EOS).
|
||||
# for RS232 serial,
|
||||
#!asynOctetSetInputEos( "a-Serial[0]",0,"\r")
|
||||
#!asynOctetSetOutputEos("a-Serial[0]",0,"\r")
|
||||
# for GPIB,
|
||||
#!asynInterposeEosConfig("L0", 10, 1, 1)
|
||||
#!asynOctetSetInputEos( "L0",10,"\r")
|
||||
#!asynOctetSetOutputEos("L0",10,"\r")
|
||||
|
||||
# Newport PM500 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 10)
|
||||
|
||||
# Newport PM500 configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PM500Config(0, "a-Serial[0]")
|
||||
#!drvPM500debug=4
|
||||
|
||||
# IMS IM483 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMSetup(1, 10)
|
||||
#!IM483PLSetup(1, 10)
|
||||
|
||||
# IMS IM483 configuration parameters:
|
||||
# (1) controller# (chain#) being configured,
|
||||
# (2) ASYN port name
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMConfig(0, "a-Serial[0]")
|
||||
#!drvIM483SMdebug=4
|
||||
#!IM483PLConfig(0, "a-Serial[0]")
|
||||
#!drvIM483PLdebug=4
|
||||
|
||||
# MCB-4B driver setup parameters:
|
||||
# (1) maximum # of controllers,
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 10)
|
||||
|
||||
# MCB-4B driver configuration parameters:
|
||||
# (1) controller
|
||||
# (2) ASYN port name
|
||||
#!MCB4BConfig(0, "a-Serial[0]")
|
||||
#!asynOctetSetInputEos("a-Serial[0]",0,"\r")
|
||||
#!asynOctetSetOutputEos("a-Serial[0]",0,"\r")
|
||||
#!drvMCB4BDebug=4
|
||||
|
||||
# Newport ESP300 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 10)
|
||||
|
||||
# Newport ESP300 driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!ESP300Config(0, "a-Serial[0]")
|
||||
#!drvESP300debug = 4
|
||||
|
||||
# MicroMo MVP2001 driver setup parameters:
|
||||
#
|
||||
# NOTE: The 1st controller on each chain should have it's address = 1.
|
||||
# The rest of the controllers on a chain should follow sequentially.
|
||||
#
|
||||
#
|
||||
# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */
|
||||
# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */
|
||||
#!MVP2001Setup(1, 10)
|
||||
|
||||
# int MVP2001Config(int card, /* CHAIN being configured */
|
||||
# (2) ASYN port name
|
||||
#!MVP2001Config(0, "a-Serial[0]")
|
||||
#!drvMVP2001debug=4
|
||||
|
||||
# PI C-844 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 10)
|
||||
|
||||
# PI C-844 driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PIC844Config(0, "a-Serial[0]")
|
||||
#!drvPIC844debug = 4
|
||||
|
||||
# PI C-848 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC848Setup(1, 2)
|
||||
|
||||
# PI C-848 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
#!PIC848Config(0, "a-Serial[0]")
|
||||
#!drvPIC848debug = 4
|
||||
|
||||
# PI E-662 Piezo driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!PIC662Setup(1, 60)
|
||||
|
||||
# PI E-662 Piezo driver configuration parameters:
|
||||
# (1) controller being configured
|
||||
# (2) asyn port name (string)
|
||||
#!PIC662Config(0, "serial1")
|
||||
#!drvPIC662debug = 4
|
||||
|
||||
# PI C-862 DC-motor driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!PIC862Setup(1, 60)
|
||||
|
||||
# PI C-862 DC-motor driver configuration parameters:
|
||||
# (1) controller being configured
|
||||
# (2) asyn port name (string)
|
||||
#!PIC862Config(0, "serial1")
|
||||
#!drvPIC862debug = 4
|
||||
|
||||
# New Focus Picomotor Network Controller (model 8750/2) (setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) maximum number of drivers per controller (1 - 3)
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PMNC87xxSetup(1, 2, 10)
|
||||
|
||||
# New Focuc Picomotor Network Controller (model 8750/2) configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) asyn port name (string)
|
||||
#!PMNC87xxConfig(0, "serial2")
|
||||
#!drvPMNC87xxdebug=4
|
||||
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
# Load MicosSetup once.
|
||||
# (1) max # of controller groups. Controller groups are per serial
|
||||
# port.
|
||||
# (2) max # axes per controller group. Maximum 16. (addr 0-15)
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz, 10Hz works well)
|
||||
# Example:
|
||||
# MicosSetup(1, 2, 10) 1 group. 2 axes (controllers) in the group.
|
||||
# 10Hz poll.
|
||||
#!MicosSetup(1, 2, 10)
|
||||
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "a-Serial[0]")
|
||||
#!drvMicosDebug = 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 10)
|
||||
|
||||
# IMS MDrive driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
#!MDriveConfig(0, "a-Serial[0]")
|
||||
#!drvMDrivedebug = 4
|
||||
|
||||
# Newport XPSC8 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!XPSC8Setup(2, 60)
|
||||
|
||||
# Newport XPSC8 driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) ASYN port #
|
||||
# (4) number of axes
|
||||
#!XPSC8Config(0, "tcp1", 0, 6)
|
||||
#!XPSC8Config(1, "tcp2", 0, 8)
|
||||
|
||||
# Newport XPSC8 group and positioner name configuration:
|
||||
# (1) controller# being configured
|
||||
# (2) axis# being configured.
|
||||
# (3) groupnumber
|
||||
# (4) groupsize
|
||||
# (5) # of axes in group
|
||||
# (6) group name
|
||||
# (7) positioner name
|
||||
#!XPSC8NameConfig(0,0,0,6,0,"GROUP1","GROUP1.PHI")
|
||||
#!XPSC8NameConfig(0,1,0,6,1,"GROUP1","GROUP1.KAPPA")
|
||||
#!XPSC8NameConfig(0,2,0,6,2,"GROUP1","GROUP1.OMEGA")
|
||||
#!XPSC8NameConfig(0,3,0,6,3,"GROUP1","GROUP1.PSI")
|
||||
#!XPSC8NameConfig(0,4,0,6,4,"GROUP1","GROUP1.2THETA")
|
||||
#!XPSC8NameConfig(0,5,0,6,5,"GROUP1","GROUP1.NU")
|
||||
|
||||
#!XPSC8NameConfig(1,0,0,1,0,"GROUP1","GROUP1.Y1_BASE")
|
||||
#!XPSC8NameConfig(1,1,1,1,0,"GROUP2","GROUP2.Y2_BASE")
|
||||
#!XPSC8NameConfig(1,2,2,1,0,"GROUP3","GROUP3.Y3_BASE")
|
||||
#!XPSC8NameConfig(1,3,3,1,0,"GROUP4","GROUP4.TRX_BASE")
|
||||
#!XPSC8NameConfig(1,4,4,1,0,"GROUP5","GROUP5.THETA-Y_BASE")
|
||||
#!XPSC8NameConfig(1,5,5,1,0,"GROUP6","GROUP6.X_SAMPLE")
|
||||
#!XPSC8NameConfig(1,6,6,1,0,"GROUP7","GROUP7.Y_SAMPLE")
|
||||
#!XPSC8NameConfig(1,7,7,1,0,"GROUP8","GROUP8.Z_SAMPLE")
|
||||
|
||||
# The XPSC8 driver does not set the ASYN end of string (EOS).
|
||||
#!asynOctetSetInputEos("tcp1",0,"")
|
||||
#!asynOctetSetOutputEos("tcp1",0,"")
|
||||
#!asynOctetSetInputEos("tcp2",0,"")
|
||||
#!asynOctetSetOutputEos("tcp2",0,"")
|
||||
|
||||
|
||||
# OMS PC68/78 stand-alone serial driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!OmsPC68Setup(1, 10)
|
||||
|
||||
# OMS PC68/78 stand-alone serial driver configuration parameters:
|
||||
# (1) Card# being configured
|
||||
# (2) asyn port name
|
||||
#!OmsPC68Config(0, "L0")
|
||||
#!drvOmsPC68debug=4
|
||||
|
||||
# Kohzu SC-800 motor controller setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!SC800Setup(1, 5)
|
||||
|
||||
# Kohzu SC-800 motor controller configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!SC800Config(0, "L0", 0)
|
||||
#!drvSC800debug=4
|
||||
|
||||
iocInit
|
||||
|
||||
# motorUtil (allstop & alldone)
|
||||
motorUtilInit("IOC:")
|
||||
|
||||
@@ -1,186 +0,0 @@
|
||||
# The is the ASYN example for communication to a Newport MM4000/5/6.
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
< envPaths
|
||||
|
||||
dbLoadDatabase("$(TOP)/dbd/WithMPF.dbd")
|
||||
WithMPF_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
|
||||
|
||||
# The following commands are for a local serial line
|
||||
# Configure the asyn server code for either sun or linux.
|
||||
#!Sun Solaris !drvAsynSerialPortConfigure("L0","/dev/ttya" ,0,0,0)
|
||||
#!Redhat Linux!drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
|
||||
|
||||
asynSetOption("L0", -1, "baud", "9600")
|
||||
asynSetOption("L0", -1, "bits", "8")
|
||||
asynSetOption("L0", -1, "parity", "none")
|
||||
asynSetOption("L0", -1, "stop", "1")
|
||||
asynSetOption("L0", -1, "clocal", "Y")
|
||||
asynSetOption("L0", -1, "crtscts", "N")
|
||||
|
||||
|
||||
# Newport MM3000 and MM4000/5/6 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM3000Setup(1, 10)
|
||||
MM4000Setup(1, 10)
|
||||
|
||||
# Newport MM3000 and MM4000/5/6 driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!MM3000Config(0, "a-Serial[0]")
|
||||
#!drvMM3000debug=4
|
||||
MM4000Config(0, "L0")
|
||||
#!var drvMM4000debug 4
|
||||
|
||||
# The MM4000 driver does not set end of string (EOS).
|
||||
# for RS232 serial,
|
||||
#!asynOctetSetInputEos( "a-Serial[0]",0,"\r")
|
||||
#!asynOctetSetOutputEos("a-Serial[0]",0,"\r")
|
||||
# for GPIB,
|
||||
#!asynInterposeEosConfig("L0", 10, 1, 1)
|
||||
#!asynOctetSetInputEos( "L0",10,"\r")
|
||||
#!asynOctetSetOutputEos("L0",10,"\r")
|
||||
|
||||
# Newport PM500 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 10)
|
||||
|
||||
# Newport PM500 configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PM500Config(0, "L0")
|
||||
#!var drvPM500debug 4
|
||||
|
||||
# IMS IM483 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMSetup(1, 10)
|
||||
#!IM483PLSetup(1, 10)
|
||||
|
||||
# IMS IM483 configuration parameters:
|
||||
# (1) controller# (chain#) being configured,
|
||||
# (2) ASYN port name
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMConfig(0, "L0")
|
||||
#!var drvIM483SMdebug 4
|
||||
#!IM483PLConfig(0, "L0")
|
||||
#!var drvIM483PLdebug 4
|
||||
|
||||
# MCB-4B driver setup parameters:
|
||||
# (1) maximum # of controllers,
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 10)
|
||||
|
||||
# MCB-4B driver configuration parameters:
|
||||
# (1) controller
|
||||
# (2) ASYN port name
|
||||
#!MCB4BConfig(0, "L0")
|
||||
#!asynOctetSetInputEos("L0",0,"\r")
|
||||
#!asynOctetSetOutputEos("L0",0,"\r")
|
||||
#!var drvMCB4BDebug 4
|
||||
|
||||
# Newport ESP300 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 10)
|
||||
|
||||
# Newport ESP300 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!ESP300Config(0, "L0")
|
||||
#!var drvESP300debug 4
|
||||
|
||||
# MicroMo MVP2001 driver setup parameters:
|
||||
#
|
||||
# NOTE: The 1st controller on each chain should have it's address = 1.
|
||||
# The rest of the controllers on a chain should follow sequentially.
|
||||
#
|
||||
#
|
||||
# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */
|
||||
# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */
|
||||
#!MVP2001Setup(1, 10)
|
||||
|
||||
# int MVP2001Config(int card, /* CHAIN being configured */
|
||||
# (2) ASYN port name
|
||||
#!MVP2001Config(0, "L0")
|
||||
#!drvMVP2001debug=4
|
||||
|
||||
# PI C-844 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 10)
|
||||
|
||||
# PI C-844 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PIC844Config(0, "L0")
|
||||
#!var drvPIC844debug 4
|
||||
|
||||
# PI C-848 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC848Setup(1, 2)
|
||||
|
||||
# PI C-848 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
#!PIC848Config(0, "L0")
|
||||
#!drvPIC848debug = 4
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
# Load MicosSetup once.
|
||||
# (1) max # of controller groups. Controller groups are per serial
|
||||
# port.
|
||||
# (2) max # axes per controller group. Maximum 16. (addr 0-15)
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz, 10Hz works well)
|
||||
# Example:
|
||||
# MicosSetup(1, 2, 10) 1 group. 2 axes (controllers) in the group.
|
||||
# 10Hz poll.
|
||||
#!MicosSetup(1, 2, 10)
|
||||
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "L0")
|
||||
#!var drvMicosDebug 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 10)
|
||||
|
||||
# IMS MDrive driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
#!MDriveConfig(0, "L0")
|
||||
#!var drvMDrivedebug 4
|
||||
|
||||
# Kohzu SC-800 motor controller setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!SC800Setup(1, 5)
|
||||
|
||||
# Kohzu SC-800 motor controller configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!SC800Config(0, "L0", 0)
|
||||
#!var drvSC800debug 4
|
||||
|
||||
|
||||
iocInit
|
||||
|
||||
# motorUtil (allstop & alldone)
|
||||
motorUtilInit("IOC:")
|
||||
|
||||
@@ -1,141 +0,0 @@
|
||||
# The is the ASYN example for communication to a Newport MM4000/5/6.
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
< envPaths
|
||||
|
||||
dbLoadDatabase("$(TOP)/dbd/WithMPFWin32.dbd")
|
||||
WithMPFWin32_registerRecordDeviceDriver(pdbbase)
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
|
||||
# This is for WIN32, local serial ports not supported. Must use IP terminal server.
|
||||
|
||||
# Newport MM3000 and MM4000/5/6 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM3000Setup(1, 10)
|
||||
MM4000Setup(1, 10)
|
||||
|
||||
# Newport MM3000 and MM4000/5/6 driver configuration parameters:
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!MM3000Config(0, "a-Serial[0]")
|
||||
#!drvMM3000debug=4
|
||||
MM4000Config(0, "L0")
|
||||
#!var drvMM4000debug 4
|
||||
|
||||
# Newport PM500 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 10)
|
||||
|
||||
# Newport PM500 configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PM500Config(0, "L0")
|
||||
#!var drvPM500debug 4
|
||||
|
||||
# IMS IM483 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMSetup(1, 10)
|
||||
#!IM483PLSetup(1, 10)
|
||||
|
||||
# IMS IM483 configuration parameters:
|
||||
# (1) controller# (chain#) being configured,
|
||||
# (2) ASYN port name
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMConfig(0, "L0")
|
||||
#!var drvIM483SMdebug 4
|
||||
#!IM483PLConfig(0, "L0")
|
||||
#!var drvIM483PLdebug 4
|
||||
|
||||
# MCB-4B driver setup parameters:
|
||||
# (1) maximum # of controllers,
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 10)
|
||||
|
||||
# MCB-4B driver configuration parameters:
|
||||
# (1) controller
|
||||
# (2) ASYN port name
|
||||
#!MCB4BConfig(0, "L0")
|
||||
#!asynOctetSetInputEos("L0",0,"\r")
|
||||
#!asynOctetSetOutputEos("L0",0,"\r")
|
||||
#!var drvMCB4BDebug 4
|
||||
|
||||
# Newport ESP300 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 10)
|
||||
|
||||
# Newport ESP300 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!ESP300Config(0, "L0")
|
||||
#!var drvESP300debug 4
|
||||
|
||||
# MicroMo MVP2001 driver setup parameters:
|
||||
#
|
||||
# NOTE: The 1st controller on each chain should have it's address = 1.
|
||||
# The rest of the controllers on a chain should follow sequentially.
|
||||
#
|
||||
#
|
||||
# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */
|
||||
# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */
|
||||
#!MVP2001Setup(1, 10)
|
||||
|
||||
# int MVP2001Config(int card, /* CHAIN being configured */
|
||||
# (2) ASYN port name
|
||||
#!MVP2001Config(0, "L0")
|
||||
#!drvMVP2001debug=4
|
||||
|
||||
# PI C-844 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 10)
|
||||
|
||||
# PI C-844 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PIC844Config(0, "L0")
|
||||
#!var drvPIC844debug 4
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
# Load MicosSetup once.
|
||||
# (1) max # of controller groups. Controller groups are per serial
|
||||
# port.
|
||||
# (2) max # axes per controller group. Maximum 16. (addr 0-15)
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz, 10Hz works well)
|
||||
# Example:
|
||||
# MicosSetup(1, 2, 10) 1 group. 2 axes (controllers) in the group.
|
||||
# 10Hz poll.
|
||||
#!MicosSetup(1, 2, 10)
|
||||
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "L0")
|
||||
#!var drvMicosDebug 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 10)
|
||||
|
||||
# IMS MDrive driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) ASYN port name
|
||||
#!MDriveConfig(0, "L0")
|
||||
#!var drvMDrivedebug 4
|
||||
|
||||
iocInit
|
||||
|
||||
# motorUtil (allstop & alldone)
|
||||
motorUtilInit("IOC:")
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
errlogInit(5000)
|
||||
< envPaths
|
||||
# Tell EPICS all about the record types, device-support modules, drivers,
|
||||
# etc. in this build from CARS
|
||||
dbLoadDatabase("../../dbd/WithMPF.dbd")
|
||||
WithMPF_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
### Motors
|
||||
dbLoadTemplate "motor.substitutions.xps"
|
||||
|
||||
dbLoadTemplate "XPSAux.substitutions"
|
||||
|
||||
# cards (total controllers)
|
||||
XPSSetup(1)
|
||||
|
||||
# card, IP, PORT, number of axes, active poll period (ms), idle poll period (ms)
|
||||
XPSConfig(0, "newport-xps3", 5001, 3, 10, 5000)
|
||||
|
||||
# asynPort, IP address, IP port, poll period (ms)
|
||||
XPSAuxConfig("XPS_AUX1", "newport-xps3", 5001, 50)
|
||||
#asynSetTraceMask("XPS_AUX1", 0, 255)
|
||||
#asynSetTraceIOMask("XPS_AUX1", 0, 2)
|
||||
|
||||
# asyn port, driver name, controller index, max. axes)
|
||||
drvAsynMotorConfigure("XPS1", "motorXPS", 0, 3)
|
||||
XPSInterpose("XPS1")
|
||||
|
||||
# card, axis, groupName.positionerName
|
||||
XPSConfigAxis(0,0,"GROUP1.POSITIONER",20480)
|
||||
XPSConfigAxis(0,1,"GROUP2.POSITIONER1",6768)
|
||||
XPSConfigAxis(0,2,"GROUP2.POSITIONER2",20480)
|
||||
|
||||
#asynSetTraceMask newport-xps3:5001:0 0 255
|
||||
#asynSetTraceIOMask newport-xps3:5001:0 0 2
|
||||
#asynSetTraceMask newport-xps3:5001:1 0 255
|
||||
#asynSetTraceIOMask newport-xps3:5001:1 0 2
|
||||
#asynSetTraceMask XPS1 0 255
|
||||
#asynSetTraceIOMask XPS1 0 2
|
||||
#asynSetTraceMask XPS1 1 255
|
||||
#asynSetTraceIOMask XPS1 1 2
|
||||
#asynSetTraceMask XPS1 2 255
|
||||
#asynSetTraceIOMask XPS1 2 2
|
||||
#asynSetTraceMask newport-xps3:5001:3 0 255
|
||||
#asynSetTraceIOMask newport-xps3:5001:3 0 2
|
||||
|
||||
dbLoadRecords("$(MOTOR)/motorApp/Db/trajectoryScan.db", "P=IOC:,R=traj1,NAXES=2,NELM=2000,NPULSE=2000,DONPV=13LAB:str:EraseStart,DONV=1,DOFFPV=13LAB:str:StopAll,DOFFV=1")
|
||||
|
||||
iocInit
|
||||
|
||||
seq(XPS_trajectoryScan,"P=IOC:,R=traj1,M1=m2,M2=m3,IPADDR=164.54.160.34,PORT=5001,GROUP=GROUP2,P1=POSITIONER1,P2=POSITIONER2")
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
# This configures the ASYN server stuff.
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
# Initialize the IP carriers; IPAC R2.8
|
||||
# -------------------------------------
|
||||
# ipacAdd{CarrierType}(char *cardParams)
|
||||
# CarrierType - VIPC310, VIPC610, VIPC610_01, VIPC616, VIPC616_01,
|
||||
# MVME162, or ATC40.
|
||||
# cardParams - carrier-specific init parameters.
|
||||
# ipacAddVIPC616_01(const char *cardParams);
|
||||
# ipacAddMVME162(const char *cardParams)
|
||||
#
|
||||
# For SBS VIPC616-01 IP carrier board. A32 and A24 examples follow:
|
||||
# - A32 addressing.
|
||||
# - default I/O Base Address (0x6000).
|
||||
# - IP modules occupy 32MB of memory from 0x9000 0000 to 0x91FF FFFF.
|
||||
# - IP module A at 0x90000000,
|
||||
# module B at 0x90800000,
|
||||
# module C at 0x91000000,
|
||||
# module D at 0x91800000
|
||||
#!ipacAddVIPC616_01("6000,A0000000")
|
||||
|
||||
# - A24 addressing.
|
||||
# - default I/O Base Address (0x6000).
|
||||
# - default IP module base address at 0x00D0 0000
|
||||
# occupies 512 bytes of memory from 0x00D0 0000 to 0x00D0 01FF.
|
||||
# - IP module A at 0x0x00D0 007F,
|
||||
# module B at 0x0x00D0 0100,
|
||||
# module C at 0x0x00D0 017F,
|
||||
# module D at 0x0x00D0 01FF
|
||||
|
||||
#!ipacAddVIPC616_01("6000,A0000000")
|
||||
|
||||
# For MVME162 and MVME172 CPU board IP carrier.
|
||||
#!ipacAddMVME162("A:l=3,3 m=0xe0000000,64;B:l=3,3 m=0xe0010000,64;C:l=3,3 m=0xe0020000,64;D:l=3,3 m=0xe0030000,64")
|
||||
|
||||
# Allocate the number of tyGSOctal modules to support.
|
||||
# ----------------------------------------------------
|
||||
|
||||
#!tyGSOctalDrv(1)
|
||||
|
||||
# Initialize IP Octal modules.
|
||||
# ----------------------------
|
||||
# tyGSOctalModuleInit(char *moduleID, char *ModuleType, int irq_num,
|
||||
# char *carrier#, int slot#)
|
||||
# moduleID - assign the IP module a name for future reference.
|
||||
# ModuleType - "232", "422", or "485".
|
||||
# irq_num - interrupt request number.
|
||||
# carrier# - carrier# assigned from the ipacAddCarrierType() call.
|
||||
# slot# - slot number on carrier; slot[A,B,C,D] -> slot#[0,1,2,3].
|
||||
|
||||
#!tyGSOctalModuleInit "Mod0", "232", 0x80, 0, 0
|
||||
|
||||
# Create tty devices.
|
||||
# ------------------
|
||||
# tyGSOctalDevCreate(char *portname, int moduleID, int port#, int rdBufSize,
|
||||
# int wrtBufSize)
|
||||
# portname - assign the port a name for future reference.
|
||||
# moduleID - moduleID from the tyGSOctalModuleInit() call.
|
||||
# port# - port number for this module [0-7].
|
||||
# rdBufSize - read buffer size, in bytes.
|
||||
# wrtBufSize - write buffer size, in bytes.
|
||||
|
||||
# Create two tty ports on Mod0 with portname based on the convention;
|
||||
# "/tyGScarrier#/moduleID/port#".
|
||||
|
||||
#!tyGSOctalDevCreate "/tyGS0/Mod0/0", "Mod0", 0, 512, 512
|
||||
#!tyGSOctalDevCreate "/tyGS0/Mod0/1", "Mod0", 1, 512, 512
|
||||
|
||||
# Create all uninitialized tty devices.
|
||||
# ------------------------------------
|
||||
# tyGSOctalDevCreateAll(char *base, char *moduleID, int rdBufSize,
|
||||
# int wrtBufSize)
|
||||
# base - base name for these devices.
|
||||
# moduleID - module identifier from the call to tyGSOctalModuleInit().
|
||||
# rdBufSize - read buffer size, in bytes.
|
||||
# wrtBufSize - write buffer size, in bytes.
|
||||
|
||||
# Initialze all the remaining uninitialized Mod0 ports; i.e., /tyGS0/0/[2-7].
|
||||
#!tyGSOctalDevCreateAll "/tyGS0/Mod0/", "Mod0", 512, 512
|
||||
|
||||
# Configurd asyn serial port.
|
||||
# ---------------------------
|
||||
# drvAsynSerialPortConfigure("portName","ttyName",priority,noAutoConnect,
|
||||
# noProcessEosIn)
|
||||
#
|
||||
# portName - The portName that is registered with asynGpib.
|
||||
# ttyName - The name of the local serial port (e.g. "/dev/ttyS0").
|
||||
# priority - Priority at which the asyn I/O thread will run. If this is
|
||||
# zero or missing,then epicsThreadPriorityMedium is used.
|
||||
# noAutoConnect - Zero or missing indicates that portThread should
|
||||
# automatically connect. Non-zero if explicit connect command
|
||||
# must be issued.
|
||||
# noProcessEos - If 0 then asynInterposeEosConfig is called specifying both
|
||||
# processEosIn and processEosOut.
|
||||
|
||||
#!drvAsynSerialPortConfigure("L0","/tyGS0/Mod0/0",0,0,0)
|
||||
#!drvAsynSerialPortConfigure("L1","/tyGS0/Mod0/1",0,0,0)
|
||||
|
||||
#!asynSetOption("L0", 0, "baud", "9600")
|
||||
#!asynSetOption("L0", 0, "bits", "8")
|
||||
#!asynSetOption("L0", 0, "parity", "none")
|
||||
#!asynSetOption("L0", 0, "stop", "1")
|
||||
#!asynSetOption("L0", 0, "clocal", "Y")
|
||||
#!asynSetOption("L0", 0, "crtscts", "N")
|
||||
|
||||
# ASYN trace masks
|
||||
#!asynSetTraceMask( "L0", 0, 0x9 )
|
||||
#!asynSetTraceIOMask( "L0", 0, 0x1 )
|
||||
|
||||
#!asynSetOption("L1", 0, "baud", "9600")
|
||||
#!asynSetOption("L1", 0, "bits", "8")
|
||||
#!asynSetOption("L1", 0, "parity", "none")
|
||||
#!asynSetOption("L1", 0, "stop", "1")
|
||||
#!asynSetOption("L1", 0, "clocal", "Y")
|
||||
#!asynSetOption("L1", 0, "crtscts", "N")
|
||||
|
||||
# TCP/IP or UDP/IP ASYN port configuration.
|
||||
#
|
||||
# drvAsynIPPortConfigure("portName", "hostInfo", priority, noAutoConnect,
|
||||
# noProcessEos)
|
||||
# (1) portName - The portName that is registered with asynGpib.
|
||||
# (2) hostInfo - The Internet host name, port number and optional IP protocol
|
||||
# of the device (e.g. "164.54.9.90:4002", "serials8n3:4002",
|
||||
# "serials8n3:4002 TCP" or "164.54.17.43:5186 udp"). If no
|
||||
# protocol is specified, TCP will be used.
|
||||
# (3) priority - Priority at which the asyn I/O thread will run. If zero or
|
||||
# missing, then epicsThreadPriorityMedium is used.
|
||||
# (4) noAutoConnect - Zero or missing indicates that portThread should
|
||||
# automatically connect. Non-zero if explicit connect
|
||||
# command must be issued.
|
||||
# (5) noProcessEos - If 0 then asynInterposeEosConfig is called specifying
|
||||
# both processEosIn and processEosOut.
|
||||
#!drvAsynIPPortConfigure("tcp1","164.54.160.124:5001 tcp", 0, 0, 1)
|
||||
#!drvAsynIPPortConfigure("tcp2","164.54.160.131:5001 tcp", 0, 0, 1)
|
||||
|
||||
Reference in New Issue
Block a user