From a58625e02a2e94528acec7046bc63233b5af91dd Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Wed, 6 Oct 2004 20:47:56 +0000 Subject: [PATCH] Use EPICS base dbLoadTemplate(). --- iocBoot/iocWithAsyn/motor.substitutions | 9 +++++++++ iocBoot/iocWithAsyn/st.cmd.Vx | 2 +- iocBoot/iocWithAsyn/st.cmd.unix | 2 +- iocBoot/iocWithMPF/motor.substitutions | 9 +++++++++ iocBoot/iocWithMPF/st.cmd.Vx | 2 +- iocBoot/iocWithMPF/st.cmd.unix | 2 +- 6 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 iocBoot/iocWithAsyn/motor.substitutions create mode 100644 iocBoot/iocWithMPF/motor.substitutions diff --git a/iocBoot/iocWithAsyn/motor.substitutions b/iocBoot/iocWithAsyn/motor.substitutions new file mode 100644 index 00000000..e1cc09eb --- /dev/null +++ b/iocBoot/iocWithAsyn/motor.substitutions @@ -0,0 +1,9 @@ +file basic_motor.db +{ +pattern +{P, N, M, DTYP, C, S, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT} +{rls:, 1, m$(N), "MM4000", 0, 0, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +{rls:, 2, m$(N), "MM4000", 0, 1, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +{rls:, 3, m$(N), "MM4000", 0, 2, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +{rls:, 4, m$(N), "MM4000", 0, 3, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +} diff --git a/iocBoot/iocWithAsyn/st.cmd.Vx b/iocBoot/iocWithAsyn/st.cmd.Vx index dfdc1c18..5ca20cc6 100644 --- a/iocBoot/iocWithAsyn/st.cmd.Vx +++ b/iocBoot/iocWithAsyn/st.cmd.Vx @@ -22,7 +22,7 @@ cd startup dbLoadDatabase("$(TOP)/dbd/WithMPFVx.dbd") WithMPFVx_registerRecordDeviceDriver(pdbbase) -dbLoadRecords("$(TOP)/db/WithMPF.db") +dbLoadTemplate("motor.substitutions") # Configure the ASYN server code. This MUST be configured too! < st_asynserver.cmd.Vx diff --git a/iocBoot/iocWithAsyn/st.cmd.unix b/iocBoot/iocWithAsyn/st.cmd.unix index 3e3c8cee..8ead7c14 100644 --- a/iocBoot/iocWithAsyn/st.cmd.unix +++ b/iocBoot/iocWithAsyn/st.cmd.unix @@ -5,7 +5,7 @@ dbLoadDatabase("$(TOP)/dbd/WithMPF.dbd") WithMPF_registerRecordDeviceDriver(pdbbase) -dbLoadRecords("$(TOP)/db/WithMPF.db") +dbLoadTemplate("motor.substitutions") # The following commands are for a local serial line diff --git a/iocBoot/iocWithMPF/motor.substitutions b/iocBoot/iocWithMPF/motor.substitutions new file mode 100644 index 00000000..e1cc09eb --- /dev/null +++ b/iocBoot/iocWithMPF/motor.substitutions @@ -0,0 +1,9 @@ +file basic_motor.db +{ +pattern +{P, N, M, DTYP, C, S, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT} +{rls:, 1, m$(N), "MM4000", 0, 0, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +{rls:, 2, m$(N), "MM4000", 0, 1, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +{rls:, 3, m$(N), "MM4000", 0, 2, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +{rls:, 4, m$(N), "MM4000", 0, 3, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} +} diff --git a/iocBoot/iocWithMPF/st.cmd.Vx b/iocBoot/iocWithMPF/st.cmd.Vx index dfdc1c18..5ca20cc6 100644 --- a/iocBoot/iocWithMPF/st.cmd.Vx +++ b/iocBoot/iocWithMPF/st.cmd.Vx @@ -22,7 +22,7 @@ cd startup dbLoadDatabase("$(TOP)/dbd/WithMPFVx.dbd") WithMPFVx_registerRecordDeviceDriver(pdbbase) -dbLoadRecords("$(TOP)/db/WithMPF.db") +dbLoadTemplate("motor.substitutions") # Configure the ASYN server code. This MUST be configured too! < st_asynserver.cmd.Vx diff --git a/iocBoot/iocWithMPF/st.cmd.unix b/iocBoot/iocWithMPF/st.cmd.unix index 3e3c8cee..8ead7c14 100644 --- a/iocBoot/iocWithMPF/st.cmd.unix +++ b/iocBoot/iocWithMPF/st.cmd.unix @@ -5,7 +5,7 @@ dbLoadDatabase("$(TOP)/dbd/WithMPF.dbd") WithMPF_registerRecordDeviceDriver(pdbbase) -dbLoadRecords("$(TOP)/db/WithMPF.db") +dbLoadTemplate("motor.substitutions") # The following commands are for a local serial line