Navigation

    Duet3D Logo

    Duet3D

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

    Stop Macro Arguments

    Gcode meta commands
    2
    4
    71
    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.
    • CthulhuLabs
      CthulhuLabs last edited by

      So I am converting my Shapeoko CNC from using their GRBL controller to a Duet 3 (running in SBC mode with RRF 3.3rc3). The Gcode files use M0 commands for tool changes like this:

      G90
      G21
      (Advanced....)
      M05
      M0 ;T102
      M03S18000
      G0X88.252Y122.935Z12.700
      G1Z-0.762F381.0
      Y127.648F1143.0
      X92.965
      X92.186Y127.035
      X91.305Y126.271
      X90.390Y125.396
      X89.603Y124.566
      X88.843Y123.688
      X88.252Y122.935
      ...
      

      I can use the stop.g macro to handle this (I think). My question is if the ;T102 that comes after the M0 is passed as an option to the stop.g file. T102 represents the endmill to use and I would like to have the stop.g macro prompt the user to load that tool.

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

        M0 terminates the job, so it makes no sense to have any GCode commands after it.

        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

        CthulhuLabs 1 Reply Last reply Reply Quote 0
        • CthulhuLabs
          CthulhuLabs @dc42 last edited by

          @dc42 well that sucks. Guess Ill have to write a secondary post processor to convert GRBL gcode files to something RRF can process. Most of the software used by Hobby CNCs seem to use M0 for tool changes like this.

          CthulhuLabs 1 Reply Last reply Reply Quote 0
          • CthulhuLabs
            CthulhuLabs @CthulhuLabs last edited by

            Woohoo! After playing around with a bunch of settings I was able to get the CAM software to export with M6 commands so all I need to do is implement my own /sys/M6.g macro. No post processing needed.

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