Hello everybody,
with a direct USB connection my little CNC does a fine job everything works well.
During the lasering I usually place the CNC outdoor. As not to use the PC I bought a little offline controller.
I can control the CNC and also printing the example files of the controller works fine, but printing the Lightburn file does not work.
If I start the GRBL file from Lightburn the controller shows immedeately “printed” but nothing happens.
I think there is an issue with the header of the files:
Example file:
G90
G1Z3F200
M03 S1000
G0 X21.0087 Y10.646
G1Z-0.2
Which version of GRBL is that controller using? If it’s not GRBL 1.1f or later, you should use the GRBL-M3 profile in LightBurn. I notice the code you posted that works contains an M03 command, and the LightBurn gcode is using M4, so that’s a strong possibility.
Sorry, but the M3 does not work with the offline controler.
The controller of the CNC has GRBL Version 1.1f and is working fine together with the PC (also with the M3 profile) but not with the offline controller.
As I understand the offline controller should send only the commands from the GRBL file to the CNC. So I don’t understand what happens.
This is the header of the M3-nc-file:
; LightBurn 0.9.11
; GRBL-M3 (1.1e or earlier) device profile, current position
G00 G17 G40 G21 G54
G91
; Cut @ 400 mm/min, 100% power
M9
M5
G0X5.22Y35.4
M3
G1X0.04Y0.02S2400F400
G1X0.01Y0.05
G1X-0.04Y0.71
G1X-0.01Y0.72
…
It might be that the offline controller is looking for specific things in the file before it starts to send them. I do not have one, so you’d need to see if there are instructions for the offline controller and what format of data it is expecting.
Did you ever figure this out? It sure looks like the CNC has it’s own GRBL controller on it which works with the USB serial g-code streaming and then there is another GRBL based controller in the “Offline Controller”. The Offline Controller connects to the CNC controller stepper motors and switches over a ribbon cable and something in that controller doesn’t parse the G-Code files the same as the CNC’s onboard controller. There is literally just a series of lines of text being sent to GRBL, both over USB and when read from a file on an SD card.
I would ask the maker of the product why it will not read the same G-Code the same. ie the exact same G-Code is being sent over USB as is stored on the uSD card when Lightburn is involved. The only difference I could imagine getting involved is there being line ending character differences. ie some systems put CR(\r carriage return) and others put CR/LF( \r\n carriage return and linefeed ).