diff --git a/iocBoot/iocWithAsyn/motor.substitutions.xps b/iocBoot/iocWithAsyn/motor.substitutions.xps new file mode 100644 index 00000000..1a4b3f06 --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.substitutions.xps @@ -0,0 +1,7 @@ +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} +{IOC:, 1, m$(N), "asynMotor", XPS1, 0, "motor $(N)", degrees, Pos, .3, .1, .2, 0, 1, .2, 0.001, 5, 10, 0, ""} +{IOC:, 2, m$(N), "asynMotor", XPS1, 1, "motor $(N)", degrees, Pos, .3, .1, .2, 0, 1, .2, 0.001, 5, 10, 0, ""} +} diff --git a/iocBoot/iocWithAsyn/st.cmd.xps b/iocBoot/iocWithAsyn/st.cmd.xps new file mode 100644 index 00000000..f725d764 --- /dev/null +++ b/iocBoot/iocWithAsyn/st.cmd.xps @@ -0,0 +1,26 @@ +errlogInit(5000) +< envPaths +# Tell EPICS all about the record types, device-support modules, drivers, +# etc. in this build from CARS +dbLoadDatabase("../../dbd/WithMPF.dbd") +WithMPF_registerRecordDeviceDriver(pdbbase) + +### Motors +dbLoadTemplate "motor.substitutions.xps" + +# cards (total controllers), scan rate +XPSSetup(1) + +# card, IP, PORT, number of axes, active poll, idle poll +XPSConfig(0, "newport-xps3", 5001, 2, 50, 5000) +drvAsynMotorConfigure("XPS1", "motorXPS", 0, 4) + +# card, axis, groupnumber, groupsize,axis in group, group, positioner +XPSConfigAxis(0,0,"GROUP1.POSITIONER", 1000) +XPSConfigAxis(0,1,"GROUP2.POSITIONER", 1000) + +#asynSetTraceMask newport-xps3:5001:0 0 255 +#asynSetTraceIOMask newport-xps3:5001:0 0 2 + +iocInit + diff --git a/iocBoot/iocWithMPF/motor.substitutions.xps b/iocBoot/iocWithMPF/motor.substitutions.xps new file mode 100644 index 00000000..1a4b3f06 --- /dev/null +++ b/iocBoot/iocWithMPF/motor.substitutions.xps @@ -0,0 +1,7 @@ +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} +{IOC:, 1, m$(N), "asynMotor", XPS1, 0, "motor $(N)", degrees, Pos, .3, .1, .2, 0, 1, .2, 0.001, 5, 10, 0, ""} +{IOC:, 2, m$(N), "asynMotor", XPS1, 1, "motor $(N)", degrees, Pos, .3, .1, .2, 0, 1, .2, 0.001, 5, 10, 0, ""} +} diff --git a/iocBoot/iocWithMPF/st.cmd.xps b/iocBoot/iocWithMPF/st.cmd.xps new file mode 100644 index 00000000..f725d764 --- /dev/null +++ b/iocBoot/iocWithMPF/st.cmd.xps @@ -0,0 +1,26 @@ +errlogInit(5000) +< envPaths +# Tell EPICS all about the record types, device-support modules, drivers, +# etc. in this build from CARS +dbLoadDatabase("../../dbd/WithMPF.dbd") +WithMPF_registerRecordDeviceDriver(pdbbase) + +### Motors +dbLoadTemplate "motor.substitutions.xps" + +# cards (total controllers), scan rate +XPSSetup(1) + +# card, IP, PORT, number of axes, active poll, idle poll +XPSConfig(0, "newport-xps3", 5001, 2, 50, 5000) +drvAsynMotorConfigure("XPS1", "motorXPS", 0, 4) + +# card, axis, groupnumber, groupsize,axis in group, group, positioner +XPSConfigAxis(0,0,"GROUP1.POSITIONER", 1000) +XPSConfigAxis(0,1,"GROUP2.POSITIONER", 1000) + +#asynSetTraceMask newport-xps3:5001:0 0 255 +#asynSetTraceIOMask newport-xps3:5001:0 0 2 + +iocInit +