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

    Feature Req:Show current layer,total layers and total height

    Scheduled Pinned Locked Moved
    PanelDue
    2
    3
    397
    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.
    • makotosanundefined
      makotosan
      last edited by

      It would be nice to be able to see on the PanelDue which layer is currently printing, as well as the total number of layers, and the total z-height of the print.

      makotosanundefined 1 Reply Last reply Reply Quote 1
      • makotosanundefined
        makotosan @makotosan
        last edited by

        I figured I'd take a stab at implementing this. Looks like the PanelDue is sending a "M408 S0" to get the current info. I was thinking of changing this to a "M408 S4" to get some additional info, and if the status is currently printing, send a "M36" to get stats of the current file.

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

          M408 S0 and S1 return a flat JSON object. M408 S2 to S5 return a nested JSON object. The parser in PanelDue didn't originally work with nested JSON objects, but I extended it a few versions ago. There were bugs in the original implementation, but I fixed those when I used the same parser in another project, and I back-ported the fixes to PanelDue in the latest revision. So it should be possible to use S2 instead of S0 now, and also to use S4; but you will need to change the variable names in table ReceiveDataTableEntry in PanelDue.cpp to match the names used in the S2 response.

          There is already code to process a M36 response, but currently it is only used in to display file info after selecting a print file.

          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