From f7e8b98b73996b19cbd62e127a59e2a3075c768c Mon Sep 17 00:00:00 2001
From: timmmooney <mooney@aps.anl.gov>
Date: Thu, 15 Feb 2007 18:32:59 +0000
Subject: [PATCH] new file

---
 iocBoot/iocCygwin/motorSim.cmd           |  9 +++++++++
 iocBoot/iocCygwin/motorSim.substitutions | 13 +++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 iocBoot/iocCygwin/motorSim.cmd
 create mode 100644 iocBoot/iocCygwin/motorSim.substitutions

diff --git a/iocBoot/iocCygwin/motorSim.cmd b/iocBoot/iocCygwin/motorSim.cmd
new file mode 100644
index 0000000..11af9a5
--- /dev/null
+++ b/iocBoot/iocCygwin/motorSim.cmd
@@ -0,0 +1,9 @@
+# The is the ASYN example for communication to 4 simulated motors
+# "#!" marks lines that can be uncommented.
+
+dbLoadTemplate("motorSim.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)
diff --git a/iocBoot/iocCygwin/motorSim.substitutions b/iocBoot/iocCygwin/motorSim.substitutions
new file mode 100644
index 0000000..91f9298
--- /dev/null
+++ b/iocBoot/iocCygwin/motorSim.substitutions
@@ -0,0 +1,13 @@
+file "$(MOTOR)/db/basic_asyn_motor.db"
+{
+pattern
+{P,     N,  M,      DTYP,            PORT, ADDR,  DESC,          EGU,      DIR,  VELO,  VBAS,  ACCL,  BDST,  BVEL,  BACC,  MRES,  PREC,  DHLM,  DLLM,  INIT}
+{xxx:,  1,  "m$(N)",  "asynMotor",  motorSim1,  0,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  2,  "m$(N)",  "asynMotor",  motorSim1,  1,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  3,  "m$(N)",  "asynMotor",  motorSim1,  2,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  4,  "m$(N)",  "asynMotor",  motorSim1,  3,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  5,  "m$(N)",  "asynMotor",  motorSim1,  4,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  6,  "m$(N)",  "asynMotor",  motorSim1,  5,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  7,  "m$(N)",  "asynMotor",  motorSim1,  6,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+{xxx:,  8,  "m$(N)",  "asynMotor",  motorSim1,  7,  "motor $(N)",  degrees,  Pos,  1,     .1,    .2,    0,     1,     .2,    0.01,  5,     100,   -100,  ""}
+}
-- 
GitLab