From dcf068a9c4017f188fdfc398996b5a6916150f87 Mon Sep 17 00:00:00 2001 From: Kurt Goetze Date: Thu, 7 Jun 2012 21:20:04 +0000 Subject: [PATCH] Add Newport SMC100 support --- iocBoot/iocWithAsyn/motor.substitutions.SMC100 | 6 ++++++ iocBoot/iocWithAsyn/st.cmd.SMC100 | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 iocBoot/iocWithAsyn/motor.substitutions.SMC100 create mode 100644 iocBoot/iocWithAsyn/st.cmd.SMC100 diff --git a/iocBoot/iocWithAsyn/motor.substitutions.SMC100 b/iocBoot/iocWithAsyn/motor.substitutions.SMC100 new file mode 100644 index 00000000..3b4ea840 --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.substitutions.SMC100 @@ -0,0 +1,6 @@ +file "$(TOP)/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, RTRY} +{IOC:, 1, "m$(N)", "asynMotor", "SMC100_1", 0, "GTS30V", mm, Pos, 1, 0, .2, 0, .5, .2, 0.00001, 6, 25, -5, ""} +} diff --git a/iocBoot/iocWithAsyn/st.cmd.SMC100 b/iocBoot/iocWithAsyn/st.cmd.SMC100 new file mode 100644 index 00000000..fac9cf43 --- /dev/null +++ b/iocBoot/iocWithAsyn/st.cmd.SMC100 @@ -0,0 +1,15 @@ + +### Motors +dbLoadTemplate "motor.substitutions.SMC100" + +### Serial port setup +drvAsynSerialPortConfigure("serial1", "/dev/ttyS0", 0, 0, 0) +asynSetOption(serial1,0,baud,57600) +asynOctetSetInputEos("serial1",0,"\r\n") +asynOctetSetOutputEos("serial1",0,"\r\n") + +### Newport SMC100 support +# (driver port, serial port, axis num, ms mov poll, ms idle poll) +SMC100CreateController("SMC100_1", "serial1",1, 100, 0) + +iocInit