mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Renamed "*acs*" files to "*dsm*".
This commit is contained in:
38
iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90
Normal file
38
iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90
Normal file
@@ -0,0 +1,38 @@
|
||||
#errlogInit(5000)
|
||||
< envPaths
|
||||
|
||||
# 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("serial0", "192.168.1.16:4002",0,0,0)
|
||||
# Local serial port
|
||||
#!drvAsynSerialPortConfigure("serial0", "/dev/ttyS0", 0, 0, 0)
|
||||
drvAsynSerialPortConfigure("serial0", "/tmp/motorport", 0, 0, 0)
|
||||
asynSetOption("serial0", 0, "baud", "115200")
|
||||
asynSetOption("serial0", 0, "bits", "8")
|
||||
asynSetOption("serial0", 0, "parity", "none")
|
||||
asynSetOption("serial0", 0, "stop", "1")
|
||||
|
||||
# not sure if these two are needed or what they should be set to:
|
||||
#!asynSetOption("serial0", 0, "clocal", "Y")
|
||||
#!asynSetOption("serial0", 0, "crtscts", "Y")
|
||||
|
||||
asynOctetSetInputEos("serial0", 0, "\r")
|
||||
asynOctetSetOutputEos("serial0", 0, "\r")
|
||||
asynSetTraceIOMask("serial0", 0, 2)
|
||||
#asynSetTraceMask("serial0", 0, 255)
|
||||
|
||||
MCB4BCreateController("MCB4B0", "serial0", 1, 100, 5000)
|
||||
|
||||
### Motors
|
||||
dbLoadTemplate "motor.substitutions.mcb4b"
|
||||
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db", "P=DSM:,R=serial0,PORT=serial0,ADDR=0,OMAX=80,IMAX=80")
|
||||
|
||||
iocInit
|
||||
|
||||
# This IOC does not use save/restore, so set values of some PVs
|
||||
dbpf("DSM:m0.RTRY", "0")
|
||||
dbpf("DSM:m0.TWV", "0.1")
|
Reference in New Issue
Block a user