From ce19afa932f112ed8f3042f474fee6416af9b8a1 Mon Sep 17 00:00:00 2001 From: Carlos Doro Neto Date: Fri, 12 Jan 2024 14:27:49 +0100 Subject: [PATCH] Pass ECMC_EGU, ECMC_PREC and ECMC_HOME_PROC to dbLoadRecords(ecmcAxis.db) --- motion/ecmc_axis-records.cmd | 2 +- motion/ecmc_virt_axis-records.cmd | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/motion/ecmc_axis-records.cmd b/motion/ecmc_axis-records.cmd index 48e0fc200..fadcc25dc 100644 --- a/motion/ecmc_axis-records.cmd +++ b/motion/ecmc_axis-records.cmd @@ -14,7 +14,7 @@ ecmcFileExist("${ECMC_CONFIG_ROOT}ecmc_axis.cmd",1) ${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmc_axis.cmd ecmcFileExist("ecmcAxis.db",1,1) -dbLoadRecords("ecmcAxis.db","P=${ECMC_PREFIX},AXIS_NAME=${ECMC_MOTOR_NAME},AXIS_NO=${ECMC_AXIS_NO},HOMEPROC=${ECMC_HOME_PROC=0},PORT=${ECMC_ASYN_PORT},ADDR=0,TIMEOUT=1,T_SMP_MS=${ECMC_SAMPLE_RATE_MS},TSE=${ECMC_TSE}") +dbLoadRecords("ecmcAxis.db","P=${ECMC_PREFIX},AXIS_NAME=${ECMC_MOTOR_NAME},AXIS_NO=${ECMC_AXIS_NO},HOMEPROC=${ECMC_HOME_PROC=0},PORT=${ECMC_ASYN_PORT},ADDR=0,TIMEOUT=1,T_SMP_MS=${ECMC_SAMPLE_RATE_MS},TSE=${ECMC_TSE},EGU=${ECMC_EGU},PREC=${ECMC_PREC}") #- This is an REAL axis == type 1 ecmcFileExist("ecmcAxisType.db",1,1) dbLoadRecords("ecmcAxisType.db","P=${ECMC_PREFIX},AXIS_NAME=${ECMC_MOTOR_NAME},AXIS_TYPE=1,DRV_TYPE=$(ECMC_DRV_TYPE=0),TRAJ_TYPE=$(ECMC_TRAJ_TYPE=0)") diff --git a/motion/ecmc_virt_axis-records.cmd b/motion/ecmc_virt_axis-records.cmd index 9c7c74ea8..aa87b9e55 100644 --- a/motion/ecmc_virt_axis-records.cmd +++ b/motion/ecmc_virt_axis-records.cmd @@ -14,7 +14,8 @@ ecmcFileExist("${ecmccfg_DIR}ecmc_virt_axis.cmd",1) ${SCRIPTEXEC}( ${ecmccfg_DIR}ecmc_virt_axis.cmd ) ecmcFileExist("ecmcAxis.db",1,1) -dbLoadRecords("ecmcAxis.db","P=${ECMC_PREFIX},AXIS_NAME=${ECMC_MOTOR_NAME},AXIS_NO=${ECMC_AXIS_NO},PORT=${ECMC_ASYN_PORT},ADDR=0,TIMEOUT=1,T_SMP_MS=${ECMC_SAMPLE_RATE_MS},TSE=${ECMC_TSE}") +dbLoadRecords("ecmcAxis.db","P=${ECMC_PREFIX},AXIS_NAME=${ECMC_MOTOR_NAME},AXIS_NO=${ECMC_AXIS_NO},HOMEPROC=${ECMC_HOME_PROC=0},PORT=${ECMC_ASYN_PORT},ADDR=0,TIMEOUT=1,T_SMP_MS=${ECMC_SAMPLE_RATE_MS},TSE=${ECMC_TSE},EGU=${ECMC_EGU},PREC=${ECMC_PREC}") + #- This is an VIRT axis == type 2 ecmcFileExist("ecmcAxisType.db",1,1) dbLoadRecords("ecmcAxisType.db","P=${ECMC_PREFIX},AXIS_NAME=${ECMC_MOTOR_NAME},AXIS_TYPE=2,DRV_TYPE=2,TRAJ_TYPE=$(ECMC_TRAJ_TYPE=0)")