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

    ToolChanger tool data

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    215
    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.
    • K01571N3Nundefined
      K01571N3N
      last edited by

      Hi,

      https://forum.duet3d.com/topic/20693/which-tool-is-enabled-after-startup

      @taconite wrote earlier about this, and I started doing the same on my own printer. I had the following problem:

      DIY ToolChanger with Duet 3 6HC, 3HC and Raspberry pi.

      If i write to console

      M560 P"0:/sys/test"
      

      or run macro like that

      M560 P"/sys/test"
      <!-- **EoF** -->
      

      or whatever else, "Error: M560: Can't open file test for writing" appears...

      If i write

      M98 P"0:/sys/test
      

      it will run that macro.

      Is Raspberry pi somehow causing the trouble here or what?

      1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators
        last edited by

        It looks like M560 isn't implemented in DSF yet so I'll add that to the TODO list.

        Nevertheless M28/29 should work. Can you use that instead?

        Duet software engineer

        K01571N3Nundefined 1 Reply Last reply Reply Quote 0
        • K01571N3Nundefined
          K01571N3N @chrishamm
          last edited by

          @chrishamm i will try that. Is this correct way to do that? So it will make a file to sys directory named ToolActive.g and in this file is text T0?

          toolchange macro T0

          ; T0
          
          M28 /sys/ToolActive.g
          T0
          M29
          
          
          chrishammundefined 1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators @K01571N3N
            last edited by

            @K01571N3N Yes, exactly.

            Duet software engineer

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