Cnc errors yesterday- how to skip lines?



I hit this joint 0 and 4 error again twice yesterday. I rehomed it after the first one.When an error occurs, how do you skip lines to restart down in your file?

I had cut the same file 3x with no problems already and on the 4th run it hit this twice. By then I’d been there for 4 hr so packed up and went home.

I’ll post my gcode shortly when I get up but the file is just cutting squares.

1 Like

code below

%
T1 M6
G0 G17 G20 G90 G40 G49 G64 P0.001
G0 Z0.8000
G0 X0.0000 Y0.0000 M3 M8 S18000
G0X1.1733Y1.6966Z0.2000
G1Z-0.2000F30.0
G1X40.4233F200.0
Y3.1966
X1.1733
X1.1733Y1.6966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y3.1966
X1.1733
X1.1733Y1.6966
G0Z0.2000
G0Y3.2466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y4.7466
X1.1733
X1.1733Y3.2466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y4.7466
X1.1733
X1.1733Y3.2466
G0Z0.2000
G0Y4.7966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y6.2966
X1.1733
X1.1733Y4.7966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y6.2966
X1.1733
X1.1733Y4.7966
G0Z0.2000
G0Y6.3466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y7.8466
X1.1733
X1.1733Y6.3466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y7.8466
X1.1733
X1.1733Y6.3466
G0Z0.2000
G0Y7.8966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y9.3966
X1.1733
X1.1733Y7.8966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y9.3966
X1.1733
X1.1733Y7.8966
G0Z0.2000
G0Y9.4466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y10.9466
X1.1733
X1.1733Y9.4466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y10.9466
X1.1733
X1.1733Y9.4466
G0Z0.2000
G0Y10.9966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y12.4966
X1.1733
X1.1733Y10.9966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y12.4966
X1.1733
X1.1733Y10.9966
G0Z0.2000
G0Y12.5466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y14.0466
X1.1733
X1.1733Y12.5466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y14.0466
X1.1733
X1.1733Y12.5466
G0Z0.2000
G0Y14.0966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y15.5966
X1.1733
X1.1733Y14.0966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y15.5966
X1.1733
X1.1733Y14.0966
G0Z0.2000
G0Y15.6466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y17.1466
X1.1733
X1.1733Y15.6466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y17.1466
X1.1733
X1.1733Y15.6466
G0Z0.2000
G0Y17.1966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y18.6966
X1.1733
X1.1733Y17.1966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y18.6966
X1.1733
X1.1733Y17.1966
G0Z0.2000
G0Y18.7466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y20.2466
X1.1733
X1.1733Y18.7466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y20.2466
X1.1733
X1.1733Y18.7466
G0Z0.2000
G0Y20.2966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y21.7966
X1.1733
X1.1733Y20.2966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y21.7966
X1.1733
X1.1733Y20.2966
G0Z0.2000
G0Y21.8466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y23.3466
X1.1733
X1.1733Y21.8466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y23.3466
X1.1733
X1.1733Y21.8466
G0Z0.2000
G0Y23.3966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y24.8966
X1.1733
X1.1733Y23.3966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y24.8966
X1.1733
X1.1733Y23.3966
G0Z0.2000
G0Y24.9466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y26.4466
X1.1733
X1.1733Y24.9466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y26.4466
X1.1733
X1.1733Y24.9466
G0Z0.2000
G0Y26.4966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y27.9966
X1.1733
X1.1733Y26.4966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y27.9966
X1.1733
X1.1733Y26.4966
G0Z0.2000
G0Y28.0466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y29.5466
X1.1733
X1.1733Y28.0466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y29.5466
X1.1733
X1.1733Y28.0466
G0Z0.2000
G0Y29.5966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y31.0966
X1.1733
X1.1733Y29.5966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y31.0966
X1.1733
X1.1733Y29.5966
G0Z0.2000
G0Y31.1466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y32.6466
X1.1733
X1.1733Y31.1466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y32.6466
X1.1733
X1.1733Y31.1466
G0Z0.2000
G0Y32.6966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y34.1966
X1.1733
X1.1733Y32.6966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y34.1966
X1.1733
X1.1733Y32.6966
G0Z0.2000
G0Y34.2467
G1Z-0.2000F30.0
G1X40.4233F200.0
Y35.7467
X1.1733
X1.1733Y34.2467
G1Z-0.4000F30.0
G1X40.4233F200.0
Y35.7467
X1.1733
X1.1733Y34.2467
G0Z0.2000
G0Y35.7966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y37.2966
X1.1733
X1.1733Y35.7966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y37.2966
X1.1733
X1.1733Y35.7966
G0Z0.2000
G0Y37.3466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y38.8466
X1.1733
X1.1733Y37.3466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y38.8466
X1.1733
X1.1733Y37.3466
G0Z0.2000
G0Y38.8966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y40.3966
X1.1733
X1.1733Y38.8966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y40.3966
X1.1733
X1.1733Y38.8966
G0Z0.2000
G0Y40.4466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y41.9466
X1.1733
X1.1733Y40.4466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y41.9466
X1.1733
X1.1733Y40.4466
G0Z0.2000
G0Y41.9967
G1Z-0.2000F30.0
G1X40.4233F200.0
Y43.4967
X1.1733
X1.1733Y41.9967
G1Z-0.4000F30.0
G1X40.4233F200.0
Y43.4967
X1.1733
X1.1733Y41.9967
G0Z0.2000
G0Y43.5466
G1Z-0.2000F30.0
G1X40.4233F200.0
Y45.0466
X1.1733
X1.1733Y43.5466
G1Z-0.4000F30.0
G1X40.4233F200.0
Y45.0466
X1.1733
X1.1733Y43.5466
G0Z0.2000
G0Y45.0966
G1Z-0.2000F30.0
G1X40.4233F200.0
Y46.5966
X1.1733
X1.1733Y45.0966
G1Z-0.4000F30.0
G1X40.4233F200.0
Y46.5966
X1.1733
X1.1733Y45.0966
G0Z0.2000
G0X41.0854Y46.5973
G1Z-0.2000F30.0
G1Y7.3473F200.0
X42.5854
Y46.5973
X41.0854
G1Z-0.4000F30.0
G1Y7.3473F200.0
X42.5854
Y46.5973
X41.0854
G0Z0.2000
G0X42.6354
G1Z-0.2000F30.0
G1Y7.3473F200.0
X44.1354
Y46.5973
X42.6354
G1Z-0.4000F30.0
G1Y7.3473F200.0
X44.1354
Y46.5973
X42.6354
G0Z0.2000
G0X44.1854
G1Z-0.2000F30.0
G1Y7.3473F200.0
X45.6854
Y46.5973
X44.1854
G1Z-0.4000F30.0
G1Y7.3473F200.0
X45.6854
Y46.5973
X44.1854
G0Z0.2000
G0X45.7354
G1Z-0.2000F30.0
G1Y7.3473F200.0
X47.2354
Y46.5973
X45.7354
G1Z-0.4000F30.0
G1Y7.3473F200.0
X47.2354
Y46.5973
X45.7354
G0Z0.2000
G0Z0.8000
G0X0.0000Y0.0000
M2
%

