commit f6d7d2da24300d5a63a38dabbbba124f7d63b38a Author: soederqvist_a Date: Fri Aug 29 17:05:44 2025 +0200 add db and sim db diff --git a/README.md b/README.md new file mode 100644 index 0000000..3cca6a9 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +### Motor Deprecated +This module contains helpers for "EOL"/deprecated/minimum-supported motion controllers, such as the EL734, Phytron, nanotec, huber. diff --git a/db/motorDeprecated.db b/db/motorDeprecated.db new file mode 100644 index 0000000..c95f402 --- /dev/null +++ b/db/motorDeprecated.db @@ -0,0 +1,48 @@ +record(motor,"$(P)$(M)") +{ + field(DESC,"$(DESC)") + field(DTYP,"$(DTYP)") + field(DIR,"$(DIR)") + field(VMAX,"$(VELO)") + field(VELO,"$(VELO)") + field(VBAS,"$(VELO)") + field(ACCL,"$(ACCL)") + field(BDST,"$(BDST)") + field(BVEL,"$(BVEL)") + field(BACC,"$(BACC)") + field(OUT,"@asyn($(PORT),$(ADDR))") + field(MRES,"$(MRES)") + field(PREC,"$(PREC)") + field(EGU,"$(EGU)") + field(DHLM,"$(DHLM)") + field(DLLM,"$(DLLM)") + field(INIT,"$(INIT)") + field(PINI, "NO") + field(TWV,"1") + field(RDBD,"$(RDBD)") +} + + +# The message text +record(waveform, "$(P)$(M)-MsgTxt") { + field(DTYP, "asynOctetRead") + field(INP, "@asyn($(PORT),$(N),1) MOTOR_MESSAGE_TEXT") + field(FTVL, "CHAR") + field(NELM, "80") + field(SCAN, "I/O Intr") +} + +# enable axis +record(longout, "$(P)$(M):Enable") { + field(DTYP, "asynInt32") + field(OUT, "@asyn($(PORT),$(N),1) ENABLE_AXIS") + field(PINI, "NO") +} + +# enable axis +record(longin, "$(P)$(M):Enable_RBV") { + field(DTYP, "asynInt32") + field(INP, "@asyn($(PORT),$(N),1) AXIS_ENABLED") + field(PINI, "YES") + field(SCAN, "1 second") +} diff --git a/db/motorDeprecatedSim.db b/db/motorDeprecatedSim.db new file mode 100644 index 0000000..8a0b78b --- /dev/null +++ b/db/motorDeprecatedSim.db @@ -0,0 +1,47 @@ +record(motor,"$(P)$(M)") +{ + field(DESC,"$(DESC)") + field(DTYP,"$(DTYP)") + field(DIR,"$(DIR)") + field(VELO,"$(VELO)") + field(VBAS,"$(VBAS)") + field(ACCL,"$(ACCL)") + field(BDST,"$(BDST)") + field(BVEL,"$(BVEL)") + field(BACC,"$(BACC)") + field(OUT,"@asyn($(PORT),$(ADDR))") + field(MRES,"$(MRES)") + field(PREC,"$(PREC)") + field(EGU,"$(EGU)") + field(DHLM,"$(DHLM)") + field(DLLM,"$(DLLM)") + field(INIT,"$(INIT)") + field(TWV,"1") + field(RDBD,"$(RDBD)") +} + + +# The message text +record(waveform, "$(P)$(M)-MsgTxt") { + field(DTYP, "Soft Channel") + field(FTVL, "CHAR") + field(NELM, "80") +} + +# enable axis +record(longout, "$(P)$(M):Enable") { + field(DTYP, "Soft Channel") + field(PINI, "YES") +} + +# enable axis +record(longin, "$(P)$(M):Enable_RBV") { + field(DTYP, "Soft Channel") + field(INP, "$(P)$(M):Enable") + field(SCAN, "1 second") +} + +# reread encoder +record(longout, "$(P)$(M):Reread_Encoder") { + field(DTYP, "Soft Channel") +}