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

GCode Live modification

Scheduled Pinned Locked Moved
Firmware developers
2
2
151
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.
  • undefined
    qurt
    last edited by 24 May 2024, 10:31

    What is the best way to integrate a control loop algorithms in the duet firmware. This algorithm should be able to more or
    less modify life, the gcode. I am fine with having a delay of e.g. a defined buffer size before the new/modified gcode takes action.

    I tried out modifying the gcode or deleting it during the print. But It looks like you are using a huge buffer or writing the gcode to a different location during print.

    Streaming the gcode in the sense of sending it command by command might be a bit slow I guess?

    undefined 1 Reply Last reply 24 May 2024, 10:52 Reply Quote 0
    • undefined
      droftarts administrators @qurt
      last edited by 24 May 2024, 10:52

      @qurt I think it would need to be modified before it gets to the command queue, as it's very difficult to modify anything once it gets there. For more information on how the command queue works, see https://docs.duet3d.com/en/User_manual/Reference/Gcodes#command-queueing

      You can shorten the command queue for quicker response to changes that you are streaming in, using M595.

      But the shorter the queue, the more likely buffer starvation will occur. If you are streaming Gcode over USB, see Printing over USB connection for other limitations.

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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