Просмотр исходного кода

Merge pull request #209 from ijackson/for-upstream

M206 fixes, and ancillary improvements
ErikZalm 12 лет назад
Родитель
Сommit
22aae62ccd
8 измененных файлов: 140 добавлений и 70 удалений
  1. 5
    0
      .gitignore
  2. 0
    2
      Marlin/.gitignore
  3. 11
    1
      Marlin/EEPROMwrite.h
  4. 30
    21
      Marlin/Makefile
  5. 8
    1
      Marlin/Marlin.h
  6. 84
    34
      Marlin/Marlin.pde
  7. 1
    11
      Marlin/motion_control.cpp
  8. 1
    0
      README.md

+ 5
- 0
.gitignore Просмотреть файл

@@ -0,0 +1,5 @@
1
+*.o
2
+applet/
3
+*~
4
+*.orig
5
+*.rej

+ 0
- 2
Marlin/.gitignore Просмотреть файл

@@ -1,2 +0,0 @@
1
-*.o
2
-applet/

+ 11
- 1
Marlin/EEPROMwrite.h Просмотреть файл

@@ -38,7 +38,7 @@ template <class T> int EEPROM_readAnything(int &ee, T& value)
38 38
 // the default values are used whenever there is a change to the data, to prevent
39 39
 // wrong data being written to the variables.
40 40
 // ALSO:  always make sure the variables in the Store and retrieve sections are in the same order.
41
-#define EEPROM_VERSION "V05"  
41
+#define EEPROM_VERSION "V06"
42 42
 
43 43
 inline void EEPROM_StoreSettings() 
44 44
 {
@@ -57,6 +57,7 @@ inline void EEPROM_StoreSettings()
57 57
   EEPROM_writeAnything(i,max_xy_jerk);
58 58
   EEPROM_writeAnything(i,max_z_jerk);
59 59
   EEPROM_writeAnything(i,max_e_jerk);
60
+  EEPROM_writeAnything(i,add_homeing);
60 61
   #ifdef PIDTEMP
61 62
     EEPROM_writeAnything(i,Kp);
62 63
     EEPROM_writeAnything(i,Ki);
@@ -119,6 +120,13 @@ inline void EEPROM_printSettings()
119 120
       SERIAL_ECHOPAIR(" Z" ,max_z_jerk);
120 121
       SERIAL_ECHOPAIR(" E" ,max_e_jerk);
121 122
       SERIAL_ECHOLN(""); 
123
+    SERIAL_ECHO_START;
124
+      SERIAL_ECHOLNPGM("Home offset (mm):");
125
+      SERIAL_ECHO_START;
126
+      SERIAL_ECHOPAIR("  M206 X",add_homeing[0] );
127
+      SERIAL_ECHOPAIR(" Y" ,add_homeing[1] );
128
+      SERIAL_ECHOPAIR(" Z" ,add_homeing[2] );
129
+      SERIAL_ECHOLN("");
122 130
     #ifdef PIDTEMP
123 131
       SERIAL_ECHO_START;
124 132
       SERIAL_ECHOLNPGM("PID settings:");
@@ -153,6 +161,7 @@ inline void EEPROM_RetrieveSettings(bool def=false)
153 161
       EEPROM_readAnything(i,max_xy_jerk);
154 162
       EEPROM_readAnything(i,max_z_jerk);
155 163
       EEPROM_readAnything(i,max_e_jerk);
164
+      EEPROM_readAnything(i,add_homeing);
156 165
       #ifndef PIDTEMP
157 166
         float Kp,Ki,Kd;
158 167
       #endif
@@ -183,6 +192,7 @@ inline void EEPROM_RetrieveSettings(bool def=false)
183 192
       max_xy_jerk=DEFAULT_XYJERK;
184 193
       max_z_jerk=DEFAULT_ZJERK;
185 194
       max_e_jerk=DEFAULT_EJERK;
195
+      add_homeing[0] = add_homeing[1] = add_homeing[2] = 0;
186 196
       SERIAL_ECHO_START;
187 197
       SERIAL_ECHOLN("Using Default settings:");
188 198
     }

