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

    workhome.g and other macros

    Scheduled Pinned Locked Moved
    CNC
    2
    10
    502
    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.
    • djthumaundefined
      djthuma
      last edited by

      Hello,

      I have my duet 3 6xd working. But it calls for a workhome.g file for work home.. which was not setup with the configurator.

      Does anyone have a work home file and other macros I can use to create custom codes?

      What does the community use on a CNC?

      Sindariusundefined 1 Reply Last reply Reply Quote 0
      • Sindariusundefined
        Sindarius @djthuma
        last edited by

        @djthuma workzero.g should be the only custom macro for the cnc dashboard, if I remember offhand. Because each machine is different make one in your system folder with whatever safe movement you need to get to your zero position.

        djthumaundefined 1 Reply Last reply Reply Quote 0
        • djthumaundefined
          djthuma @Sindarius
          last edited by

          @Sindarius okay.

          What does that file look like? What is your macro say?

          Sindariusundefined 1 Reply Last reply Reply Quote 0
          • Sindariusundefined
            Sindarius @djthuma
            last edited by

            @djthuma In my case I move up until I hit the Z limit switch then move to X0 Y0 and then lower Z to zero.

            G91
            G1 H3 Z90 F500 
            G90
            G1 X0 Y0 F6000
            G1 Z0
            
            djthumaundefined 2 Replies Last reply Reply Quote 0
            • djthumaundefined
              djthuma @Sindarius
              last edited by

              @Sindarius Thank you!

              I'll try then when I can.

              I was worried it would use the autohome x,y,z, instead of the work home position x,y,z.

              1 Reply Last reply Reply Quote 0
              • djthumaundefined
                djthuma @Sindarius
                last edited by

                @Sindarius I am having an error occur after moving to the workhome position.

                3fcb2577-4569-42e4-8236-5266a8474987-image.png

                It will make the moves under G91 But not G90. Sometimes, it will go to the work home X + Y but show the error on the Z movement.

                Sindariusundefined 1 Reply Last reply Reply Quote 0
                • Sindariusundefined
                  Sindarius @djthuma
                  last edited by

                  @djthuma Make sure you set a zero with the Set Work XYZ button or each of the respective set buttons before using the go to zero button or it may be trying to travel beyond your z axis.

                  1 Reply Last reply Reply Quote 0
                  • djthumaundefined
                    djthuma
                    last edited by

                    Still having trouble.

                    I have the machine homing to the back left with an endstop at the top of my z axis. That gets set to x=0 y=0 Z=200

                    I can move it around and then set the work home.
                    But the same error when I try to go to work home.

                    1 Reply Last reply Reply Quote 0
                    • djthumaundefined
                      djthuma
                      last edited by

                      If I remove the
                      G91
                      G1 H3 Z90 F500.

                      I don't get an error on the G90 moves.
                      But I would want it to remove the tool before homing.

                      Sindariusundefined 1 Reply Last reply Reply Quote 0
                      • Sindariusundefined
                        Sindarius @djthuma
                        last edited by

                        @djthuma Can you give more information about the setup of your CNC?

                        The G1 H3 is meant to move to the top most limit switch on the z axis if your Z is higher you can adjust it to make sure you trigger it. This is assuming you have a top limit switch. This is simply meant to do a safe move on my machine that has a top limit of 90mm.

                        You can see more info on the G1 H param or you could omit it like you have but you will want to make sure that the machine moves in a safe manner when going to your work zero position.
                        https://docs.duet3d.com/en/User_manual/Reference/Gcodes#g1-controlled-linear-move

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