Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    G30 and deployprobe.g

    Tuning and tweaking
    3
    5
    30
    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.
    • Th0mpy
      Th0mpy last edited by

      Hey everyone! I am working out some macros to deploy and retract an optical z-probe.

      To deploy you move the X axis all the way to the left side and to retract you move all the way to the right side. Not too exotic.

      In the deployprobe.g i have the following:

      G60 S0					;Store current location into first memory slot (to be used for return)
      G1 X0 Y10				;Move to the location to deploy the probe 
      G1 X0 Y0 Z0 R0			        ;Return to probing point
      

      ...and retractprobe.g:

      G1 X150 Y10			        ;Move nozzle to retract probe
      G1 X0 Y0 Z0 R0				;Move to origin location
      

      This works well, if I move to an arbitrary point and issue a G30. It moves to extend the probe, probes the spot, returns the probe, and moves back to the original location.

      What does NOT work is if I issue a command G30 Xnnn Ynnn. I cannot seem to figure out how to use deployprobe AND a G30 command which contains coordinates.

      Any ideas?

      Usually the team that scores the most points wins the game.

      Phaedrux fcwilt 2 Replies Last reply Reply Quote 0
      • Phaedrux
        Phaedrux Moderator @Th0mpy last edited by Phaedrux

        @th0mpy said in G30 and deployprobe.g:

        I cannot seem to figure out how to use deployprobe AND a G30 command which contains coordinates.

        You could have a M401 command to deploy before the G30 X Y command.

        Not sure why it wouldn't deploy automatically though. What firmware version?

        Z-Bot CoreXY Build | Thingiverse Profile

        Th0mpy 1 Reply Last reply Reply Quote 1
        • Th0mpy
          Th0mpy @Phaedrux last edited by

          @phaedrux

          Sorry, I should clarify just a little more.

          It works, in that, the probe deploys but it will return to the origin that I defined via G60 and probe, NOT the G30 coordinates that I specified.

          I just updated so I'm running 3.4

          Usually the team that scores the most points wins the game.

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

            Thanks for the clarification. That's something @dc42 would have to answer on the expected behavior. I've never seen that done before.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • fcwilt
              fcwilt @Th0mpy last edited by fcwilt

              @th0mpy said in G30 and deployprobe.g:

              What does NOT work is if I issue a command G30 Xnnn Ynnn. I cannot seem to figure out how to use deployprobe AND a G30 command which contains coordinates.

              Unless that has changed very recently using G30 like that ignores the X and Y parameters.

              I have made a request in the past to implement that capability.

              Frederick

              Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

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