mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Improved the example IOC
This commit is contained in:
@@ -21,12 +21,14 @@ acs_DBD += base.dbd
|
|||||||
# Include dbd files from all support applications:
|
# Include dbd files from all support applications:
|
||||||
#ifdef ASYN
|
#ifdef ASYN
|
||||||
acs_DBD += asyn.dbd
|
acs_DBD += asyn.dbd
|
||||||
|
acs_DBD += drvAsynSerialPort.dbd
|
||||||
|
acs_DBD += drvAsynIPPort.dbd
|
||||||
#endif
|
#endif
|
||||||
acs_DBD += motorSupport.dbd
|
acs_DBD += motorSupport.dbd
|
||||||
acs_DBD += devAcs.dbd
|
acs_DBD += devAcsMotor.dbd
|
||||||
|
|
||||||
# Add all the support libraries needed by this IOC
|
# Add all the support libraries needed by this IOC
|
||||||
acs_LIBS += acs
|
acs_LIBS += Acs
|
||||||
acs_LIBS += motor
|
acs_LIBS += motor
|
||||||
#ifdef ASYN
|
#ifdef ASYN
|
||||||
acs_LIBS += asyn
|
acs_LIBS += asyn
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
file "$(TOP)/db/basic_asyn_motor.db"
|
file "$(MOTOR)/db/basic_asyn_motor.db"
|
||||||
{
|
{
|
||||||
pattern
|
pattern
|
||||||
{P, N, M, DTYP, PORT, ADDR, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT}
|
{P, N, M, DTYP, PORT, ADDR, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT}
|
||||||
|
@@ -1,8 +1,5 @@
|
|||||||
#!../../bin/linux-x86_64/acs
|
#!../../bin/linux-x86_64/acs
|
||||||
|
|
||||||
## You may have to change acs to something else
|
|
||||||
## everywhere it appears in this file
|
|
||||||
|
|
||||||
< envPaths
|
< envPaths
|
||||||
|
|
||||||
cd "${TOP}"
|
cd "${TOP}"
|
||||||
@@ -11,11 +8,17 @@ cd "${TOP}"
|
|||||||
dbLoadDatabase "dbd/acs.dbd"
|
dbLoadDatabase "dbd/acs.dbd"
|
||||||
acs_registerRecordDeviceDriver pdbbase
|
acs_registerRecordDeviceDriver pdbbase
|
||||||
|
|
||||||
## Load record instances
|
|
||||||
#dbLoadRecords("db/xxx.db","user=kpetersn")
|
|
||||||
|
|
||||||
cd "${TOP}/iocBoot/${IOC}"
|
cd "${TOP}/iocBoot/${IOC}"
|
||||||
|
|
||||||
|
|
||||||
|
## motorUtil (allstop & alldone)
|
||||||
|
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=acs:")
|
||||||
|
|
||||||
|
##
|
||||||
|
|
||||||
iocInit
|
iocInit
|
||||||
|
|
||||||
## Start any sequence programs
|
## motorUtil (allstop & alldone)
|
||||||
#seq sncxxx,"user=kpetersn"
|
motorUtilInit("acs:")
|
||||||
|
|
||||||
|
# Boot complete
|
||||||
|
@@ -1,11 +1,14 @@
|
|||||||
#errlogInit(5000)
|
#errlogInit(5000)
|
||||||
< envPaths
|
< 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)
|
# Tell EPICS all about the record types, device-support modules, drivers, etc.
|
||||||
|
dbLoadDatabase("../../dbd/acs.dbd")
|
||||||
|
acs_registerRecordDeviceDriver(pdbbase)
|
||||||
|
|
||||||
|
# Port 2 on a Moxa
|
||||||
|
drvAsynIPPortConfigure("serial1", "192.168.1.16:4002",0,0,0)
|
||||||
|
# Local serial port
|
||||||
|
#!drvAsynSerialPortConfigure("serial1", "/dev/ttyS0", 0, 0, 0)
|
||||||
asynOctetSetInputEos("serial1",0,"\r")
|
asynOctetSetInputEos("serial1",0,"\r")
|
||||||
asynOctetSetOutputEos("serial1",0,"\r")
|
asynOctetSetOutputEos("serial1",0,"\r")
|
||||||
asynSetTraceIOMask("serial1", 0, 2)
|
asynSetTraceIOMask("serial1", 0, 2)
|
||||||
|
Reference in New Issue
Block a user