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

- added a space before Y coordinate in end_code() function in some of the postprocessor files

Marius Stanciu 7 лет назад
Родитель
Сommit
5a0488c19f
5 измененных файлов с 8 добавлено и 4 удалено
  1. 4 0
      README.md
  2. 1 1
      postprocessors/default.py
  3. 1 1
      postprocessors/grbl_11.py
  4. 1 1
      postprocessors/manual_toolchange.py
  5. 1 1
      postprocessors/marlin.py

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 
 =================================================
 =================================================
 
 
+30.01.2019
+
+- added a space before Y coordinate in end_code() function in some of the postprocessor files
+
 29.01.2019
 29.01.2019
 
 
 - fixed issue in Tool Calculators when a float value was entered starting only with the dot.
 - fixed issue in Tool Calculators when a float value was entered starting only with the dot.

+ 1 - 1
postprocessors/default.py

@@ -114,7 +114,7 @@ M0""".format(toolchangez=self.coordinate_format%(p.coords_decimals, toolchangez)
     def end_code(self, p):
     def end_code(self, p):
         coords_xy = p['toolchange_xy']
         coords_xy = p['toolchange_xy']
         gcode = ('G00 Z' + self.feedrate_format %(p.fr_decimals, p.endz) + "\n")
         gcode = ('G00 Z' + self.feedrate_format %(p.fr_decimals, p.endz) + "\n")
-        gcode += 'G00 X{x}Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + "\n"
+        gcode += 'G00 X{x} Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + "\n"
         return gcode
         return gcode
 
 
     def feedrate_code(self, p):
     def feedrate_code(self, p):

+ 1 - 1
postprocessors/grbl_11.py

@@ -111,7 +111,7 @@ M0""".format(toolchangez=self.coordinate_format%(p.coords_decimals, toolchangez)
     def end_code(self, p):
     def end_code(self, p):
         coords_xy = p['toolchange_xy']
         coords_xy = p['toolchange_xy']
         gcode = ('G00 Z' + self.feedrate_format % (p.fr_decimals, p.endz) + "\n")
         gcode = ('G00 Z' + self.feedrate_format % (p.fr_decimals, p.endz) + "\n")
-        gcode += 'G00 X{x}Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + "\n"
+        gcode += 'G00 X{x} Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + "\n"
         return gcode
         return gcode
 
 
     def feedrate_code(self, p):
     def feedrate_code(self, p):

+ 1 - 1
postprocessors/manual_toolchange.py

@@ -128,7 +128,7 @@ M0
     def end_code(self, p):
     def end_code(self, p):
         coords_xy = p['toolchange_xy']
         coords_xy = p['toolchange_xy']
         gcode = ('G00 Z' + self.feedrate_format %(p.fr_decimals, p.endz) + "\n")
         gcode = ('G00 Z' + self.feedrate_format %(p.fr_decimals, p.endz) + "\n")
-        gcode += 'G00 X{x}Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + "\n"
+        gcode += 'G00 X{x} Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + "\n"
         return gcode
         return gcode
 
 
     def feedrate_code(self, p):
     def feedrate_code(self, p):

+ 1 - 1
postprocessors/marlin.py

@@ -104,7 +104,7 @@ M0 Change to Tool Dia = {toolC}
     def end_code(self, p):
     def end_code(self, p):
         coords_xy = p['toolchange_xy']
         coords_xy = p['toolchange_xy']
         gcode = ('G0 Z' + self.feedrate_format %(p.fr_decimals, p.endz) + " " + self.feedrate_rapid_code(p) + "\n")
         gcode = ('G0 Z' + self.feedrate_format %(p.fr_decimals, p.endz) + " " + self.feedrate_rapid_code(p) + "\n")
-        gcode += 'G0 X{x}Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + " " + self.feedrate_rapid_code(p) + "\n"
+        gcode += 'G0 X{x} Y{y}'.format(x=coords_xy[0], y=coords_xy[1]) + " " + self.feedrate_rapid_code(p) + "\n"
 
 
         return gcode
         return gcode