+ 30
- 21
Marlin/Makefile Просмотреть файл

@@ -170,6 +170,14 @@ ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS)
170 170
 ALL_CXXFLAGS = -mmcu=$(MCU) $(CXXFLAGS)
171 171
 ALL_ASFLAGS = -mmcu=$(MCU) -x assembler-with-cpp $(ASFLAGS)
172 172
 
173
+# set V=1 (eg, "make V=1") to print the full commands etc.
174
+ifneq ($V,1)
175
+ Pecho=@echo
176
+ P=@
177
+else
178
+ Pecho=@:
179
+ P=
180
+endif
173 181
 
174 182
 # Default target.
175 183
 all: sizeafter
@@ -178,7 +186,7 @@ build: applet elf hex
178 186
 
179 187
 # Creates the object directory
180 188
 applet: 
181
-	@mkdir -p applet
189
+	$P mkdir -p applet
182 190
 
183 191
 # the .cpp for Marlin depends on the .pde
184 192
 #applet/$(TARGET).cpp: $(TARGET).pde
@@ -189,10 +197,10 @@ applet/%.cpp: %.pde $(MAKEFILE)
189 197
 # Here is the "preprocessing".
190 198
 # It creates a .cpp file based with the same name as the .pde file.
191 199
 # On top of the new .cpp file comes the WProgram.h header.
192
-	@echo "  WR    $@"
193
-	@echo '#include "WProgram.h"' > $@
194
-	@echo '#include "$<"' >>$@
195
-	@echo '#include "$(ARDUINO)/main.cpp"' >> $@
200
+	$(Pecho) "  WR    $@"
201
+	$P echo '#include "WProgram.h"' > $@
202
+	$P echo '#include "$<"' >>$@
203
+	$P echo '#include "$(ARDUINO)/main.cpp"' >> $@
196 204
 
197 205
 elf: applet/$(TARGET).elf
198 206
 hex: applet/$(TARGET).hex
@@ -213,12 +221,13 @@ endif
213 221
 
214 222
 	# Display size of file.
215 223
 HEXSIZE = $(SIZE) --target=$(FORMAT) applet/$(TARGET).hex
216
-ELFSIZE = $(SIZE)  applet/$(TARGET).elf
224
+ELFSIZE = $(SIZE) --mcu=$(MCU) -C applet/$(TARGET).elf; \
225
+          $(SIZE)  applet/$(TARGET).elf
217 226
 sizebefore:
218
-	@if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
227
+	$P if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
219 228
 
220 229
 sizeafter: build
221
-	@if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
230
+	$P if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
222 231
 
223 232
 
224 233
 # Convert ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB.
@@ -241,8 +250,8 @@ extcoff: $(TARGET).elf
241 250
 .PRECIOUS: .o
242 251
 
243 252
 .elf.hex:
244
-	@echo "  COPY  $@"
245
-	@$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
253
+	$(Pecho) "  COPY  $@"
254
+	$P $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
246 255
 
247 256
 .elf.eep:
248 257
 	-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
@@ -258,29 +267,29 @@ extcoff: $(TARGET).elf
258 267
 
259 268
 	# Link: create ELF output file from library.
260 269
 applet/$(TARGET).elf: applet/$(TARGET).cpp applet/core.a Configuration.h
261
-	@echo "  CXX   $@"
262
-	@$(CC) $(ALL_CXXFLAGS) -Wl,--gc-sections -o $@ applet/$(TARGET).cpp -L. applet/core.a $(LDFLAGS)
270
+	$(Pecho) "  CXX   $@"
271
+	$P $(CC) $(ALL_CXXFLAGS) -Wl,--gc-sections -o $@ applet/$(TARGET).cpp -L. applet/core.a $(LDFLAGS)
263 272
 
