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

    daata gathered from gcode

    Scheduled Pinned Locked Moved
    General Discussion
    4
    5
    169
    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.
    • Tinchusundefined
      Tinchus
      last edited by

      Hello. ON the DWC interface (duet3 sbc mode), on the jobs section, next to each uploaded gcode I can read some information that has been taken from the gcode, the slicer name for wxample. Apart from what it is already included on the defaul DWC interface, is there any aditional data that can be read from start.g routine for example? (in start.g I can read the object model values for example).
      My objective is to read if a particular print profile is being used or not. Any ideas on how from the slicer I can generate some kind of tag that later can be detected from start.g?
      Thanks in advance

      T3P3Tonyundefined zaptaundefined OwenDundefined 3 Replies Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @Tinchus
        last edited by

        @Tinchus currently what is read into the object model from a file is here:
        https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation#jobfile

        We have an open feature request that would do something like what you are asking for:
        https://github.com/Duet3D/RepRapFirmware/issues/788

        T3P3 created this issue in Duet3D/RepRapFirmware

        closed Gcode comments -> Object Model #788

        www.duet3d.com

        1 Reply Last reply Reply Quote 1
        • zaptaundefined
          zapta @Tinchus
          last edited by

          @Tinchus , can you inject from your slicer custom Goode that will identify the profile? E.g. setting a global variable or passing a parameter to a macro?

          Tinchusundefined 1 Reply Last reply Reply Quote 0
          • Tinchusundefined
            Tinchus @zapta
            last edited by

            @zapta I was thinking exactly as you are thinking now I think and that was going to be my next question to @T3P3Tony too: I can produce custom gcode from the slicer in order to inject whatever I want. I was thinking on putting something like "global profile = whatever". This code will be inyected at the beggining og the gcode.

            My question is this variable declaration will be read when the gcode is analized by the firmware when starting the print, and so start.g will already have access to this variable?

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

              @Tinchus
              If you're using Prusa Slicer or Super Slicer, then you can use the placeholders to set your global variable (which you would need to define/create in config.g).
              Something like this in your slicer start code.

              set global.PrinterPreset = {printer_preset}
              

              However, RRF's start.g is run before the slicer start gcode, so you would not be able to act on it there.
              You'd need to call a macro further on in the slicer start gcode.

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