Skip to content

Commit

Permalink
Merge pull request #1 from mac-kan/el331x_hardware_scripts
Browse files Browse the repository at this point in the history
Add hardware scripts
  • Loading branch information
javicereijo authored Jul 20, 2023
2 parents 57a9e6c + 145879e commit 885b7fd
Show file tree
Hide file tree
Showing 9 changed files with 120 additions and 19 deletions.
1 change: 0 additions & 1 deletion db/Beckhoff_3XXX/ecmcEL3314-0090.substitutions

This file was deleted.

6 changes: 0 additions & 6 deletions general/init.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,3 @@ epicsEnvSet("ECMC_TSE", 0)
#- Init all axis related variables
${ECMC_SUPPORT_MOTION=""}ecmcFileExist("${ECMC_CONFIG_ROOT}initAxis.cmd",1)
${ECMC_SUPPORT_MOTION=""}${SCRIPTEXEC} "${ECMC_CONFIG_ROOT}initAxis.cmd"

#- Additional parameters when motor Records are loaded
${ECMC_USE_MOTOR_RECORD=""}epicsEnvSet("ECMC_EGU", "mm")
${ECMC_USE_MOTOR_RECORD=""}epicsEnvSet("ECMC_PREC", 3)
${ECMC_USE_MOTOR_RECORD=""}epicsEnvSet("ECMC_AXISFIELDINIT", "") # Extra field init to motor record
${ECMC_USE_MOTOR_RECORD=""}epicsEnvSet("ECMC_AXISCONFIG", "") # Extra parameters to driver
19 changes: 19 additions & 0 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3311.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#-d /**
#-d \brief hardware script for EL3311
#-d \details EL3311 | 1-channel thermocouple input terminal with open-circuit recognition
#-d \author Markus Kristensson, Carlos Doro Neto
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
#-d */


epicsEnvSet("ECMC_EC_HWTYPE" "EL3311")
epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2")
epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x0cef3052")

#- verify slave, including reset
${SCRIPTEXEC} ${ecmccfg_DIR}slaveVerify.cmd "RESET=true"

#- analog input Ch1
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=01,ECMC_PDO=0x1a00,ECMC_ENTRY=0x6000"
14 changes: 2 additions & 12 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3314-0002.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-d /**
#-d \brief hardware script for EL3314-0002
#-d \details EL3314-0002 | 4-channel (24 bits) thermocouple input terminal with open-circuit recognition
#-d \author Anders Sandstroem
#-d \author Anders Sandstroem, Markus Kristensson, Carlos Doro Neto
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
Expand All @@ -12,14 +12,4 @@ epicsEnvSet("ECMC_EC_HWTYPE" "EL3314-0002")
epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2")
epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x0cf23052")

#- verify slave, including reset
${SCRIPTEXEC} ${ecmccfg_DIR}slaveVerify.cmd "RESET=true"

#- analog input Ch1
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=01,ECMC_PDO=0x1a00,ECMC_ENTRY=0x6000"
#- analog input Ch2
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=02,ECMC_PDO=0x1a01,ECMC_ENTRY=0x6010"
#- analog input Ch3
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=03,ECMC_PDO=0x1a02,ECMC_ENTRY=0x6020"
#- analog input Ch4
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=04,ECMC_PDO=0x1a03,ECMC_ENTRY=0x6030"
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcEL3314-XXXX_generic.cmd
15 changes: 15 additions & 0 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3314-0010.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#-d /**
#-d \brief hardware script for EL3314-0010
#-d \details EL3314-0010 | 4-channel (24 bits) thermocouple, high precision, input terminal with open-circuit recognition
#-d \author Markus Kristensson, Carlos Doro Neto
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
#-d */


epicsEnvSet("ECMC_EC_HWTYPE" "EL3314-0010")
epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2")
epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x0cf23052")

