Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    looking for good starting gcode

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    9
    878
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Co3getundefined
      Co3get
      last edited by

      I'm working on a start gcode (I use Prusa slicer) that will move the nozzle out to the beginning of the print at +10 Z or so then lowering it. Trying to solve the problem of dragging cross the bed at first layer height to the beginning of the print. What I have (below) doesn't work even though I move the Z up at the end. IDeas?

      Working with this:
      ;prepare positions
      G21 ;metric values
      G90 ;absolute positioning
      M82 ;set extruder to absolute mode
      M107 ;start with the fan off

      M104 S[first_layer_temperature_0]; heat hotend (no wait)

      G28 X0 Y0 ;move X/Y to min endstops

      M190 S[bed_temperature]; heat bed (wait)
      M109 S[first_layer_temperature_0]; heat hotend (wait)

      G92 E0 ;zero the extruded length
      G1 F200 E8 ;extrude 8mm of feed stock
      G92 E0 ;zero the extruded length again

      G28 Z10 ;move Z up

      M420 S1 ; ensures auto leveling is enabled

      M117 Printing...

      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • aidarundefined
        aidar
        last edited by

        @Co3get said in looking for good starting gcode:

        G28 Z10 ;move Z up

        G28 is homing command, not just moving. So you should use here G1 Z10 (if your nozzle is not at that high or more already). If you want to move Z up 10 from current position, you should also use relative mode first, so commands should be :
        G91
        G1 Z10
        G90

        1 Reply Last reply Reply Quote 1
        • Phaedruxundefined
          Phaedrux Moderator @Co3get
          last edited by

          @Co3get said in looking for good starting gcode:

          M420 S1 ; ensures auto leveling is enabled

          M420 isn't implemented in RRF. What you want is G29 S1.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • DIY-O-Sphereundefined
            DIY-O-Sphere
            last edited by

            @Co3get
            If I got you right, you would like to move to the starting point in a diagonal Z path.
            Like in Cura? I would prefere that too.
            That's related to the code Prusaslicer is writing after the start sequence.
            So it's not posible to do it in that way.

            What I have done, is to edit the gcode manually.

            For example:

            G1 Z0.195 F9600.000
            G1 X217.576 Y47.012 F9600.000

            Put the Z and XY part together
            G1 X217.576 Y47.012 Z0.195 F9600.000

            (For clarity I have removed some lines of original code)

            (UTC+1)

            Co3getundefined 1 Reply Last reply Reply Quote 0
            • Co3getundefined
              Co3get @DIY-O-Sphere
              last edited by

              @DIY-O-Sphere said in looking for good starting gcode:

              @Co3get
              If I got you right, you would like to move to the starting point in a diagonal Z path.
              Like in Cura? I would prefere that too.
              That's related to the code Prusaslicer is writing after the start sequence.
              So it's not posible to do it in that way.

              What I have done, is to edit the gcode manually.

              For example:

              G1 Z0.195 F9600.000
              G1 X217.576 Y47.012 F9600.000

              Put the Z and XY part together
              G1 X217.576 Y47.012 Z0.195 F9600.000

              (For clarity I have removed some lines of original code)

              Yes that is it in a nutshell... might be reason enough to use Cura even though I like PrusaSlicer so much.

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                If you're dragging across the bed to get to the start of the print that may be related to using M420 to enable the mesh compensation. G29 S1 should work and if your mesh is done properly it shouldn't be touching the bed at all.

                Z-Bot CoreXY Build | Thingiverse Profile

                Co3getundefined 1 Reply Last reply Reply Quote 0
                • Co3getundefined
                  Co3get @Phaedrux
                  last edited by

                  @Phaedrux I'm printing on a textured sheet and its very very close.

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    As a work around if you don't want to switch slicers could be to use baby stepping manually while you are watching the start of the print. Simply up the baby stepping while it's moving to position and then reduce it after it's in position.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • Danalundefined
                      Danal
                      last edited by

                      @Co3get said in looking for good starting gcode:

                      G28 Z10 ;move Z up

                      That is not doing what you want. Do a G1 Z10 F6000, or similar G1 command. That will fix a lot of things; do that first and adjust from there.

                      Delta / Kossel printer fanatic

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA