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

    param.P doesn't return macro name

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    2
    199
    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.
    • OwenDundefined
      OwenD
      last edited by OwenD

      It seems that the "P" parameter of M98 is captured by RRF and not exposed to the new param meta code
      I'm guessing it's too deeply entwined in other code, but thought I'd check.

      If I send
      M98 P"0:/macros/TestMacro" A1 B"MyString"

      and TestMacro.g contains

      echo param.A
      echo param.B
      echo param.P
      

      Then the A * B parameters will be returned but the P arameter casues an error

      M98  P"0:/macros/TestMacro" A1 B"MyString"
      1
      MyString
      Error: in file macro line 3 column 13: meta command: unknown parameter 'P'
      
      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @OwenD
        last edited by

        That's correct, the M98 P parameter is not included, on the grounds that it's not normally of interest because you know what file you are running.

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