jgphilpott / polyslice

An FDM slicer designed specifically for three.js
https://jgphilpott.github.io/polyslice/serial/browser/sender.html
MIT License
4 stars 0 forks source link

Add G-code streaming feature upon file upload #6

Closed jgphilpott closed 4 months ago

jgphilpott commented 4 months ago

Is your feature request related to a problem? Please describe:

Yes. For some firmware types, such as Marlin, file uploads don't work as expected. I observed that when I send an entire G-code file at once only the first 8 commands actually get executed. After some research I discovered that this is because the Marlin firmware will only queue 8 commands at a time, the rest of the commands get discarded because they arrive before the printer has had time to run the commands it has already received. I believe the queue limit can be increased but doing so has a negative impact on the printers overall performance because it uses up memory so I don't want that to be the solution. For more detail read this comment on issue #2.

Describe the solution you'd like to see:

It would be great to develop a streaming function that will send the commands one at a time, only sending the next one after the previous one has been executed.

Describe alternatives you've considered:

N/A

Additional Information:

This can be done by proceeding the file with a M111 S1 command.

jgphilpott commented 4 months ago

Done