Initial commit of the PSI version of motorMotorSim as a standalone
driver.
This commit is contained in:
16
iocs/motorSimIOC/iocBoot/iocMotorSim/st.cmd.win32
Executable file
16
iocs/motorSimIOC/iocBoot/iocMotorSim/st.cmd.win32
Executable file
@@ -0,0 +1,16 @@
|
||||
# The is the ASYN example for communication to 4 simulated motors
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
< envPaths
|
||||
|
||||
dbLoadDatabase("$(TOP)/dbd/motorSim.dbd")
|
||||
motorSim_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
dbLoadTemplate("motor.substitutions")
|
||||
|
||||
# Create simulated motors: ( start card , start axis , low limit, high limit, home posn, # cards, # axes to setup)
|
||||
motorSimCreate( 0, 0, -32000, 32000, 0, 1, 4 )
|
||||
# Setup the Asyn layer (portname, low-level driver drvet name, card, number of axes on card)
|
||||
drvAsynMotorConfigure("motorSim1", "motorSim", 0, 4)
|
||||
|
||||
iocInit
|
||||
Reference in New Issue
Block a user