Duet3D Logo

    Duet3D

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

    Solved Check current tool number

    Duet Hardware and wiring
    3
    5
    138
    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.
    • Ray11
      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
      • TC
        TC last edited by

        You have indent every line Inside the if Statement

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

          Oh now it's working, thank you!

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

            @Ray11 You are welcome

            1 Reply Last reply Reply Quote 0
            • wcj97
              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