-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from epics-motor/model3_ioc
Updates the iocBoot directory to load the Model 3 driver, not the obsolete Model 2 driver.
- Loading branch information
Showing
5 changed files
with
24 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
#!../../bin/linux-x86_64/motorSim | ||
# The is the ASYN example for communication to 4 simulated motors | ||
# "#!" marks lines that can be uncommented. | ||
|
||
< envPaths | ||
|
||
cd "${TOP}" | ||
dbLoadDatabase("$(TOP)/dbd/motorSim.dbd") | ||
motorSim_registerRecordDeviceDriver(pdbbase) | ||
|
||
## Register all support components | ||
dbLoadDatabase "dbd/motorSim.dbd" | ||
motorSim_registerRecordDeviceDriver pdbbase | ||
dbLoadTemplate("motor.substitutions") | ||
|
||
cd "${TOP}/iocBoot/${IOC}" | ||
motorSimCreateController("motorSim1", 8) | ||
#asynSetTraceIOMask("motorSim1", 0, HEX) | ||
#asynSetTraceMask("motorSim1", 0, ERROR|FLOW|DRIVER) | ||
|
||
|
||
## motorUtil (allstop & alldone) | ||
dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=motorSim:") | ||
|
||
## | ||
# motorSimConfigAxis(port, axis, lowLimit, highLimit, home, start) | ||
motorSimConfigAxis("motorSim1", 0, 20000, -20000, 500, 0) | ||
motorSimConfigAxis("motorSim1", 1, 20000, -20000, 1500, 0) | ||
motorSimConfigAxis("motorSim1", 2, 20000, -20000, 2500, 0) | ||
motorSimConfigAxis("motorSim1", 3, 20000, -20000, 3000, 0) | ||
motorSimConfigAxis("motorSim1", 4, 20000, -20000, 500, 0) | ||
motorSimConfigAxis("motorSim1", 5, 20000, -20000, 1500, 0) | ||
motorSimConfigAxis("motorSim1", 6, 20000, -20000, 2500, 0) | ||
motorSimConfigAxis("motorSim1", 7, 20000, -20000, 3000, 0) | ||
|
||
iocInit | ||
|
||
## motorUtil (allstop & alldone) | ||
motorUtilInit("motorSim:") | ||
|
||
# Boot complete | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.