diff --git a/iocBoot/iocWithAsyn/motor.cmd.mmc200 b/iocBoot/iocWithAsyn/motor.cmd.mmc200 new file mode 100644 index 00000000..08f65b05 --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.cmd.mmc200 @@ -0,0 +1,30 @@ +dbLoadTemplate("motor.substitutions.mmc200") + +### RS-232 with RS-485 adpater (serial6) +#!PORT="serial6" +### RS-485 (rs485p1) +PORT="rs485p1" + +#!asynOctetSetInputEos(PORT,0,"\n\r") +#!asynOctetSetOutputEos(PORT,0,"\r") + +# Turn on asyn traces +#!asynSetTraceIOMask(PORT,0,0x1) +#!asynSetTraceMask(PORT,0,0x3) + +### +# MMC200CreateController( +# motor port (will be created), +# asyn port (must already exist), +# num axes, +# moving poll period (ms), +# idle poll period (ms), +# ignore limit flag) +### +#!MMC200CreateController("mmc200_1", PORT, 2, 500, 2000, 1) +MMC200CreateController("mmc200_1", PORT, 2, 500, 0, 1) + +# Turn off asyn traces +#!asynSetTraceIOMask(PORT,0,0x0) +#!asynSetTraceMask(PORT,0,0x1) + diff --git a/iocBoot/iocWithAsyn/motor.substitutions.mmc200 b/iocBoot/iocWithAsyn/motor.substitutions.mmc200 new file mode 100644 index 00000000..4bd54523 --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.substitutions.mmc200 @@ -0,0 +1,7 @@ +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} + {IOC:, m1, "asynMotor", mmc200_1, 0, "m1", mm, Pos, 15., 3., .05, .5, 0, 1.0, 2, 2.44140625e-6, 5, 0, 0, ""} + {IOC:, m2, "asynMotor", mmc200_1, 1, "m2", mm, Pos, 15., 3., .05, .5, 0, 1.0, 2, 2.44140625e-6, 5, 0, 0, ""} +}