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

    Check current tool number

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    5
    320
    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.
    • Ray11undefined
      Ray11
      last edited by

      When using RRF 3, I want to check the current tool number using if statement. I wrote a snippet but it seemed not working, any ideas?

      if state.currentTool = 1
      M117 "Tool1"
      if state.currentTool = 0
      M117 "Tool0"
      
      1 Reply Last reply Reply Quote 0
      • TCundefined
        TC
        last edited by

        You have indent every line Inside the if Statement

        1 Reply Last reply Reply Quote 1
        • Ray11undefined
          Ray11
          last edited by

          Oh now it's working, thank you!

          TCundefined 1 Reply Last reply Reply Quote 0
          • TCundefined
            TC @Ray11
            last edited by

            @Ray11 You are welcome

            1 Reply Last reply Reply Quote 0
            • wcj97undefined
              wcj97
              last edited by

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