From c8a067adb5b662aa5a388a84e19a2c2fdcc55a3a Mon Sep 17 00:00:00 2001 From: Peter Denison Date: Sat, 3 Feb 2007 12:10:31 +0000 Subject: [PATCH] Updated simulation motor tests to have 3 motors, and non-zero home/start posn --- motorApp/MotorSimSrc/motorSimTest.db | 42 ++++++++++++++++++++++++++- motorApp/MotorSimSrc/motorSimTest.src | 2 +- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/motorApp/MotorSimSrc/motorSimTest.db b/motorApp/MotorSimSrc/motorSimTest.db index 0e5a38ed..ca8a698c 100644 --- a/motorApp/MotorSimSrc/motorSimTest.db +++ b/motorApp/MotorSimSrc/motorSimTest.db @@ -1,4 +1,4 @@ -grecord(motor,"$(DEVICE):test") +record(motor,"$(DEVICE):test0") { field(DESC,"Motor Simulation test") field(DTYP,"Motor Simulation") @@ -18,3 +18,43 @@ grecord(motor,"$(DEVICE):test") field(DLLM,"-30") } +record(motor,"$(DEVICE):test1") +{ + field(DESC,"Motor Simulation test") + field(DTYP,"Motor Simulation") + field(VELO,"1") + field(VBAS,"0") + field(VMAX,"1") + field(HVEL,"1") + field(ACCL,"1") + field(BDST,"0.01") + field(BVEL,"0.1") + field(BACC,"0.1") + field(OUT,"#C0 S1 @motorSim") + field(MRES,"0.001") + field(PREC,"5") + field(EGU,"mm") + field(DHLM,"30") + field(DLLM,"-30") +} + +record(motor,"$(DEVICE):test2") +{ + field(DESC,"Motor Simulation test") + field(DTYP,"Motor Simulation") + field(VELO,"1") + field(VBAS,"0") + field(VMAX,"1") + field(HVEL,"1") + field(ACCL,"1") + field(BDST,"0.01") + field(BVEL,"0.1") + field(BACC,"0.1") + field(OUT,"#C0 S2 @motorSim") + field(MRES,"0.001") + field(PREC,"5") + field(EGU,"mm") + field(DHLM,"30") + field(DLLM,"-30") +} + diff --git a/motorApp/MotorSimSrc/motorSimTest.src b/motorApp/MotorSimSrc/motorSimTest.src index a5c140f2..244ae2b3 100644 --- a/motorApp/MotorSimSrc/motorSimTest.src +++ b/motorApp/MotorSimSrc/motorSimTest.src @@ -30,7 +30,7 @@ dbLoadRecords("db/motorSimTest.db","DEVICE=motorSim") ## Set this to see messages from mySub #mySubDebug 1 -motorSimCreate( 0, 0, -32000, 32000, 0, 1, 1 ) +motorSimCreate( 0, 0, -22000, 42000, 10000, 1, 3, 5000 ) iocInit()