Closed paranoid64 closed 2 days ago
Hi, could you post a screenshot of your Laser-Cutter settings in VisiCut. It is probably not much work to add a setting for adding a space to the selected driver. Also I guess the upload could be implemented directly in a new driver, which inherits the currently used one.
Hi,
So there is a space in there.
I once used this LAOH-HPC device with default config, because it doesn't matter for the G-code. But even there the export is without space.
The Grbl GCode driver removes spaces because they are not needed for Grbl. I doubt that the space is really the problem. Even the test files in the FluidNC repository have some commands without spaces: https://github.com/bdring/FluidNC/blob/main/FluidNC/src/tests/parsetest.nc#L6
I don't understand what you mean about LAOS-HPC. The LAOS driver does not use GCode but some other format: https://github.com/t-oster/LibLaserCut/blob/master/test-output/de.thomas_oster.liblasercut.drivers.LaosCutter.out Maybe you are looking for the "Generic GCode" driver?
Best guess for the actual solution:
Space is not the problem. The problem is the line ending. When saving the file with your text editor, the line ending is changed from CR to LF or CRLF and then it works.
For Grbl we use CR (I don't know why). Grbl treats CR and LF the same: https://github.com/grbl/grbl/blob/9180094b72821ce68e33fdd779278a533a7bf40c/grbl/protocol.c#L110 FluidNC only supports LF and CRLF: https://github.com/bdring/FluidNC/blob/f9016b7468f881143c1c3716b426edde9de6f19e/FluidNC/src/InputFile.cpp#L22-L28
So as a workaround we could change the Grbl driver to use LF, and then hope that's enough so that it is compatible with FluidNC.
A draft version with CRLF instead of LF is available for download here under "artifacts". https://github.com/t-oster/VisiCut/actions/runs/11764084933?pr=736
Please give feedback if that works.
Hi, works for me. But I don't think FluidNC was the problem, because I only exported the G-code and did the same in NCviewer (Online G-Code Simulator). Nothing was visible there either. Maybe it's the computer and I have to test it again on the same computer.
It may be the same issue, that the online simulator does not like CR line endings (which is quite exotic, because Windows uses CRLF and Linux LF. Only ancient Mac software used CR.)
Hello,
the g-code that is exported is without spacing.
I use the last Linux app image.
I haven't found anything on how to fix this with settings?
I always use the G-Code export because FluidNC opens its own access point and everything works via webUI without a cable connection. Unfortunately, the G-code only works with this when you first search and insert space between the command and the coordinates. Otherwise the program would be perfect for me.