Editing Mach4 SimpleMotion drive plugin
Your changes will be displayed to readers once an authorized user accepts them. (help) |
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | [[Mach4]] is a CNC motion control software developed by Newfangled Solutions. The Mach4 SimpleMotion drive plugin is | + | [[Mach4]] is a CNC motion control software developed by Newfangled Solutions. The Mach4 SimpleMotion drive plugin is needed to run [[SimpleMotion V2|SimpleMotion]] motor drivers with [[Mach4]]. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Requirements == | == Requirements == | ||
The following things are needed for building a CNC machine using Mach4 and motor drivers connected with SimpleMotion bus: | The following things are needed for building a CNC machine using Mach4 and motor drivers connected with SimpleMotion bus: | ||
* [[ATOMI|Atomi]], [[IONI Servo & Stepper Drive|IONI]] or [[ARGON Servo Drive|Argon]]-based motion system, e.g. CNC mill, connected with [[SimpleMotion V2|SimpleMotion]] bus | * [[ATOMI|Atomi]], [[IONI Servo & Stepper Drive|IONI]] or [[ARGON Servo Drive|Argon]]-based motion system, e.g. CNC mill, connected with [[SimpleMotion V2|SimpleMotion]] bus | ||
+ | * Windows PC | ||
* Mach4 software + license | * Mach4 software + license | ||
* SimpleMotion adapter depending on selected motor drivers | * SimpleMotion adapter depending on selected motor drivers | ||
− | |||
− | == | + | ==== Mach4 installation ==== |
− | + | * Download and install Mach4 | |
+ | * Download the plugin files to the Mach4 plugin folder | ||
+ | * Read the Mach4 installation, configuration and operation [http://www.machsupport.com/help-learning/product-manuals/ manuals] before use | ||
+ | |||
+ | == Configuration == | ||
+ | === Motor driver configuration with Granity Software === | ||
This section shows the basic configuration for motor drivers with [[Granity]] software. More support for using this software can be found from the [[Granity user guide]]. The following subsection titles are links to corresponding guide pages. Download the Granity software from its wiki page, launch it and follow these steps: | This section shows the basic configuration for motor drivers with [[Granity]] software. More support for using this software can be found from the [[Granity user guide]]. The following subsection titles are links to corresponding guide pages. Download the Granity software from its wiki page, launch it and follow these steps: | ||
==== [[Granity user guide/Connect|Connect to the motor driver]] ==== | ==== [[Granity user guide/Connect|Connect to the motor driver]] ==== | ||
− | Connect to a motor from the "Connect" tab by selecting the interface device, and clicking "Connect to drive" | + | Connect to a motor from the "Connect" tab by selecting the interface device, and clicking "Connect to drive" |
[[File:GranityConnect.png|400px]] | [[File:GranityConnect.png|400px]] | ||
Line 37: | Line 28: | ||
==== [[Granity user guide/Goals|Goals]] ==== | ==== [[Granity user guide/Goals|Goals]] ==== | ||
− | + | The following table shows the most important settings in the goals tab. All settings are explained in Granity software. | |
{| class="wikitable" | {| class="wikitable" | ||
!Setting | !Setting | ||
Line 57: | Line 48: | ||
|Select "Homing on external command" if you want to home the axis from Mach4 GUI | |Select "Homing on external command" if you want to home the axis from Mach4 GUI | ||
|} | |} | ||
− | If homing is enabled, the | + | If homing is enabled, the following settings should also be set: |
− | + | {| class="wikitable" | |
− | + | !Settings | |
− | + | !Value | |
− | + | |- | |
+ | |{{param|HMS}} | ||
+ | | | ||
+ | |- | ||
+ | |{{param|HME}} | ||
+ | | | ||
+ | |- | ||
+ | |{{param|HME}} | ||
+ | | | ||
+ | |- | ||
+ | |{{param|HME}} | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | |} | ||
==== [[Granity user guide/Machine|Machine]] ==== | ==== [[Granity user guide/Machine|Machine]] ==== | ||
− | |||
==== [[Granity: Tuning|Tuning]] ==== | ==== [[Granity: Tuning|Tuning]] ==== | ||
− | |||
==== [[Granity: Tuning|Fault limits]] ==== | ==== [[Granity: Tuning|Fault limits]] ==== | ||
− | |||
==== [[Granity user guide/Testing|Testing]] ==== | ==== [[Granity user guide/Testing|Testing]] ==== | ||
− | |||
− | + | === Mach4 configuration === | |
− | + | ||
− | == Mach4 | + | |
− | + | ||
− | = | + | |
− | + | ||
− | + | ||
− | + | ||
==== Open the Mach4 Configuration dialog ==== | ==== Open the Mach4 Configuration dialog ==== | ||
[[File:MachConfigurationTab.png|400px]] | [[File:MachConfigurationTab.png|400px]] | ||
− | ==== Enable the SimpleMotion drive plugin from the plugins tab ==== | + | ==== Enable the SimpleMotion drive plugin from the plugins tab. ==== |
[[File:MachConfigurationPlugins.png|800px]] | [[File:MachConfigurationPlugins.png|800px]] | ||
Line 109: | Line 113: | ||
==== Axis mapping ==== | ==== Axis mapping ==== | ||
− | Enable the axes used in your machine | + | Enable the axes used in your machine. The following picture shows 3-axis machine where the spindle motor is also controlled by Mach4. The axes X-C (0-5) are for motion, and the OB axes (6-11) can be used for controlling a spindle motor. |
* Enable used axes | * Enable used axes | ||
* The motor indexes are always one smaller than the SimpleMotion drive numbers. For example, Motor0 means drive 1 in the SimpleMotion bus | * The motor indexes are always one smaller than the SimpleMotion drive numbers. For example, Motor0 means drive 1 in the SimpleMotion bus | ||
* Select a motor for each axis. Slave motors can also be set for an axis if they use more than one motor | * Select a motor for each axis. Slave motors can also be set for an axis if they use more than one motor | ||
* Do not enable axes without motors | * Do not enable axes without motors | ||
− | * The spindle control type (velocity or position-controlled) will be set later | + | * The spindle control type (velocity or position-controlled) will be set later |
[[File:MachConfigurationAxisMapping.png|800px]] | [[File:MachConfigurationAxisMapping.png|800px]] | ||
Line 120: | Line 124: | ||
* Set the homing order. If some axes have the same number, they will be homed at the same time | * Set the homing order. If some axes have the same number, they will be homed at the same time | ||
* Enable soft limits for motion axes | * Enable soft limits for motion axes | ||
− | * Set the soft limits to prevent axes from hitting their physical limits. If you don't know what to put here, you can also configure them later | + | * Set the soft limits to prevent axes from hitting their physical limits. If you don't know what to put here, you can also configure them later |
− | * The homing direction, offset and speed are selected in Granity software | + | * The homing direction, offset and speed are selected in Granity software when using this plugin |
[[File:MachConfigurationHomingAndSoftLimits.png|800px]] | [[File:MachConfigurationHomingAndSoftLimits.png|800px]] | ||
==== Spindle configuration ==== | ==== Spindle configuration ==== | ||
* Set min. and max. rpm for the spindle motor if it is controlled by Mach4. | * Set min. and max. rpm for the spindle motor if it is controlled by Mach4. | ||
− | * The max. rpm set here doesn't have effect to the real speed of velocity-controlled spindle. Running a velocity-controlled spindle by here configured max. speed runs the spindle motor | + | * The max. rpm set here doesn't have effect to the real speed of velocity-controlled spindle. Running a velocity-controlled spindle by here configured max. speed runs the spindle motor by the maximum speed configured in the motor driver. |
* If the spindle is position-controlled, the spindle motor should be selected in the "Step/Dir Spindle Axis"-dropdown. The axis must be enabled and mapped before this. | * If the spindle is position-controlled, the spindle motor should be selected in the "Step/Dir Spindle Axis"-dropdown. The axis must be enabled and mapped before this. | ||
[[File:MachConfigurationSpindlePos.png|800px]] | [[File:MachConfigurationSpindlePos.png|800px]] | ||
==== SimpleMotion drive plugin configuration ==== | ==== SimpleMotion drive plugin configuration ==== | ||
− | + | Close the Mach configuration and open the SimpleMotion drive plugin configuration | |
[[File:PluginConfigurationTab.PNG|400px]] | [[File:PluginConfigurationTab.PNG|400px]] | ||
Set the following settings. The default values work in most cases. | Set the following settings. The default values work in most cases. | ||
− | * SimpleMotion V2 adapter FTDI | + | * SimpleMotion V2 adapter FTDI port number |
* SimpleMotion V2 buffer max. fill percentage | * SimpleMotion V2 buffer max. fill percentage | ||
* In the case of using a velocity-controlled spindle, its axis should be selected here. The list shows only mapped and enabled axes that are not selected as position-controlled spindle | * In the case of using a velocity-controlled spindle, its axis should be selected here. The list shows only mapped and enabled axes that are not selected as position-controlled spindle | ||
− | [[File:PluginConfiguration.PNG| | + | [[File:PluginConfiguration.PNG|600px]] |
Save the SimpleMotion drive plugin configuration by pressing "OK", and start using the software! | Save the SimpleMotion drive plugin configuration by pressing "OK", and start using the software! | ||
− | + | == Other == | |
− | == | + | |
==== Versions ==== | ==== Versions ==== | ||
Line 151: | Line 154: | ||
!Download | !Download | ||
|- | |- | ||
− | |0. | + | |0.1 |
|The first beta release | |The first beta release | ||
− | | | + | | |
|} | |} | ||
Line 159: | Line 162: | ||
* A possible small bump after disabling or stopping motion due to aborted buffered motion | * A possible small bump after disabling or stopping motion due to aborted buffered motion | ||
− | === | + | ==TODO== |
− | + | ||
− | + | ||
− | + | __FORCETOC__ | |
− | + | ||
− | + | ||
− | + | ||
− | + |