コード例 #1
0
    def generateCode(self):
        feed_rate, safe_Z, max_cut_per_pass, bit_diameter, stock_thickness = self.setup.getAllData(
        )

        self.g_code = G.startProgram(feed_rate)

        self.g_code += G.polar_holes(safe_Z, stock_thickness, max_cut_per_pass,
                                     0, bit_diameter,
                                     self.hole_diameter_var.get(),
                                     self.num_holes_var.get(),
                                     self.HCD_var.get())

        self.g_code += G.endProgram()

        return self.g_code
コード例 #2
0
    def generateCode(self):
        feed_rate, safe_Z, max_cut_per_pass, bit_diameter, stock_thickness = self.setup.getAllData()

        self.g_code = G.startProgram(feed_rate)

        self.g_code += G.polar_holes(safe_Z,
                          stock_thickness,
                          max_cut_per_pass,
                          0,
                          bit_diameter,
                          self.hole_diameter_var.get(),
                          self.num_holes_var.get(),
                          self.HCD_var.get())

        self.g_code += G.endProgram()

        return self.g_code
コード例 #3
0
 def proven_straight_drill2(self):
     # challenging that different bit sizes do not change the program
     g_code = sg.polar_holes(40, 4.5, 3, 0, 4.763, 4.763, 6, 131.5)
     match = self.proven_drill()
     self.assertEqual(g_code, match, "not a match")
コード例 #4
0
 def proven_straight_drill1(self):
     g_code = sg.polar_holes(40, 4.5, 3, 0, 2, 2, 6, 131.5)
     match = self.proven_drill()
     self.assertEqual(g_code, match, "not a match")
コード例 #5
0
 def tabbed_two_polar_holes(self):
     g_code = sg.polar_holes(100, 3.0, 3.0, 0, 1, 5, 2, 10)
     match = self.basic_match1()
     self.assertEqual(g_code, match, "not a match")
コード例 #6
0
 def proven_straight_drill2(self):
     # challenging that different bit sizes do not change the program
     g_code = sg.polar_holes(40, 4.5, 3, 0, 4.763, 4.763, 6, 131.5)
     match = self.proven_drill()
     self.assertEqual(g_code, match, "not a match")
コード例 #7
0
 def proven_straight_drill1(self):
     g_code = sg.polar_holes(40, 4.5, 3, 0, 2, 2, 6, 131.5)
     match = self.proven_drill()
     self.assertEqual(g_code, match, "not a match")
コード例 #8
0
 def tabbed_two_polar_holes(self):
     g_code = sg.polar_holes(100, 3.0, 3.0, 0, 1, 5, 2, 10)
     match = self.basic_match1()
     self.assertEqual(g_code, match, "not a match")