@njinuity Had the same error the day before. Stopped 3 total times at random points during the program. I posted it on another topic but since yours is more relevant I’ll add my screenshots here too.


Uploading: 20220822_101121.jpg…

I updated the tolerance number internally, but I may need to do a further tweak for this NUC box. This is just a flag for keeping up a very exact time schedule and its threshold doesn’t actually have to be set this low.

This CNC’s recovery capabilities are VERY powerful. I emphasize it in my class materials.

You can select any graphical vector in the rendering window and it will highlight it in cyan AND auto-select the line in the G-code window for that vector.

The best place to resume is to look for a dotted cyan line that represents a RAPID (G0 g-code command) that is going into your cut. Unfortunately rapids do not graphically show if they are going into or coming out of a cut, but it’s fairly simple to look at a sequence of parts and see which rapid leads to something that has been cut and done and one leading away to an uncut part. So, find the dotted cyan line connecting it to the part that was already cut, START THE SPINDLE MANUALLY (spindle button) if you have stopped it, and right-click on the g-code for that line and select RUN FROM HERE.

The “Start spindle manually” is in all-caps for a reason. The G-code command for starting the spindle occurs at the top of the file and RUN FROM HERE will not know to repeat that. If you have stopped the spindle or are recovering from the breaker popping or whatever, then it must be restarted first to avoid crashing the bit into the work.

The recovery procedures are REALLY good in LinuxCNC. Commercial machines often don’t have a good way to do this. Makerspace machines running LinuxCNC are da best.

1 Like