264 273
 applet/core.a: $(OBJ)
265
-	@for i in $(OBJ); do echo "  AR    $$i"; $(AR) rcs applet/core.a $$i; done
274
+	$P for i in $(OBJ); do echo "  AR    $$i"; $(AR) rcs applet/core.a $$i; done
266 275
 
267 276
 applet/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
268
-	@echo "  CC    $@"
269
-	@$(CC) -MMD -c $(ALL_CFLAGS) $< -o $@
277
+	$(Pecho) "  CC    $@"
278
+	$P $(CC) -MMD -c $(ALL_CFLAGS) $< -o $@
270 279
 
271 280
 applet/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
272
-	@echo "  CXX   $@"
273
-	@$(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
281
+	$(Pecho) "  CXX   $@"
282
+	$P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
274 283
 
275 284
 
276 285
 # Target: clean project.
277 286
 clean:
278
-	@echo "  RM    applet/*"
279
-	@$(REMOVE) applet/$(TARGET).hex applet/$(TARGET).eep applet/$(TARGET).cof applet/$(TARGET).elf \
287
+	$(Pecho) "  RM    applet/*"
288
+	$P $(REMOVE) applet/$(TARGET).hex applet/$(TARGET).eep applet/$(TARGET).cof applet/$(TARGET).elf \
280 289
 		applet/$(TARGET).map applet/$(TARGET).sym applet/$(TARGET).lss applet/$(TARGET).cpp applet/core.a \
281 290
 		$(OBJ) $(LST) $(SRC:.c=.s) $(SRC:.c=.d) $(CXXSRC:.cpp=.s) $(CXXSRC:.cpp=.d)
282
-	@echo "  RMDIR applet/"
283
-	@rm -rf applet
291
+	$(Pecho) "  RMDIR applet/"
292
+	$P rm -rf applet
284 293
 
285 294
 
286 295
 .PHONY:	all build elf hex eep lss sym program coff extcoff clean depend applet_files sizebefore sizeafter

+ 8
- 1
Marlin/Marlin.h Просмотреть файл

@@ -84,7 +84,11 @@ const char echomagic[] PROGMEM ="echo:";
84 84
 #define SERIAL_ECHOLN(x) SERIAL_PROTOCOLLN(x)
85 85
 #define SERIAL_ECHOLNPGM(x) SERIAL_PROTOCOLLNPGM(x)
86 86
 
87
-#define SERIAL_ECHOPAIR(name,value) {SERIAL_ECHOPGM(name);SERIAL_ECHO(value);}
87
+#define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value)))
88
+
89
+void serial_echopair_P(const char *s_P, float v);
90
+void serial_echopair_P(const char *s_P, double v);
91
+void serial_echopair_P(const char *s_P, unsigned long v);
88 92
 
89 93
 
90 94
 //things to write to serial from Programmemory. saves 400 to 2k of RAM.
@@ -169,6 +173,7 @@ bool IsStopped();
169 173
 
170 174
 void enquecommand(const char *cmd); //put an ascii command at the end of the current buffer.
171 175
 void prepare_arc_move(char isclockwise);
176
+void clamp_to_software_endstops(float target[3]);
172 177
 
173 178
 #ifdef FAST_PWM_FAN
174 179
 void setPwmFrequency(uint8_t pin, int val);
@@ -183,6 +188,8 @@ extern float homing_feedrate[];
183 188
 extern bool axis_relative_modes[];
184 189
 extern float current_position[NUM_AXIS] ;
185 190
 extern float add_homeing[3];
191
+extern float min_pos[3];
192
+extern float max_pos[3];
186 193
 extern unsigned char FanSpeed;
187 194
 
188 195
 // Handling multiple extruders pins

+ 84
- 34
Marlin/Marlin.pde Просмотреть файл

@@ -1,3 +1,5 @@
1
+/* -*- c++ -*- */
2
+
1 3
 /*
2 4
     Reprap firmware based on Sprinter and grbl.
3 5
  Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
@@ -141,6 +143,8 @@ volatile bool feedmultiplychanged=false;
141 143
 volatile int extrudemultiply=100; //100->1 200->2
142 144
 float current_position[NUM_AXIS] = { 0.0, 0.0, 0.0, 0.0 };
143 145
 float add_homeing[3]={0,0,0};
146
+float min_pos[3] = { X_MIN_POS, Y_MIN_POS, Z_MIN_POS };
147
+float max_pos[3] = { X_MAX_POS, Y_MAX_POS, Z_MAX_POS };
144 148
 uint8_t active_extruder = 0;
145 149
 unsigned char FanSpeed=0;
146 150
 
@@ -199,6 +203,13 @@ bool Stopped=false;
199 203
 
200 204
 void get_arc_coordinates();
201 205
 
206
+void serial_echopair_P(const char *s_P, float v)
207
+    { serialprintPGM(s_P); SERIAL_ECHO(v); }
208
+void serial_echopair_P(const char *s_P, double v)
209
+    { serialprintPGM(s_P); SERIAL_ECHO(v); }
210
+void serial_echopair_P(const char *s_P, unsigned long v)
211
+    { serialprintPGM(s_P); SERIAL_ECHO(v); }
212
+
202 213
 extern "C"{
203 214
   extern unsigned int __bss_end;
204 215
   extern unsigned int __heap_start;
@@ -541,32 +552,65 @@ bool code_seen(char code)
541 552
   return (strchr_pointer != NULL);  //Return True if a character was found
542 553
 }
543 554
 
544
-#define HOMEAXIS(LETTER) \
545
-  if ((LETTER##_MIN_PIN > -1 && LETTER##_HOME_DIR==-1) || (LETTER##_MAX_PIN > -1 && LETTER##_HOME_DIR==1))\
546
-    { \
547
-    current_position[LETTER##_AXIS] = 0; \
548
-    plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); \
549
-    destination[LETTER##_AXIS] = 1.5 * LETTER##_MAX_LENGTH * LETTER##_HOME_DIR; \
550
-    feedrate = homing_feedrate[LETTER##_AXIS]; \
551
-    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); \
552
-    st_synchronize();\
553
-    \
554
-    current_position[LETTER##_AXIS] = 0;\
555
-    plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);\
556
-    destination[LETTER##_AXIS] = -LETTER##_HOME_RETRACT_MM * LETTER##_HOME_DIR;\
557
-    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); \
558
-    st_synchronize();\
559
-    \
560
-    destination[LETTER##_AXIS] = 2*LETTER##_HOME_RETRACT_MM * LETTER##_HOME_DIR;\
561
-    feedrate = homing_feedrate[LETTER##_AXIS]/2 ;  \
562
-    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); \
563
-    st_synchronize();\
564
-    \
565
-    current_position[LETTER##_AXIS] = LETTER##_HOME_POS;\
566
-    destination[LETTER##_AXIS] = current_position[LETTER##_AXIS];\
567
-    feedrate = 0.0;\
568
-    endstops_hit_on_purpose();\
555
+#define DEFINE_PGM_READ_ANY(type, reader)		\
556
+    static inline type pgm_read_any(const type *p)	\
557
+	{ return pgm_read_##reader##_near(p); }
558
+
559
+DEFINE_PGM_READ_ANY(float,       float);
560
+DEFINE_PGM_READ_ANY(signed char, byte);
561
+
562
+#define XYZ_CONSTS_FROM_CONFIG(type, array, CONFIG)	\
563
+static const PROGMEM type array##_P[3] =		\
564
+    { X_##CONFIG, Y_##CONFIG, Z_##CONFIG };		\
565
+static inline type array(int axis)			\
566
+    { return pgm_read_any(&array##_P[axis]); }
567
+
568
+XYZ_CONSTS_FROM_CONFIG(float, base_min_pos,    MIN_POS);
569
+XYZ_CONSTS_FROM_CONFIG(float, base_max_pos,    MAX_POS);
570
+XYZ_CONSTS_FROM_CONFIG(float, base_home_pos,   HOME_POS);
571
+XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
572
+XYZ_CONSTS_FROM_CONFIG(float, home_retract_mm, HOME_RETRACT_MM);
573
+XYZ_CONSTS_FROM_CONFIG(signed char, home_dir,  HOME_DIR);
574
+
575
+static void axis_is_at_home(int axis) {
576
+  current_position[axis] = base_home_pos(axis) + add_homeing[axis];
577
+  min_pos[axis] =          base_min_pos(axis) + add_homeing[axis];
578
+  max_pos[axis] =          base_max_pos(axis) + add_homeing[axis];
579
+}
580
+
581
+static void homeaxis(int axis) {
582
+#define HOMEAXIS_DO(LETTER) \
583
+  ((LETTER##_MIN_PIN > -1 && LETTER##_HOME_DIR==-1) || (LETTER##_MAX_PIN > -1 && LETTER##_HOME_DIR==1))
584
+
585
+  if (axis==X_AXIS ? HOMEAXIS_DO(X) :
586
+      axis==Y_AXIS ? HOMEAXIS_DO(Y) :
587
+      axis==Z_AXIS ? HOMEAXIS_DO(Z) :
588
+      0) {
589
+    current_position[axis] = 0;
590
+    plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
591
+    destination[axis] = 1.5 * max_length(axis) * home_dir(axis);
592
+    feedrate = homing_feedrate[axis];
593
+    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
594
+    st_synchronize();
595
+   
596
+    current_position[axis] = 0;
597
+    plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
598
+    destination[axis] = -home_retract_mm(axis) * home_dir(axis);
599
+    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
600
+    st_synchronize();
601
+   
602
+    destination[axis] = 2*home_retract_mm(axis) * home_dir(axis);
603
+    feedrate = homing_feedrate[axis]/2 ; 
604
+    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
605
+    st_synchronize();
606
+   
607
+    axis_is_at_home(axis);					
608
+    destination[axis] = current_position[axis];
609
+    feedrate = 0.0;
610
+    endstops_hit_on_purpose();
569 611
   }
612
+}
613
+#define HOMEAXIS(LETTER) homeaxis(LETTER##_AXIS)
570 614
 
571 615
 void process_commands()
572 616
 {
@@ -676,8 +720,8 @@ void process_commands()
676 720
         plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
677 721
         st_synchronize();
678 722
     
679
-        current_position[X_AXIS] = X_HOME_POS;
680
-        current_position[Y_AXIS] = Y_HOME_POS;
723
+        axis_is_at_home(X_AXIS);
724
+        axis_is_at_home(Y_AXIS);
681 725
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
682 726
         destination[X_AXIS] = current_position[X_AXIS];
683 727
         destination[Y_AXIS] = current_position[Y_AXIS];
@@ -1539,19 +1583,25 @@ void get_arc_coordinates()
1539 1583
    }
1540 1584
 }
1541 1585
 
1542
-void prepare_move()
1586
+void clamp_to_software_endstops(float target[3])
1543 1587
 {
1544 1588
   if (min_software_endstops) {
1545
-    if (destination[X_AXIS] < X_MIN_POS) destination[X_AXIS] = X_MIN_POS;
1546
-    if (destination[Y_AXIS] < Y_MIN_POS) destination[Y_AXIS] = Y_MIN_POS;
1547
-    if (destination[Z_AXIS] < Z_MIN_POS) destination[Z_AXIS] = Z_MIN_POS;
1589
+    if (target[X_AXIS] < min_pos[X_AXIS]) target[X_AXIS] = min_pos[X_AXIS];
1590
+    if (target[Y_AXIS] < min_pos[Y_AXIS]) target[Y_AXIS] = min_pos[Y_AXIS];
1591
+    if (target[Z_AXIS] < min_pos[Z_AXIS]) target[Z_AXIS] = min_pos[Z_AXIS];
1548 1592
   }
1549 1593
 
1550 1594
   if (max_software_endstops) {
1551
-    if (destination[X_AXIS] > X_MAX_POS) destination[X_AXIS] = X_MAX_POS;
1552
-    if (destination[Y_AXIS] > Y_MAX_POS) destination[Y_AXIS] = Y_MAX_POS;
1553
-    if (destination[Z_AXIS] > Z_MAX_POS) destination[Z_AXIS] = Z_MAX_POS;
1595
+    if (target[X_AXIS] > max_pos[X_AXIS]) target[X_AXIS] = max_pos[X_AXIS];
1596
+    if (target[Y_AXIS] > max_pos[Y_AXIS]) target[Y_AXIS] = max_pos[Y_AXIS];
1597
+    if (target[Z_AXIS] > max_pos[Z_AXIS]) target[Z_AXIS] = max_pos[Z_AXIS];
1554 1598
   }
1599
+}
1600
+
1601
+void prepare_move()
1602
+{
1603
+  clamp_to_software_endstops(destination);
1604
+
1555 1605
   previous_millis_cmd = millis();  
1556 1606
   plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate*feedmultiply/60/100.0, active_extruder);
1557 1607
   for(int8_t i=0; i < NUM_AXIS; i++) {

+ 1
- 11
Marlin/motion_control.cpp Просмотреть файл

@@ -125,17 +125,7 @@ void mc_arc(float *position, float *target, float *offset, uint8_t axis_0, uint8
125 125
     arc_target[axis_linear] += linear_per_segment;
126 126
     arc_target[E_AXIS] += extruder_per_segment;
127 127
 
128
-    if (min_software_endstops) {
129
-      if (arc_target[X_AXIS] < X_HOME_POS) arc_target[X_AXIS] = X_HOME_POS;
130
-      if (arc_target[Y_AXIS] < Y_HOME_POS) arc_target[Y_AXIS] = Y_HOME_POS;
131
-      if (arc_target[Z_AXIS] < Z_HOME_POS) arc_target[Z_AXIS] = Z_HOME_POS;
132
-    }
133
-
134
-    if (max_software_endstops) {
135
-      if (arc_target[X_AXIS] > X_MAX_LENGTH) arc_target[X_AXIS] = X_MAX_LENGTH;
136
-      if (arc_target[Y_AXIS] > Y_MAX_LENGTH) arc_target[Y_AXIS] = Y_MAX_LENGTH;
137
-      if (arc_target[Z_AXIS] > Z_MAX_LENGTH) arc_target[Z_AXIS] = Z_MAX_LENGTH;
138
-    }
128
+    clamp_to_software_endstops(arc_target);
139 129
     plan_buffer_line(arc_target[X_AXIS], arc_target[Y_AXIS], arc_target[Z_AXIS], arc_target[E_AXIS], feed_rate, extruder);
140 130
     
141 131
   }

+ 1
- 0
README.md Просмотреть файл

@@ -152,6 +152,7 @@ Movement variables:
152 152
 *   M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
153 153
 *   M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
154 154
 *   M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) im mm/sec^2  also sets minimum segment time in ms (B20000) to prevent buffer underruns and M20 minimum feedrate
155
+*   M206 - set home offsets.  This sets the X,Y,Z coordinates of the endstops (and is added to the {X,Y,Z}_HOME_POS configuration options (and is also added to the coordinates, if any, provided to G82, as with earlier firmware)
155 156
 *   M220 - set build speed mulitplying S:factor in percent ; aka "realtime tuneing in the gcode". So you can slow down if you have islands in one height-range, and speed up otherwise.
156 157
 *   M221 - set the extrude multiplying S:factor in percent
157 158
 *   M400 - Finish all buffered moves.

Загрузка…
Отмена
Сохранить