Exemplo n.º 1
0
 def _move(self, axis, amnt):
     if axis != 'e':
         jogger = {axis:amnt}
         printer_jog.jog(desired=jogger, speed=1500, relative=True)
     else:
         jogger = {axis:amnt}
         printer_jog.jog(desired=jogger, speed=100, relative=True)
Exemplo n.º 2
0
    def _prepare_printer(self):
        # Prepare printer for zoffset configuration
        #jog the Z Axis Down to prevent any bed interference
        jogger = {'z': 160}
        printer_jog.jog(desired=jogger, speed=1500, relative=True)
        #kill the extruder
        roboprinter.printer_instance._printer.commands('M104 S0')
        roboprinter.printer_instance._printer.commands('M140 S0')
        roboprinter.printer_instance._printer.commands('M106 S255')
        roboprinter.printer_instance._printer.commands('M502')
        roboprinter.printer_instance._printer.commands('M500')
        roboprinter.printer_instance._printer.commands('G28')

        bed_x = 0
        bed_y = 0

        roboprinter.printer_instance._printer.commands('G1 X' + str(bed_x) +
                                                       ' Y' + str(bed_y) +
                                                       ' F10000')
        roboprinter.printer_instance._printer.commands('G1 Z20 F1500')
Exemplo n.º 3
0
 def _jog(self, direction):
     # determine increment value
     increment = direction * self.f_toggle_mm[self.toggle_mm]
     jogger = {'z': increment}
     printer_jog.jog(desired=jogger, speed=1500, relative=True)