${SCRIPTEXEC} ${ecmccfg_DIR}ecmcEL3314-XXXX_generic.cmd
15 changes: 15 additions & 0 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3314-0020.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#-d /**
#-d \brief hardware script for EL3314-0020
#-d \details EL3314-0020 | 4-channel (24 bits) thermocouple, high precision, factory calibrated, input terminal with open-circuit recognition
#-d \author Markus Kristensson, Carlos Doro Neto
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
#-d */


epicsEnvSet("ECMC_EC_HWTYPE" "EL3314-0020")
epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2")
epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x0cf23052")

${SCRIPTEXEC} ${ecmccfg_DIR}ecmcEL3314-XXXX_generic.cmd
15 changes: 15 additions & 0 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3314-0030.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#-d /**
#-d \brief hardware script for EL3314-0030
#-d \details EL3314-0030 | 4-channel (24 bits) thermocouple, high precision, externally calibrated, input terminal with open-circuit recognition
#-d \author Markus Kristensson, Carlos Doro Neto
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
#-d */


epicsEnvSet("ECMC_EC_HWTYPE" "EL3314-0030")
epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2")
epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x0cf23052")

${SCRIPTEXEC} ${ecmccfg_DIR}ecmcEL3314-XXXX_generic.cmd
21 changes: 21 additions & 0 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3314-XXXX_generic.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#-d /**
#-d \brief hardware script for EL3314-XXXX
#-d \details EL3314-XXXX | Generic script for EL3314-XXXX modules.
#-d \author Markus Kristensson, Carlos Doro Netos
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
#-d */


#- verify slave, including reset
${SCRIPTEXEC} ${ecmccfg_DIR}slaveVerify.cmd "RESET=true"

#- analog input Ch1
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=01,ECMC_PDO=0x1a00,ECMC_ENTRY=0x6000"
#- analog input Ch2
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=02,ECMC_PDO=0x1a01,ECMC_ENTRY=0x6010"
#- analog input Ch3
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=03,ECMC_PDO=0x1a02,ECMC_ENTRY=0x6020"
#- analog input Ch4
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_32bit.cmd "CH_ID=04,ECMC_PDO=0x1a03,ECMC_ENTRY=0x6030"
33 changes: 33 additions & 0 deletions hardware/Beckhoff_3XXX/EL/ecmcEL3318.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#-d /**
#-d \brief hardware script for EL3318
#-d \details EL3318 | 8-channel (16 bits) thermocouple input terminal with open-circuit recognition
#-d \author Markus Kristensson, Carlos Doro Neto
#-d \file
#-d \note SDOS
#-d \param [out] SDO 0x1011:01 --> 1684107116 \b reset
#-d */


epicsEnvSet("ECMC_EC_HWTYPE" "EL3318")
epicsEnvSet("ECMC_EC_VENDOR_ID" "0x2")
epicsEnvSet("ECMC_EC_PRODUCT_ID" "0x0cf63052")

#- verify slave, including reset
${SCRIPTEXEC} ${ecmccfg_DIR}slaveVerify.cmd "RESET=true"

#- analog input Ch1
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=01,ECMC_PDO=0x1a00,ECMC_ENTRY=0x6000"
#- analog input Ch2
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=02,ECMC_PDO=0x1a01,ECMC_ENTRY=0x6010"
#- analog input Ch3
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=03,ECMC_PDO=0x1a02,ECMC_ENTRY=0x6020"
#- analog input Ch4
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=04,ECMC_PDO=0x1a03,ECMC_ENTRY=0x6030"
#- analog input Ch5
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=05,ECMC_PDO=0x1a04,ECMC_ENTRY=0x6040"
#- analog input Ch6
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=06,ECMC_PDO=0x1a05,ECMC_ENTRY=0x6050"
#- analog input Ch7
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=07,ECMC_PDO=0x1a06,ECMC_ENTRY=0x6060"
#- analog input Ch8
${SCRIPTEXEC} ${ecmccfg_DIR}ecmcAnalogInput_16bit.cmd "CH_ID=08,ECMC_PDO=0x1a07,ECMC_ENTRY=0x6070"

0 comments on commit 885b7fd

Please sign in to comment.