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/06/15 01:56]
131.107.159.28 [Advanced Driver Chip Module]
advancedmotordriver [2018/06/15 09:27] (current)
143.159.81.0 [M code settings]
Line 97: 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 & TMC2130:-+ * 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 110: 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
- * TMC2130:-+ * TMC2130:​- ​**(NOT IN EDGE BUILD YET)**.
   * M911.3 S6 Zn set StealthChopEnabled Z=on|off Z1 is on Z0 is off   * M911.3 S6 Zn set StealthChopEnabled Z=on|off Z1 is on Z0 is off
   * M911.3 S7 Unnn Vnnn Wnnn Xnnn Ynnn Znnn set StealthChop U=freewheel,​ V=symmetric,​ W=autoscale,​ X=freq, Y=grad, Z=ampl   * M911.3 S7 Unnn Vnnn Wnnn Xnnn Ynnn Znnn set StealthChop U=freewheel,​ V=symmetric,​ W=autoscale,​ X=freq, Y=grad, Z=ampl
Line 123: Line 126:
   * M911.3 S16 Un Vn Wn Xn set Diag0options U=error, V=otpw, W=stall, X=pushpull   * 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   * 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.
- * DRV8711: has none at the moment, just set the raw register. +
- +
-* 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+
  
 These are saved with M500 and override anything set in config. These are saved with M500 and override anything set in config.