Shapeoko Pro failed to read G codes with Mastercam X9 software

greetings friends

I have been trying to run a small MasterCam X9 program in Carbide Motion, but it throws me some errors, I have been able to correct them but in the end I delete part of the geometry that I have designed.

Do you know any way to fix this, or any other free CAM software to generate 3D designs?

I will appreciate your help, thank you


@ilugo628 Can you edit post processor files with a text editor? If so, can you upload the Fanuc one here?

Have you looked on the masterCam forum to see if someone has a Grbl post processor?

See:

Of course and none work for me

I will investigate about

thanks you William, I’ll see that

That’s why you’ll need to edit one (if you can’t find one someone else already did). The usual recommendation would be to start with the Fanuc one and remove gcode Grbl doesn’t like.

The thing is that sometimes GRBL wants you to remove code that belongs to the CAD. I’ve never tried GRBL in Mastecam, I’ve always used it by sending the codes directly to the machine, plus everything from Master is super expensive.

I have downloaded Fusion 360 personal and I am going to try

That shouldn’t be the case. Your arc endpoint error is usually an issue with precision when using inches. The easiest fix is to just post process in mm. There are things like the ‘%’ that Motion might not like. The G80 and G40 and G43 aren’t Grbl accepted, but all G0, G1, G2, G3 motion commands are ok.
If you can get a post processor uploaded here, I’ll take a look. I don’t use masterCam, but they’re usually not too hard to modify.

I’ll try to edit it and whatever, I’ll let you know how it went

Grbl doesn’t remove code — it acts on the codes which it understands and one shouldn’t be sending it codes which it doesn’t.

I understand that.

it doesn’t recognize A0s either. I0. J0. I have to take it to mm because it gives me an error with the Z.5

Send the Gcode here

Check Code:

