Add Newport SMC100 support

This commit is contained in:
Kurt Goetze
2012-06-07 21:20:04 +00:00
parent 5643514721
commit dcf068a9c4
2 changed files with 21 additions and 0 deletions
@@ -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, ""}
}
+15
View File
@@ -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