mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
New file for ACS MCB-4B with Model 3 driver
This commit is contained in:
9
iocs/acsIOC/iocBoot/iocAcs/motor.substitutions.mcb4b
Normal file
9
iocs/acsIOC/iocBoot/iocAcs/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, ""}
|
||||||
|
}
|
31
iocs/acsIOC/iocBoot/iocAcs/st.cmd.mcb4b
Normal file
31
iocs/acsIOC/iocBoot/iocAcs/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")
|
Reference in New Issue
Block a user