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

    Start G-code

    Scheduled Pinned Locked Moved
    General Discussion
    4
    8
    2.5k
    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.
    • fmaundefined
      fma
      last edited by

      Hi!

      Is there a way to execute some G-code juste before the file content is interpreted?

      I would like to add a purge/cleanup hotend cycle. I could use the Start G-code of the slicer, but I sometime use a different slicer, which means duplicating configs…

      A start.g file, as there are stop.g, cancel.g and so, would be nice.

      Thanks,

      Frédéric

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        You could create your own start.g file and then use M98 to invoke it from your slicer start gcode.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 1
        • fmaundefined
          fma
          last edited by

          😕 So simple… I don't have the reflex to use macros yet. This is new to me 🙂

          Thanks!

          Frédéric

          1 Reply Last reply Reply Quote 0
          • Whitewolfundefined
            Whitewolf
            last edited by

            It would be nice to have a default start.g file that gets called automatically without the need to add anything to the slicer. This is especially useful for anyone selling a kit where they want to make the printer behave a specific way regardless of the end users slicer settings

            Exploring the universe wherever the tech blows

            1 Reply Last reply Reply Quote 0
            • raykholoundefined
              raykholo
              last edited by

              While I understand the possible appeal Whitewolf describes, I think it is dangerous for the machine to do anything it is not explicitly commanded to do. The M98 in the start gCode in Slicer strikes a nice balance, because if a new user uses premade slicing profiles from the manufacturer, this can have the M98 line in it, but if a more advanced user wants to use their own slicer settings, they can have complete control and not have the machine perform additional unexpected actions.

              1 Reply Last reply Reply Quote 0
              • Whitewolfundefined
                Whitewolf
                last edited by

                @raykholo:

                While I understand the possible appeal Whitewolf describes, I think it is dangerous for the machine to do anything it is not explicitly commanded to do. The M98 in the start gCode in Slicer strikes a nice balance, because if a new user uses premade slicing profiles from the manufacturer, this can have the M98 line in it, but if a more advanced user wants to use their own slicer settings, they can have complete control and not have the machine perform additional unexpected actions.

                I underdstand what you are saying but the problem with that logic is it depends on a kit being added to every slicer.

                Advanced users can simply modify the start.g file if the start sequence does not perform as they wish.

                All of the XYZ davinci printers home all axes, move the head off to the side of the printable area and then heat and prime the nozzle then do a wipe down the edge of the bed before beginning any of the slicers gcode and of a kit developer wants to do any number of such things they should be able to.

                Advanced users are just that and have the ability to modify the printer to perform anyway they want to. they dont need a slicer to do so and we are not talking about a firmware that needs to be compiled … it is a single file they can modify or hit the delete button

                A kit developer can control the pause routine or the tool change routine through the firmware files or the slicers gcode scripts so it doesnt make much sense to say no to start routine unless you remove the ability for all... just like the advanced users can delete or modify any of the other available routines pause, resume, homeall etc

                Exploring the universe wherever the tech blows

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by

                  If we did implement a start.g file, it would have to be executed before starting the file to be printed. Whereas operations such as bed probing are usually better done after the printer is up to temperature.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • Whitewolfundefined
                    Whitewolf
                    last edited by

                    @dc42:

                    If we did implement a start.g file, it would have to be executed before starting the file to be printed. Whereas operations such as bed probing are usually better done after the printer is up to temperature.

                    Please do, its not needed in all situations for the bed to be up to temp.

                    One question though, on the XYZ Davinci series before the slicer gcode the head is parked off to the side then the bed temp rises and the hotend temp rises then the head moves onto the bed then a prime and wipe down the edge of the bed.

                    Are they reading the temps from the gcode ahead of time to accomplish this? and no this wasnt in my slicer start script it was part of the firmware

                    Exploring the universe wherever the tech blows

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