Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
advancedmotordriver [2018/02/05 10:43]
146.90.249.33 [Config settings]
advancedmotordriver [2018/06/15 09:27] (current)
143.159.81.0 [M code settings]
Line 2: Line 2:
  
 This module is used to control SPI based stepper motor driver chips. Like the Panucatt Bigfoot series. This module is used to control SPI based stepper motor driver chips. Like the Panucatt Bigfoot series.
-<callout type="danger" icon="​true">​ +<callout type="warning" icon="​true">​ 
-This does not work on smoothieboards or Azteeg X5 Mini as they do not use the required driver chips.+This does not work on smoothieboards or Azteeg X5 Mini as is as they do not use the required driver chips
 +If you really know what you are doing, you can hook the drivers to the spi bus of those old boards. 
 +Make sure your drivers have sufficient power filtering.
 </​callout>​ </​callout>​
  
Line 95: Line 97:
 Many settings can be made on the fly with M codes, many if these are specific to certain chips: ​           Many settings can be made on the fly with M codes, many if these are specific to certain chips: ​          
  
 +* M906 Xnnn change current to nnn in milliamps for motor designator X
 +* M909 Ynn set microstepping for motor designator Y tp 1/nn
 +* M909.1 Xnnn set microstepping and also change steps/mm accordingly
 * M911 will dump all the registers and status of all the motors * M911 will dump all the registers and status of all the motors
 * M911.1 Pn (or X0) will dump the registers and status of the selected motor. R0 will request format in processing machine readable format * M911.1 Pn (or X0) will dump the registers and status of the selected motor. R0 will request format in processing machine readable format
 * M911.2 Pn (or Y0) Rxxx Vyyy sets Register xxx to value yyy for motor nnn, xxx == 255 writes the registers, xxx == 0 shows what registers are mapped to what * M911.2 Pn (or Y0) Rxxx Vyyy sets Register xxx to value yyy for motor nnn, xxx == 255 writes the registers, xxx == 0 shows what registers are mapped to what
 * M911.3 Pn (or X0) will set the options based on the parameters passed as below... * M911.3 Pn (or X0) will set the options based on the parameters passed as below...
- * TMC2660:-+ * TMC2660 ​(& TMC2130 NOT IN EDGE BUILD YET):-
   * M911.3 Onnn Qnnn set StallGuard Threshold O=stall_guard_threshold,​ Q=stall_guard_filter_enabled   * M911.3 Onnn Qnnn set StallGuard Threshold O=stall_guard_threshold,​ Q=stall_guard_filter_enabled
   * M911.3 Hnnn Innn Jnnn Knnn Lnnn set CoolStep Configuration H=lower_SG_threshold,​ I=SG_hysteresis,​ J=current_decrement_step_size,​ K=current_increment_step_size,​ L=lower_current_limit   * M911.3 Hnnn Innn Jnnn Knnn Lnnn set CoolStep Configuration H=lower_SG_threshold,​ I=SG_hysteresis,​ J=current_decrement_step_size,​ K=current_increment_step_size,​ L=lower_current_limit
Line 108: Line 113:
   * M911.3 S4 Zn set StepInterpolation Z=on|off Z1 is on Z0 is off   * M911.3 S4 Zn set StepInterpolation Z=on|off Z1 is on Z0 is off
   * M911.3 S5 Zn set CoolStepEnabled Z=on|off Z1 is on Z0 is off   * M911.3 S5 Zn set CoolStepEnabled Z=on|off Z1 is on Z0 is off
- ​* ​DRV8711has none at the momentjust set the raw register+ ​* ​TMC2130:- **(NOT IN EDGE BUILD YET)**. 
- +  * M911.3 S6 Zn set StealthChopEnabled Z=on|off Z1 is on Z0 is off 
-M906 Xnnn change current to nnn in milliamps for motor designator X +  * M911.3 S7 Unnn Vnnn Wnnn Xnnn Ynnn Znnn set StealthChop U=freewheelV=symmetric,​ W=autoscale,​ X=freq, Y=grad, Z=ampl 
-M909 Ynn set microstepping for motor designator Y tp 1/nn +  * M911.3 S8 Zn set set StealthChopThreshold Z=StealthChopThreshold 
-M909.Xnnn set microstepping and also change steps/mm accordingly+  * M911.3 S9 Zn set set CoolstepThreshold Z=CoolStepThreshold 
 +  * M911.3 S10 Unnn Vnnn Wnnn set ConstantOffTimeThreshold U=threshold,​ V=vhighchm, W=vhighfs 
 +  M911.3 S11 Znnn set set sense resistor value Z=sense resistor value in milliohm 
 +  M911.3 S12 Znnn set hold current value Z=holding current as a percentage of run current(0-100) 
 +  M911.3 S13 Znnn set hold delay value Z=holding delay value 
 +  * M911.3 S14 Znnn set power down delay value Z=power down delay value 
 +  * M911.3 S15 Unnn Vnnn Wnnn Xnnn set GeneralConfiguration U=i_scale_analog,​ V=internal_rsense,​ W=shaft, X=small_hysteresis 
 +  * M911.3 S16 Un Vn Wn Xn set Diag0options U=error, V=otpw, W=stall, X=pushpull 
 +  * M911.3 S17 Un Vn Wn Xn set setDiag1options U=stall, V=index, W=onstate, X=pushpull 
 +* DRV8711: has none at the moment, just set the raw register.
  
 These are saved with M500 and override anything set in config. These are saved with M500 and override anything set in config.