Skip to content

Commit

Permalink
Add Leadshine 57HS13 (not tested)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Doro Neto committed Jul 28, 2023
1 parent ac9e5d1 commit 86a6acc
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hardware/Motors/ecmcEL7037-Motor-Leadshine-57HS13-parallel.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#-d /**
#-d \brief hardware script for EL7037-Motor-Leadshine-57HS13 (parallel wiring)
#-d \details Parmetrization of EL7037 for motor Nanotec Leadshine Tecnology mod. 57HS13 (parallel wiring)
#-d \file
#-d */

#- Load common config from EL7047
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7047-Motor-Leadshine-57HS13-parallel.cmd

#- Set max current to 1.5A (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,1500,2)"
11 changes: 11 additions & 0 deletions hardware/Motors/ecmcEL7037-Motor-Leadshine-57HS13-series.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#-d /**
#-d \brief hardware script for EL7037-Motor-Leadshine-57HS13 (series wiring)
#-d \details Parmetrization of EL7037 for motor Nanotec Leadshine Tecnology mod. 57HS13 (series wiring)
#-d \file
#-d */

#- Load common config from EL7047
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7047-Motor-Leadshine-57HS13-series.cmd

#- Set max current to 1.5A (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,1500,2)"
11 changes: 11 additions & 0 deletions hardware/Motors/ecmcEL7037-Motor-Leadshine-57HS13-unipolar.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#-d /**
#-d \brief hardware script for EL7037-Motor-Leadshine-57HS13 (unipolar wiring)
#-d \details Parmetrization of EL7037 for motor Nanotec Leadshine Tecnology mod. 57HS13 (unipolar wiring)
#-d \file
#-d */

#- Load common config from EL7047
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7047-Motor-Leadshine-57HS13-unipolar.cmd

#- Set max current to 1.5A (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,1500,2)"
20 changes: 20 additions & 0 deletions hardware/Motors/ecmcEL7041-Motor-Leadshine-57HS13-parallel.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#-d /**
#-d \brief hardware script for EL7041-Motor-Leadshine-57HS13 (parallel wiring)
#-d \details Parmetrization of EL7041 for motor Nanotec Leadshine Tecnology mod. 57HS13 (parallel wiring)
#-d \file
#-d */

#- Set max current to 4A (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,4000,2)"

#- Reduced current 500mA (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x2,500,2)"

#- Nominal voltage 68V (unit 1mV)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x3,68000,2)"

#- Coil resistance 0.5 Ohm (unit 10mOhm)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x4,50,2)"

#- Motor full steps count 200
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x6,200,2)"
20 changes: 20 additions & 0 deletions hardware/Motors/ecmcEL7041-Motor-Leadshine-57HS13-series.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#-d /**
#-d \brief hardware script for EL7041-Motor-Leadshine-57HS13 (series wiring)
#-d \details Parmetrization of EL7041 for motor Nanotec Leadshine Tecnology mod. 57HS13 (series wiring)
#-d \file
#-d */

#- Set max current to 2A (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,2000,2)"

#- Reduced current 500mA (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x2,500,2)"

#- Nominal voltage 68V (unit 1mV)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x3,68000,2)"

#- Coil resistance 2 Ohm (unit 10mOhm)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x4,200,2)"

#- Motor full steps count 200
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x6,200,2)"
20 changes: 20 additions & 0 deletions hardware/Motors/ecmcEL7041-Motor-Leadshine-57HS13-unipolar.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#-d /**
#-d \brief hardware script for EL7041-Motor-Leadshine-57HS13 (unipolar wiring)
#-d \details Parmetrization of EL7041 for motor Nanotec Leadshine Tecnology mod. 57HS13 (unipolar wiring)
#-d \file
#-d */

#- Set max current to 2.8A (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,2800,2)"

#- Reduced current 500mA (unit 1mA)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x2,500,2)"

#- Nominal voltage 68V (unit 1mV)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x3,68000,2)"

#- Coil resistance 1 Ohm (unit 10mOhm)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x4,100,2)"

#- Motor full steps count 200
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x6,200,2)"
14 changes: 14 additions & 0 deletions hardware/Motors/ecmcEL7047-Motor-Leadshine-57HS13-parallel.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#-d /**
#-d \brief hardware script for EL7047-Motor-Leadshine-57HS13 (parallel wiring)
#-d \details Parmetrization of EL7047 for motor Nanotec Leadshine Tecnology mod. 57HS13 (parallel wiring)
#-d \file
#-d */

#- Load common config from EL7041
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7041-Motor-Leadshine-57HS13-parallel.cmd

#- Nominal voltage 68V (unit 10mV)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x3,6800,2)"

#- Coil inductance 2.1mH (unit 0.01mH)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0xA,210,2)"
14 changes: 14 additions & 0 deletions hardware/Motors/ecmcEL7047-Motor-Leadshine-57HS13-series.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#-d /**
#-d \brief hardware script for EL7047-Motor-Leadshine-57HS13 (series wiring)
#-d \details Parmetrization of EL7047 for motor Nanotec Leadshine Tecnology mod. 57HS13 (series wiring)
#-d \file
#-d */

#- Load common config from EL7041
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7041-Motor-Leadshine-57HS13-series.cmd

#- Nominal voltage 68V (unit 10mV)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x3,6800,2)"

#- Coil inductance 8.4mH (unit 0.01mH)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0xA,840,2)"
14 changes: 14 additions & 0 deletions hardware/Motors/ecmcEL7047-Motor-Leadshine-57HS13-unipolar.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#-d /**
#-d \brief hardware script for EL7047-Motor-Leadshine-57HS13 (unipolar wiring)
#-d \details Parmetrization of EL7047 for motor Nanotec Leadshine Tecnology mod. 57HS13 (unipolar wiring)
#-d \file
#-d */

#- Load common config from EL7041
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7041-Motor-Leadshine-57HS13-unipolar.cmd

#- Nominal voltage 68V (unit 10mV)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x3,6800,2)"

#- Coil inductance 2.1mH (unit 0.01mH)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0xA,210,2)"

0 comments on commit 86a6acc

Please sign in to comment.