Browse Source

Improve M906 description

Scott Lahteine 5 years ago
parent
commit
0c4d3e6622
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      Marlin/src/gcode/feature/trinamic/M906.cpp

+ 12
- 2
Marlin/src/gcode/feature/trinamic/M906.cpp View File

@@ -29,8 +29,18 @@
29 29
 #include "../../../module/stepper_indirection.h"
30 30
 
31 31
 /**
32
- * M906: Set motor current in milliamps using axis codes X, Y, Z, E
33
- * Report driver currents when no axis specified
32
+ * M906: Set motor current in milliamps.
33
+ *
34
+ * Parameters:
35
+ *   X[current]  - Set mA current for X driver(s)
36
+ *   Y[current]  - Set mA current for Y driver(s)
37
+ *   Z[current]  - Set mA current for Z driver(s)
38
+ *   E[current]  - Set mA current for E driver(s)
39
+ *
40
+ *   I[index]    - Axis sub-index (Omit or 0 for X, Y, Z; 1 for X2, Y2, Z2; 2 for Z3.)
41
+ *   T[index]    - Extruder index (Zero-based. Omit for E0 only.)
42
+ *
43
+ * With no parameters report driver currents.
34 44
  */
35 45
 void GcodeSuite::M906() {
36 46
   #define TMC_SAY_CURRENT(Q) tmc_get_current(stepper##Q)

Loading…
Cancel
Save