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

    M486 parsing

    Scheduled Pinned Locked Moved
    Beta Firmware
    2
    4
    332
    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

      When parsing a file for print objects, we can easily find the beginning M476 Snnn A"***"
      However there doesn't seem to be a corresponding "end" designation.

      The documentations says
      Slicers should number purge towers and other global features with a negative index (or other flag) to distinguish them from regular print objects, since it is important to preserve color changes, purge towers, and brims.

      Do these "flags" have to be specifically supported by RRF, or is there some regular expression being used we can exploit?
      i.e. We know RRF can find the flags used by Prusa slicer, but it's not clear how.
      (other than presumably looking for "stop printing object...")

      I'm looking at it from the point of view of post processing code from slicers that don't support print objects in a usable way, and also to enable code folding.

      Just using M486 S... is fine up until the last object, but any code after that (including stop gcode) will be tied up in the last object named.

      1 Reply Last reply Reply Quote 0
      • OwenDundefined
        OwenD
        last edited by

        I guess I can answer my own question to some extent in that if post processing we can add M486 S-1 to designate the end of an object and the start of something other than a print object.

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

          @OwenD said in M486 parsing:

          I guess I can answer my own question to some extent in that if post processing we can add M486 S-1 to designate the end of an object and the start of something other than a print object.

          That's correct. Use -1 if you don't want the object to appear in the object list and be cancellable.

          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

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

            @dc42 said in M486 parsing:

            @OwenD said in M486 parsing:
            That's correct. Use -1 if you don't want the object to appear in the object list and be cancellable.

            I notice that once you use M486, that RRF doesn’t recognise the object labels that prusa slicer puts in.

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