GRBL, CNC.JS, gcode error

Got an error 25 on a super long parallel path. Just got another one. If I’m not mistaken, this error complains about a second G gcode word in a block. I’m not positive what defines a block for grbl, but here is the group of code for the second error, with the line that caused the error flagged:
X23.151 Z0.6742
X23.1343 Z0.6702
X23.1182 Z0.664
X23.1038 Z0.6558
X23.0933 Z0.6476
X23.0866 Z0.6413
X23.078 Z0.6314 <–
X23.0719 Z0.6229
X23.0056 Z0.628

I was able to continue through the cnc.js interface (felt good about it, since this is a parallel finishing pass and all instructions should be very short paths). The first time, I aborted to inspect everything and cut out the part of the program I’d already run. What’s left only shows a few G words at the start:
G90
G17G20
(Parallel1)
S20000 M3
Z1.6
G1 X32.5375 Y9.415 Z0.4257 F80

and one at the end:
G0 Z1.6

I don’t think any of this should be causing errors.
Thoughts?

1 Like

Shouldn’t there be a G1 at the beginning of each line?

It’s modal, so it remembers the G1 on the first command until it gets the G0 at the end. There are basically no non-cutting moves on this path except at the beginning and end.
For the record, the first error was at line 264,001, and the second (in the shorter file) was at 138532.

I am just suspect of those lines. Just because that is the most non obvious thing about it. No idea otherwise.

Me either.
I tried uploading the whole program but it’s too big. Literally hundreds of thousands of lines, a few Gs at the beginning for settings, a G1 to get started, and a G0 at the end. Doesn’t seem to be any reason for either of those lines to fail. I had UGS set up for a little while but got rid of it and can’t remember how to get it going again on the Linux. Maybe I’ll grab a copy for my windows machine and test it there through the simulation. See if UGS likes it.