svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
647 stars 172 forks source link

Commands are sent incorrectly #321

Closed nfrik closed 1 year ago

nfrik commented 1 year ago

Describe the bug The order of commands is incorrect. Either every 2nd one is omitted or the order is reversed.

To Reproduce Steps to reproduce the behavior:

  1. Generate text with G-Code creation and start plotting while looking at the real-time status report on the COM port

Expected behavior

  1. Every command should be sent in the order of appearance in the gcode file

Screenshots

image

svenhb commented 1 year ago

I assume you connected "Marlin" instead of a grbl-controller. Probably the first user. The problem is: to get actual position from Marlin you have to send a "real" command M114, which also generates a "ok", this confuses my buffers... I will have a look to fix that.

svenhb commented 1 year ago

I can't see the problem with my Mega 2560 with Marlin 2.1.2 (just controller without real hardware), but found perhaps a point to fix. Please try https://github.com/svenhb/GRBL-Plotter/blob/master/GRBL-Plotter_1_6_8_3_Setup.exe

nfrik commented 1 year ago

This worked perfectly, thank you!

svenhb commented 1 year ago

Good to hear, thanks for testing. Further feedback for usage with Marlin is welcome :-)