From 4df2642299ffcbfd4cbc28d6903c8b2d13403d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Wed, 26 Feb 2025 09:54:39 +0100 Subject: [PATCH] Add axis template --- Db/ecmcSS1Axis.template | 13 +++++++++++++ scripts/addAxisToSafetyGroup.cmd | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 Db/ecmcSS1Axis.template diff --git a/Db/ecmcSS1Axis.template b/Db/ecmcSS1Axis.template new file mode 100644 index 0000000..fd0178f --- /dev/null +++ b/Db/ecmcSS1Axis.template @@ -0,0 +1,13 @@ +#- Will be a sub record to the axis object, example: +#- AXIS_PREFIX=c6015a-02:M1 +record(stringin,"$(AXIS_PREFIX)-SS1-GrpNam") { + field(DESC, "Name of Saftey Grp ") + field(VAL, "${NAME}") +} + +record(bi,"${AXIS_PREFIX}-SS1-EnaAct"){ + field(DESC, "Safety PLG active for this axis") + field(VAL, 1) + field(ONAM, "1") + field(ZNAM, "0") +} diff --git a/scripts/addAxisToSafetyGroup.cmd b/scripts/addAxisToSafetyGroup.cmd index ae08c45..ba3270a 100644 --- a/scripts/addAxisToSafetyGroup.cmd +++ b/scripts/addAxisToSafetyGroup.cmd @@ -30,3 +30,6 @@ #- : NOT USED (for future implemenation). Time for axis to be below velo limit [ms]. ecmcAddAxisToSafetyGroup("${NAME}",${AX_ID},${VELO_REST_LIM=0},0,${VELO_MAX_LIM=0.0}) + +#- Load SS1 axis records +dbLoadRecords("ecmcSS1Axis.template","AXIS_PREFIX=${ECMC_MOTOR_1_FULL_NAME=},NAME=${NAME}")