%
O0000(T1)
(DATE=DD-MM-YY - 03-12-22 TIME=HH:MM - 15:15)
(MCX FILE - T)
(NC FILE - E:\VIDEO-MASTERCAM\T1.NC)
(MATERIAL - ALUMINUM INCH - 2024)
( T2 | 1/8 FLAT ENDMILL | H282 )
( T1 | 1/4 FLAT ENDMILL | H285 | XY STOCK TO LEAVE - .05 | Z STOCK TO LEAVE - .05 )
N100 G20
N110 G0 G17 G40 G49 G80 G90
N120 T2 M6
N130 G0 G90 G54 X-1.8116 Y-.7744 A0. S1800 M3
N140 G43 H282 Z.5
N150 G3 X-1.7241 Y-.8619 I.0875 J0. F6.
N160 X-1.6366 Y-.7744 I0. J.0875
N170 X-1.7241 Y-.6869 I-.0875 J0.
N180 X-1.8116 Y-.7744 I0. J-.0875
N190 G1 Z.7 F6.16
N200 G0 X.5553 Y1.4842 Z.5
N210 G2 X.4413 Y1.4105 I-.114 J.0513 F6.
N220 G1 X.1413
N230 G2 X.1038 Y1.448 I0. J.0375
N240 X.1413 Y1.4855 I.0375 J0.
N250 G1 X.7413
N260 G2 X.7788 Y1.448 I0. J-.0375
N270 X.7413 Y1.4105 I-.0375 J0.
N280 G1 X.4413
N290 G2 X.3273 Y1.4842 I0. J.125
N300 G1 Z.7 F6.16
N310 M5
N320 G91 G0 G28 Z0.
N330 A0.
N340 M01
N350 T1 M6
N360 G0 G90 G54 X-.5495 Y.3466 A0. S1800 M3
N370 G43 H285 Z.25
N380 G3 X-.5651 Y.3622 I-.0156 J0. F6.
N390 X-.5807 Y.3466 I0. J-.0156
N400 X-.5339 Y.2998 I.0468 J0.
N410 X-.487 Y.3466 I0. J.0468
N420 X-.552 Y.4116 I-.065 J0.
N430 X-.617 Y.3466 I0. J-.065
N440 X-.552 Y.2816 I.065 J0.
N450 X-.487 Y.3466 I0. J.065
N460 X-.5182 Y.3778 I-.0312 J0.
N470 X-.5495 Y.3466 I0. J-.0312
N480 X-.4557 Y.2528 I.0938 J0.
N490 X-.362 Y.3466 I0. J.0938
N500 X-.552 Y.5366 I-.19 J0.
N510 X-.742 Y.3466 I0. J-.19
N520 X-.552 Y.1566 I.19 J0.
N530 X-.362 Y.3466 I0. J.19
N540 X-.3932 Y.3778 I-.0312 J0.
N550 X-.4245 Y.3466 I0. J-.0312
N560 X-.3307 Y.2528 I.0938 J0.
N570 X-.237 Y.3466 I0. J.0938
N580 X-.552 Y.6616 I-.315 J0.
N590 X-.867 Y.3466 I0. J-.315
N600 X-.552 Y.0316 I.315 J0.
N610 X-.237 Y.3466 I0. J.315
N620 X-.2682 Y.3778 I-.0312 J0.
N630 X-.2995 Y.3466 I0. J-.0312
N640 X-.2057 Y.2528 I.0938 J0.
N650 X-.112 Y.3466 I0. J.0938
N660 X-.552 Y.7866 I-.44 J0.
N670 X-.992 Y.3466 I0. J-.44
N680 X-.552 Y-.0934 I.44 J0.
N690 X-.112 Y.3466 I0. J.44
N700 X-.1432 Y.3778 I-.0312 J0.
N710 X-.1745 Y.3466 I0. J-.0312
N720 X-.0807 Y.2528 I.0938 J0.
N730 X.013 Y.3466 I0. J.0938
N740 X-.552 Y.9116 I-.565 J0.
N750 X-1.117 Y.3466 I0. J-.565
N760 X-.552 Y-.2184 I.565 J0.
N770 X.013 Y.3466 I0. J.565
N780 X-.0182 Y.3778 I-.0312 J0.
N790 X-.0495 Y.3466 I0. J-.0312
N800 X.0443 Y.2528 I.0938 J0.
N810 X.138 Y.3466 I0. J.0938
N820 X-.552 Y1.0366 I-.69 J0.
N830 X-1.242 Y.3466 I0. J-.69
N840 X-.552 Y-.3434 I.69 J0.
N850 X.138 Y.3466 I0. J.69
N860 X.1068 Y.3778 I-.0312 J0.
N870 X.0755 Y.3466 I0. J-.0312
N880 X.1693 Y.2528 I.0938 J0.
N890 X.263 Y.3466 I0. J.0938
N900 X-.552 Y1.1616 I-.815 J0.
N910 X-1.367 Y.3466 I0. J-.815
N920 X-.552 Y-.4684 I.815 J0.
N930 X.263 Y.3466 I0. J.815
N940 G1 Z.45 F6.42
N950 G0 Z.5
N960 X-1.127 Y.5966
N970 Z.25
N980 G3 X-1.377 Y.3466 I0. J-.25 F6.
N990 X-.552 Y-.4784 I.825 J0.
N1000 X.273 Y.3466 I0. J.825
N1010 X-.552 Y1.1716 I-.825 J0.
N1020 X-1.377 Y.3466 I0. J-.825
N1030 X-1.127 Y.0966 I.25 J0.
N1040 G1 X-.877
N1050 Z.45 F6.42
N1060 S2000 M3
N1070 G0 X-2.2715 Y2.317 Z.5
N1080 G1 X-2.0948 Y2.1402 F6.
N1090 G2 X-2.0215 Y1.9634 I-.1767 J-.1768
N1100 X-2.0948 Y1.7867 I-.25 J0.
N1110 G3 X-2.2046 Y1.5215 I.2652 J-.2652
N1120 G1 Y-1.0783
N1130 G3 X-2.0796 Y-1.2033 I.125 J0.
N1140 G1 X.7256
N1150 G3 X1.1006 Y-.8283 I0. J.375
N1160 G1 Y1.7715
N1170 G3 X.9756 Y1.8965 I-.125 J0.
N1180 G1 X-1.8296
N1190 G3 X-2.0948 Y1.7867 I0. J-.375
N1200 G2 X-2.2715 Y1.7135 I-.1767 J.1767
N1210 X-2.4483 Y1.7867 I0. J.2499
N1220 G1 X-2.6251 Y1.9634
N1230 Z.7 F6.42
N1240 M5
N1250 G91 G0 G28 Z0.
N1260 G28 X0. Y0. A0.
N1270 M30
%

These are the errors that it throws at me, many of them I know are due to some G that does not read

What post-processor are you using?

Why are you using one which outputs N#### commands (which are not supported by Grbl or Carbide Motion)?

You need to use a post-processor which outputs code which is supported by Grbl/Carbide Motion:

Nope…A isn’t supported and neither is O. I and J are ok though.

The post processor is what tells the program what to include in your gcode. That’s what you need to modify or find a version (maybe in the masterCam forum as Will and I suggested above). If you can upload the Fanuc post processor (not the gcode) here, I can take a look.

2 Likes

Ok, Thank you guys. Appreciate your help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.