From 5b110190212c17845355e91c57dcd3fa4188a1e4 Mon Sep 17 00:00:00 2001 From: kmpeters Date: Thu, 13 Jun 2013 19:13:33 +0000 Subject: [PATCH] Added Newport hexapod examples to iocWithAsyn. Updated README. --- README | 13 +++++++++++++ iocBoot/iocWithAsyn/motor.cmd.hxp | 6 ++++++ iocBoot/iocWithAsyn/motor.substitutions.hxp | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 iocBoot/iocWithAsyn/motor.cmd.hxp create mode 100644 iocBoot/iocWithAsyn/motor.substitutions.hxp diff --git a/README b/README index 4aed746f..091a4186 100644 --- a/README +++ b/README @@ -208,6 +208,19 @@ Modification Log for R6-8 motorApp/NPointSrc/Makefile motorApp/NPointSrc/NPointMotorSupport.dbd +9) Added RTRY field to asyn_motor.db with default value of 10 to allow new + support the option of overriding the number of retries without breaking + existing support. + +10) Added support for the Newport Hexapod (HXP): + + Files added: iocBoot/iocWithAsyn/motor.substitutions.hxp + iocBoot/iocWithAsyn/motor.cmd.hxp + motorApp/Db/HXP_extra.db + motorApp/NewportSrc/HXPDriver.{cpp,h} + motorApp/NewportSrc/hxp_drivers.{cpp,h} + motorApp/NewportSrc/hxp_error.h + Modification Log for R6-7 ========================= diff --git a/iocBoot/iocWithAsyn/motor.cmd.hxp b/iocBoot/iocWithAsyn/motor.cmd.hxp new file mode 100644 index 00000000..077b33b4 --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.cmd.hxp @@ -0,0 +1,6 @@ +dbLoadTemplate("motor.substitutions.hxp") + +HXPCreateController("HXP1", "192.168.1.42", 5001, 200, 1000) + +#asynSetTraceIOMask("HXP1", 0, 2) +#asynSetTraceMask("HXP1", 0, 255) diff --git a/iocBoot/iocWithAsyn/motor.substitutions.hxp b/iocBoot/iocWithAsyn/motor.substitutions.hxp new file mode 100644 index 00000000..24b641f2 --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.substitutions.hxp @@ -0,0 +1,19 @@ +file "$(MOTOR)/motorApp/Db/asyn_motor.db" +{ + pattern + {P, M, DTYP, PORT, ADDR, DESC, EGU, DIR, VMAX, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT, RTRY} + {xxx:hxp:c0:, m1, "asynMotor", HXP1, 0, "X", mm, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.00001, 5, 0, 0, "", 0} + {xxx:hxp:c0:, m2, "asynMotor", HXP1, 1, "Y", mm, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.00001, 5, 0, 0, "", 0} + {xxx:hxp:c0:, m3, "asynMotor", HXP1, 2, "Z", mm, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.00001, 5, 0, 0, "", 0} + {xxx:hxp:c0:, m4, "asynMotor", HXP1, 3, "U", degrees, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.00001, 5, 0, 0, "", 0} + {xxx:hxp:c0:, m5, "asynMotor", HXP1, 4, "V", degrees, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.00001, 5, 0, 0, "", 0} + {xxx:hxp:c0:, m6, "asynMotor", HXP1, 5, "W", degrees, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.00001, 5, 0, 0, "", 0} +} + +# Extra HXP controller support (coordinate-system, status and error PVs) +file "$(MOTOR)/motorApp/Db/HXP_extra.db" +{ + pattern + {P, R, PORT, CHAN} + {xxx:, hxp:c0:, HXP1, 0} +}