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

    How to use New Mcode run Multiple Mcode?

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    6
    243
    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.
    • jimmychiuundefined
      jimmychiu
      last edited by jimmychiu

      Hi,
      I want to create M6 code in Reprap.
      The codes is like bellow,
      G0 Y150
      G0 Y225
      G0 Y150

      And need wait active finish and run next.
      How to do?

      5e716d72-d30c-45a9-9165-8bdf1e2b5155-image.png

      1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk
        last edited by

        Do you realise that if you want to us a gcode that isn't supported that you can create a file called M6.g and put it in the sys folder?
        You can then add whatever you want to the contents of that file and when M6 is called it will execute that file?

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        1 Reply Last reply Reply Quote 0
        • jimmychiuundefined
          jimmychiu
          last edited by

          Yes,I know. But, g file can not put any parameter, right?
          I need m code like M19 A300 B200 C400.
          d1aa32a9-1b61-447d-a5bc-7c1890baef32-image.png

          Now, I need call other existed m code.

          1 Reply Last reply Reply Quote 0
          • jimmychiuundefined
            jimmychiu
            last edited by

            example,
            I want run M6 A10 B20 C30 , action like bellow picture.
            ac3b25af-fba6-4410-b376-b52795b3fc52-image.png

            1 Reply Last reply Reply Quote 0
            • jimmychiuundefined
              jimmychiu
              last edited by jimmychiu

              Anyone knows what my question? I want to run G83 in CNC machine.
              I just want to know how to add mutiple G/M code in G83 code.
              dbc52d65-745c-4d66-b417-9688d10c24ed-image.png

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

                It's not currently possible to pass parameters to macro files. Support for macro parameters is planned for firmware 3.3.

                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
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA