From 09212ba3dbeffe64a98b8b2467b23e2eaafac4f4 Mon Sep 17 00:00:00 2001 From: Niko Kivel Date: Thu, 1 Feb 2024 13:29:57 -0600 Subject: [PATCH] EL1859 --- db/Beckhoff_1XXX/ecmcEL1859.substitutions | 25 +++++++++++++++++++++++ hardware/Beckhoff_1XXX/EL/ecmcEL1859.cmd | 19 +++++++++++++++++ hardware/Beckhoff_1XXX/ecmcEX1008.cmd | 16 +++++++-------- 3 files changed, 52 insertions(+), 8 deletions(-) create mode 100644 db/Beckhoff_1XXX/ecmcEL1859.substitutions create mode 100644 hardware/Beckhoff_1XXX/EL/ecmcEL1859.cmd diff --git a/db/Beckhoff_1XXX/ecmcEL1859.substitutions b/db/Beckhoff_1XXX/ecmcEL1859.substitutions new file mode 100644 index 000000000..2bd3d35e6 --- /dev/null +++ b/db/Beckhoff_1XXX/ecmcEL1859.substitutions @@ -0,0 +1,25 @@ +# binary inputs +file "ecmc_binaryInput-chX.template"{ + pattern {CH_ID} + {01 } + {02 } + {03 } + {04 } + {05 } + {06 } + {07 } + {08 } +} + +file "ecmc_binaryOutput-chX.template" +{ + pattern {CH_ID} + {01 } + {02 } + {03 } + {04 } + {05 } + {06 } + {07 } + {08 } +} diff --git a/hardware/Beckhoff_1XXX/EL/ecmcEL1859.cmd b/hardware/Beckhoff_1XXX/EL/ecmcEL1859.cmd new file mode 100644 index 000000000..aba809a42 --- /dev/null +++ b/hardware/Beckhoff_1XXX/EL/ecmcEL1859.cmd @@ -0,0 +1,19 @@ +#-d /** +#-d \brief hardware script for EL1859 +#-d \details HD terminal 8 ch digital input/output +#-d \author Niko Kivel +#-d \file +#-d */ + +epicsEnvSet("ECMC_EC_HWTYPE" "EL1859") +epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2") +epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x07433052") + +#- verify slave +${SCRIPTEXEC} ${ecmccfg_DIR}slaveVerify.cmd + +#- binary inputs +${SCRIPTEXEC} ${ecmccfg_DIR}ecmcEX1008.cmd SM=1 + +#- binary outputs +${SCRIPTEXEC} ${ecmccfg_DIR}ecmcEX2008.cmd diff --git a/hardware/Beckhoff_1XXX/ecmcEX1008.cmd b/hardware/Beckhoff_1XXX/ecmcEX1008.cmd index cbee4d18c..adb583cf6 100644 --- a/hardware/Beckhoff_1XXX/ecmcEX1008.cmd +++ b/hardware/Beckhoff_1XXX/ecmcEX1008.cmd @@ -1,9 +1,9 @@ #- binary inputs -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a00,0x6000,0x1,B1,${KEY=binaryInput}01)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a01,0x6010,0x1,B1,${KEY=binaryInput}02)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a02,0x6020,0x1,B1,${KEY=binaryInput}03)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a03,0x6030,0x1,B1,${KEY=binaryInput}04)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a04,0x6040,0x1,B1,${KEY=binaryInput}05)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a05,0x6050,0x1,B1,${KEY=binaryInput}06)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a06,0x6060,0x1,B1,${KEY=binaryInput}07)" -ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,0,0x1a07,0x6070,0x1,B1,${KEY=binaryInput}08)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a00,0x6000,0x1,B1,${KEY=binaryInput}01)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a01,0x6010,0x1,B1,${KEY=binaryInput}02)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a02,0x6020,0x1,B1,${KEY=binaryInput}03)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a03,0x6030,0x1,B1,${KEY=binaryInput}04)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a04,0x6040,0x1,B1,${KEY=binaryInput}05)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a05,0x6050,0x1,B1,${KEY=binaryInput}06)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a06,0x6060,0x1,B1,${KEY=binaryInput}07)" +ecmcConfigOrDie "Cfg.EcAddEntryDT(${ECMC_EC_SLAVE_NUM},${ECMC_EC_VENDOR_ID},${ECMC_EC_PRODUCT_ID},2,${SM=0},0x1a07,0x6070,0x1,B1,${KEY=binaryInput}08)"