Skip to content

Commit

Permalink
Add Leadshine 57HS22 (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 86a6acc commit 3ee3eec
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-57HS22-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-57HS22 (parallel wiring)
#-d \details Parmetrization of EL7037 for motor Nanotec Leadshine Tecnology mod. 57HS22 (parallel wiring)
#-d \file
#-d */

#- Load common config from EL7047
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7047-Motor-Leadshine-57HS22-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-57HS22-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-57HS22 (series wiring)
#-d \details Parmetrization of EL7037 for motor Nanotec Leadshine Tecnology mod. 57HS22 (series wiring)
#-d \file
#-d */

#- Load common config from EL7047
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7047-Motor-Leadshine-57HS22-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-57HS22-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-57HS22 (unipolar wiring)
#-d \details Parmetrization of EL7037 for motor Nanotec Leadshine Tecnology mod. 57HS22 (unipolar wiring)
#-d \file
#-d */

#- Load common config from EL7047
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}ecmcEL7047-Motor-Leadshine-57HS22-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-57HS22-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-57HS22 (parallel wiring)
#-d \details Parmetrization of EL7041 for motor Nanotec Leadshine Tecnology mod. 57HS22 (parallel wiring)
#-d \file
#-d */

#- Set max current to 5A (unit 1mA) (max current is 5.7A)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x1,5000,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.4 Ohm (unit 10mOhm)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x4,40,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-57HS22-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-57HS22 (series wiring)
#-d \details Parmetrization of EL7041 for motor Nanotec Leadshine Tecnology mod. 57HS22 (series 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.6 Ohm (unit 10mOhm)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x4,160,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-57HS22-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-57HS22 (unipolar wiring)
#-d \details Parmetrization of EL7041 for motor Nanotec Leadshine Tecnology mod. 57HS22 (unipolar 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.8 Ohm (unit 10mOhm)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0x4,80,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-57HS22-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-57HS22 (parallel wiring)
#-d \details Parmetrization of EL7047 for motor Nanotec Leadshine Tecnology mod. 57HS22 (parallel wiring)
#-d \file
#-d */

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

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

#- Coil inductance 1.8mH (unit 0.01mH)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0xA,180,2)"
14 changes: 14 additions & 0 deletions hardware/Motors/ecmcEL7047-Motor-Leadshine-57HS22-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-57HS22 (series wiring)
#-d \details Parmetrization of EL7047 for motor Nanotec Leadshine Tecnology mod. 57HS22 (series wiring)
#-d \file
#-d */

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

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

#- Coil inductance 7.2mH (unit 0.01mH)
ecmcConfigOrDie "Cfg.EcAddSdo(${ECMC_EC_SLAVE_NUM},0x8010,0xA,720,2)"
14 changes: 14 additions & 0 deletions hardware/Motors/ecmcEL7047-Motor-Leadshine-57HS22-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-57HS22 (unipolar wiring)
#-d \details Parmetrization of EL7047 for motor Nanotec Leadshine Tecnology mod. 57HS22 (unipolar wiring)
#-d \file
#-d */

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

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

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

0 comments on commit 3ee3eec

Please sign in to comment.