From a9fee7fd954c204a4c238eb8d2ffc1f3e46d3939 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Thu, 17 Dec 2009 05:54:59 +0000 Subject: [PATCH] Added 4 more motors with new simulation driver --- iocBoot/iocSim/st.cmd.unix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/iocBoot/iocSim/st.cmd.unix b/iocBoot/iocSim/st.cmd.unix index 6b6cbc10..14fbd743 100644 --- a/iocBoot/iocSim/st.cmd.unix +++ b/iocBoot/iocSim/st.cmd.unix @@ -3,12 +3,22 @@ < envPaths -dbLoadDatabase("$(TOP)/dbd/WithMPF.dbd") -WithMPF_registerRecordDeviceDriver(pdbbase) +dbLoadDatabase("$(TOP)/dbd/WithAsyn.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) + +motorSimCreateController("motorSim2", 8) +#asynSetTraceIOMask("motorSim2", 0, 4) +#asynSetTraceMask("motorSim2", 0, 255) + +# motorSimConfigAxis(port, axis, lowLimit, highLimit, home, start) +motorSimConfigAxis("motorSim2", 0, 20000, -20000, 500, 0) +motorSimConfigAxis("motorSim2", 1, 20000, -20000, 1500, 1000) +motorSimConfigAxis("motorSim2", 2, 20000, -20000, 2500, 2000) +motorSimConfigAxis("motorSim2", 3, 20000, -20000, 3000, 3000) iocInit