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

    Meta Commands problem

    Scheduled Pinned Locked Moved
    Beta Firmware
    2
    3
    155
    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.
    • RJUNIOR2003undefined
      RJUNIOR2003
      last edited by RJUNIOR2003

      I have an Automatic tool brush that needs the Z position to be greater than 75mm to clear the Brush motion.
      but once the print height is greater than 75mm tall, than it can simply deploy the arm without any Z movement.

      here is what I'm trying to create.
      If the Z position is <=75 than,
      G90
      G1 Z75 F1000 ;move z bed for clearance
      G1 B65 F4000 ; deploy tool brush

      Else,
      G1 B65 F4000 ;deply tool brush

      I've looked at the wiki but so far my attempts to make this work have been unsuccessful.
      can someone point me in the right direction?

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

        I've not tested this, but try:

        if move.axes[2].userPosition <= 75
          G90
          G1 Z75 F1000 ;move z bed for clearance
          G1 B65 F4000 ; deploy tool brush
        else
          G1 B65 F4000 ;deply tool brush
        

        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
        • RJUNIOR2003undefined
          RJUNIOR2003
          last edited by

          Thank you dc42,

          That worked perfectly!
          I understand the composition of the code now with your example.

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