Browse Source

🚸 Change M201 G to S

Scott Lahteine 2 years ago
parent
commit
41a469208a
1 changed files with 13 additions and 4 deletions
  1. 13
    4
      Marlin/src/gcode/config/M200-M205.cpp

+ 13
- 4
Marlin/src/gcode/config/M200-M205.cpp View File

108
 #endif // !NO_VOLUMETRICS
108
 #endif // !NO_VOLUMETRICS
109
 
109
 
110
 /**
110
 /**
111
- * M201: Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
111
+ * M201: Set max acceleration in units/s^2 for print moves.
112
  *
112
  *
113
- *       With multiple extruders use T to specify which one.
113
+ *  X<accel> : Max Acceleration for X
114
+ *  Y<accel> : Max Acceleration for Y
115
+ *  Z<accel> : Max Acceleration for Z
116
+ *       ... : etc
117
+ *  E<accel> : Max Acceleration for Extruder
118
+ *  T<index> : Extruder index to set
119
+ *
120
+ * With XY_FREQUENCY_LIMIT:
121
+ *  F<Hz>      : Frequency limit for XY...IJKUVW
122
+ *  S<percent> : Speed factor percentage.
114
  */
123
  */
115
 void GcodeSuite::M201() {
124
 void GcodeSuite::M201() {
116
-  if (!parser.seen("T" STR_AXES_LOGICAL))
125
+  if (!parser.seen("T" STR_AXES_LOGICAL TERN_(XY_FREQUENCY_LIMIT, "FS")))
117
     return M201_report();
126
     return M201_report();
118
 
127
 
119
   const int8_t target_extruder = get_target_extruder_from_command();
128
   const int8_t target_extruder = get_target_extruder_from_command();
121
 
130
 
122
   #ifdef XY_FREQUENCY_LIMIT
131
   #ifdef XY_FREQUENCY_LIMIT
123
     if (parser.seenval('F')) planner.set_frequency_limit(parser.value_byte());
132
     if (parser.seenval('F')) planner.set_frequency_limit(parser.value_byte());
124
-    if (parser.seenval('G')) planner.xy_freq_min_speed_factor = constrain(parser.value_float(), 1, 100) / 100;
133
+    if (parser.seenval('S')) planner.xy_freq_min_speed_factor = constrain(parser.value_float(), 1, 100) / 100;
125
   #endif
134
   #endif
126
 
135
 
127
   LOOP_LOGICAL_AXES(i) {
136
   LOOP_LOGICAL_AXES(i) {

Loading…
Cancel
Save