G Code Error

pukenzz

New Member
Joined
Jun 29, 2015
Messages
35
Below is a sample of some G code (cnc programming) that is automagically generated. It changes with every program.

From time to time there is an error but it is so hard to find. Is there an easy way to find any X value that is greater than 145 and or any Y value that is greater than 62.

This code starts in wordpad .txt format. If needed I can copy past into excel or word to make it easier to search.

On this one the error is the Y of line N2601

Thanks in advance.

%
N1 :01(B11015)
(MICROVELLUM GENERATED ON 1-3-2017 AT 9:11 AM)
(JOB NAME: CHECK-IN UNIT)
N11 G00 G17 G20 G28 G40 G80 G91 Z0 M5
N21 G90
N31 G52 X0 Y0 Z0
N41 G08 P1
(VERTICAL DRILLING SEQUENCE)
(BIT DIA=0.1968)
N51 G28 G91 Z0 M05
N61 G90
N71 T62 M91
N81 M03 S4000
N91 G00 G54 P2 X33.2204 Y49.7302
N101 G0 G43 H42 Z1.0100
N111 Z1.0100
N121 G1 Z0.3225 F100.0000
N131 G1 Z1.0100 F3100.
N141 T64 M91
N151 M03 S4000
N161 G00 G54 P7 X29.6277 Y55.4348
N171 G0 G43 H47 Z1.0100
N181 G1 Z-0.0051 F100.0000
N191 G1 Z1.0100 F3100.
N201 X23.3777 Y55.4348
N211 G1 Z-0.0051 F100.0000
N221 G1 Z1.0100 F3100.
N231 X11.9175 Y55.4348
N241 G1 Z-0.0051 F100.0000
N251 G1 Z1.0100 F3100.
N261 X5.6675 Y55.4348
N271 G1 Z-0.0051 F100.0000
N281 G1 Z1.0100 F3100.
N291 X12.5937 Y46.8317
N301 G1 Z0.2089 F100.0000
N311 G1 Z1.0100 F3100.
N321 X12.5937 Y44.3121
N331 G1 Z0.2089 F100.0000
N341 G1 Z1.0100 F3100.
N351 X7.3337 Y42.9735
N361 G1 Z0.2089 F100.0000
N371 G1 Z1.0100 F3100.
N381 X7.3337 Y38.0128
N391 G1 Z0.2089 F100.0000
N401 G1 Z1.0100 F3100.
N411 X7.3337 Y35.4932
N421 G1 Z0.2089 F100.0000
N431 G1 Z1.0100 F3100.
N441 X2.0737 Y35.4932
N451 G1 Z0.2089 F100.0000
N461 G1 Z1.0100 F3100.
N471 X2.0737 Y38.0128
N481 G1 Z0.2089 F100.0000
N491 G1 Z1.0100 F3100.
N501 X2.0737 Y42.9735
N511 G1 Z0.2089 F100.0000
N521 G1 Z1.0100 F3100.
N531 X12.5937 Y38.0128
N541 G1 Z0.2089 F100.0000
N551 G1 Z1.0100 F3100.
N561 X12.5937 Y35.4932
N571 G1 Z0.2089 F100.0000
N581 G1 Z1.0100 F3100.
N591 X41.0879 Y55.4348
N601 G1 Z-0.0051 F100.0000
N611 G1 Z1.0100 F3100.
N621 X47.3379 Y55.4348
N631 G1 Z-0.0051 F100.0000
N641 G1 Z1.0100 F3100.
N651 X86.9802 Y55.6976
N661 G1 Z0.7450 F100.0000
N671 G1 Z1.0100 F3100.
N681 X86.9802 Y58.2172
N691 G1 Z0.7450 F100.0000
N701 G1 Z1.0100 F3100.
N711 X86.9802 Y44.3590
N721 G1 Z0.7450 F100.0000
N731 G1 Z1.0100 F3100.
N741 X86.9802 Y41.8393
N751 G1 Z0.7450 F100.0000
N761 G1 Z1.0100 F3100.
N771 T6 M91
N781 M03 S4000
N791 G00 G54 P2 X51.7151 Y35.5719
N801 G0 G43 H42 Z1.0100
N811 G1 Z0.3073 F100.0000
N821 G1 Z1.0100 F3100.
N831 X28.7551 Y35.5719
N841 G1 Z0.3073 F100.0000
N851 G1 Z1.0100 F3100.
N861 T62 M91
N871 M03 S4000
N881 G00 G54 P2 X33.2204 Y36.7302
N891 G0 G43 H42 Z1.0100
N901 G1 Z0.3225 F100.0000
N911 G1 Z1.0100 F3100.
N921 X42.7104 Y36.7302
N931 G1 Z0.3225 F100.0000
N941 G1 Z1.0100 F3100.
N951 X42.7104 Y49.7302
N961 G1 Z0.3225 F100.0000
N971 G1 Z1.0100 F3100.
(ROUTE SEQUENCE)
(ROUTER-BIT DIA=0.5)
N981 G28 G91 Z0 M05
N991 G90 T2003 M06
N1001 T102
N1011 M03 S18000
N1021 G0 G17 G55 X5.7400 Y38.7502
N1031 G0 G43 H3 Z1.0100
N1041 G41 D3 G0 X5.7400 Y37.7502
N1051 Z0.8600
N1061 G1 Z0.5100 F450.0000
N1071 G1 X5.7400 Y34.4802 Z0.5100 F900.0000
N1081 G1 X6.0000 Y34.4802
N1091 G1 X6.0000 Y37.7502
N1101 G0 Z1.0100
N1111 G40 X5.6500 Y37.7502
N1121 G41 D3 G0 X11.0000 Y37.7502
N1131 Z0.8600
N1141 G1 Z0.5100 F450.0000
N1151 G1 X11.0000 Y34.4802 Z0.5100 F900.0000
N1161 G1 X11.2600 Y34.4802
N1171 G1 X11.2600 Y37.7502
N1181 G0 Z1.0100
N1191 G40 X10.9100 Y37.7502
N1201 G42 D3 G0 X55.9956 Y50.4702
N1211 Z0.8600
N1221 G1 Z0.5100 F450.0000
N1231 G1 X55.9956 Y34.4802 Z0.5100 F900.0000
N1241 G1 X55.7200 Y34.4802
N1251 G1 X55.7200 Y50.4702
N1261 G0 Z1.0100
N1271 G40 X56.0700 Y50.4702
(ROUTER-BIT DIA=0.5)
N1281 G28 G91 Z0 M05
N1291 G90 T2002 M06
N1301 T102
N1311 M03 S18000
N1321 G0 G17 G55 X47.1150 Y15.7500
N1331 G0 G43 H2 Z1.0100
N1341 G41 D2 G0 X47.1150 Y16.7500
N1351 Z0.8600
N1361 G1 Z0.7600 F450.0000
N1371 G1 X47.1150 Y26.5000 Z-0.0051 F1200.0000
N1381 G1 X24.4375 Y26.5000
N1391 G1 X24.4375 Y6.5000
N1401 G1 X47.1150 Y6.5000
N1411 G1 X47.1150 Y21.6250
N1421 G0 Z1.0100
N1431 G40 X46.7650 Y21.6250
N1441 G41 D2 G0 X100.8552 Y16.7500
N1451 Z0.8600
N1461 G1 Z0.7600 F450.0000
N1471 G1 X100.8552 Y26.5000 Z-0.0051 F1200.0000
N1481 G1 X78.1777 Y26.5000
N1491 G1 X78.1777 Y6.5000
N1501 G1 X100.8552 Y6.5000
N1511 G1 X100.8552 Y21.6250
N1521 G0 Z1.0100
N1531 G40 X100.5052 Y21.6250
N1541 G41 D2 G0 X124.2304 Y6.5000
N1551 Z0.8600
N1561 G1 Z0.7600 F450.0000
N1571 G1 X133.9804 Y6.5000 Z-0.0051 F1200.0000
N1581 G1 X133.9804 Y29.1775
N1591 G1 X113.9804 Y29.1775
N1601 G1 X113.9804 Y6.5000
N1611 G1 X129.1054 Y6.5000
N1621 G0 Z1.0100
N1631 G40 X129.1054 Y6.8500
(NEST SEQUENCE)
N1641 G42 D2 G00 X9.3566 Y59.2034
N1651 Z0.8600
N1661 G2 X8.9175 Y59.1491 I-0.4391 J1.7490 Z0.0402 F450.0000
N1671 G1 X0.0000 Y59.1491 F1200.0000
N1681 G1 X0.0000 Y51.7204 F1200.0000
N1691 G1 X17.5850 Y51.7204 F1200.0000
N1701 G1 X17.5850 Y59.1491 F1200.0000
N1711 G1 X8.6675 Y59.1491 F1200.0000
N1721 G2 X8.2284 Y59.2034 I0.0000 J1.8033
N1731 G0 Z1.0100
N1741 G40 X8.2917 Y59.4556
N1751 G42 D2 G00 X27.0668 Y59.2034
N1761 Z0.8600
N1771 G2 X26.6277 Y59.1491 I-0.4391 J1.7490 Z0.0402 F450.0000
N1781 G1 X17.7102 Y59.1491 F1200.0000
N1791 G1 X17.7102 Y51.7204 F1200.0000
N1801 G1 X35.2952 Y51.7204 F1200.0000
N1811 G1 X35.2952 Y59.1491 F1200.0000
N1821 G1 X26.3777 Y59.1491 F1200.0000
N1831 G2 X25.9386 Y59.2034 I0.0000 J1.8033
N1841 G0 Z1.0100
N1851 G40 X26.0019 Y59.4556
N1861 G42 D2 G00 X28.8041 Y51.6495
N1871 Z0.8600
N1881 G2 X28.3650 Y51.5952 I-0.4391 J1.7489 Z0.0402 F450.0000
N1891 G1 X0.0000 Y51.5952 F1200.0000
N1901 G1 X0.0000 Y33.1252 F1200.0000
N1911 G1 X56.4800 Y33.1252 F1200.0000
N1921 G1 X56.4800 Y51.5952 F1200.0000
N1931 G1 X28.1150 Y51.5952 F1200.0000
N1941 G2 X27.6759 Y51.6495 I0.0000 J1.8032
N1951 G0 Z1.0100
N1961 G40 X27.7392 Y51.9017
N1971 G42 D2 G00 X27.3716 Y33.0543
N1981 Z0.8600
N1991 G2 X26.9325 Y33.0000 I-0.4391 J1.7489 Z0.0402 F450.0000
N2001 G1 X0.0000 Y33.0000 F1200.0000
N2011 G1 X0.0000 Y0.0000 F1200.0000
N2021 G1 X53.6150 Y0.0000 F1200.0000
N2031 G1 X53.6150 Y33.0000 F1200.0000
N2041 G1 X26.6825 Y33.0000 F1200.0000
N2051 G2 X26.2434 Y33.0543 I0.0000 J1.8032
N2061 G0 Z1.0100
N2071 G40 X26.3067 Y33.3065
N2081 G42 D2 G00 X44.7770 Y59.2034
N2091 Z0.8600
N2101 G2 X44.3379 Y59.1491 I-0.4391 J1.7490 Z0.0402 F450.0000
N2111 G1 X35.4204 Y59.1491 F1200.0000
N2121 G1 X35.4204 Y51.7204 F1200.0000
N2131 G1 X53.0054 Y51.7204 F1200.0000
N2141 G1 X53.0054 Y59.1491 F1200.0000
N2151 G1 X44.0879 Y59.1491 F1200.0000
N2161 G2 X43.6488 Y59.2034 I0.0000 J1.8033
N2171 G0 Z1.0100
N2181 G40 X43.7121 Y59.4556
N2191 G42 D2 G00 X72.5411 Y33.0709
N2201 Z0.8600
N2211 G2 X72.9802 Y33.1252 I0.4391 J-1.7489 Z0.0402 F450.0000
N2221 G1 X89.6052 Y33.1252 F1200.0000
N2231 G1 X89.6052 Y59.8452 F1200.0000
N2241 G1 X60.6052 Y59.8452 F1200.0000
N2251 G1 X60.6052 Y57.8452 F1200.0000
N2261 G1 X56.6052 Y57.8452 F1200.0000
N2271 G1 X56.6052 Y33.1252 F1200.0000
N2281 G1 X73.2302 Y33.1252 F1200.0000
N2291 G2 X73.6693 Y33.0709 I0.0000 J-1.8032
N2301 G0 Z1.0100
N2311 G40 X73.6060 Y32.8187
N2321 G42 D2 G00 X81.1118 Y33.0543
N2331 Z0.8600
N2341 G2 X80.6727 Y33.0000 I-0.4391 J1.7489 Z0.0402 F450.0000
N2351 G1 X53.7402 Y33.0000 F1200.0000
N2361 G1 X53.7402 Y0.0000 F1200.0000
N2371 G1 X107.3552 Y0.0000 F1200.0000
N2381 G1 X107.3552 Y33.0000 F1200.0000
N2391 G1 X80.4227 Y33.0000 F1200.0000
N2401 G2 X79.9836 Y33.0543 I0.0000 J1.8032
N2411 G0 Z1.0100
N2421 G40 X80.0469 Y33.3065
N2431 G42 D2 G00 X107.4261 Y27.3716
N2441 Z0.8600
N2451 G2 X107.4804 Y26.9325 I-1.7489 J-0.4391 Z0.0402 F450.0000
N2461 G1 X107.4804 Y0.0000 F1200.0000
N2471 G1 X140.4804 Y0.0000 F1200.0000
N2481 G1 X140.4804 Y53.6150 F1200.0000
N2491 G1 X107.4804 Y53.6150 F1200.0000
N2501 G1 X107.4804 Y26.6825 F1200.0000
N2511 G2 X107.4261 Y26.2434 I-1.8032 J0.0000
N2521 G0 Z1.0100
N2531 G40 X107.1739 Y26.3067
N2541 G42 D2 G00 X107.2647 Y45.0986
N2551 Z0.8600
N2561 G2 X107.2104 Y45.5377 I1.7489 J0.4391 Z0.0402 F450.0000
N2571 G1 X107.2104 Y56.9702 F1200.0000
N2581 G1 X106.9604 Y56.9702 F1200.0000
N2591 G1 X106.9604 Y58.2202 F1200.0000
N2601 G1 X106.9604 Y196724620441721.0000 F1200.0000
N2611 G1 X107.2104 Y45.7877 F1200.0000
N2621 G2 X107.2647 Y46.2268 I1.8032 J0.0000
N2631 G0 Z1.0100
N2641 G40 X107.5169 Y46.1635
N2651 G42 D2 G00 X116.3733 Y53.6859
N2661 Z0.8600
N2671 G2 X116.8125 Y53.7402 I0.4392 J-1.7489 Z0.0402 F450.0000
N2681 G1 X126.5393 Y53.7402 F1200.0000
N2691 G1 X126.5393 Y54.9702 F1200.0000
N2701 G3 X126.7893 Y55.2202 I0.0000 J0.2500
N2711 G1 X126.7893 Y58.2402 F1200.0000
N2721 G1 X126.5393 Y58.2402 F1200.0000
N2731 G1 X126.5393 Y58.7402 F1200.0000
N2741 G1 X107.3356 Y58.7402 F1200.0000
N2751 G1 X107.3356 Y53.7402 F1200.0000
N2761 G1 X117.0625 Y53.7402 F1200.0000
N2771 G2 X117.5016 Y53.6859 I0.0000 J-1.8032
N2781 G0 Z1.0100
N2791 G40 X117.4383 Y53.4337
N2801 G42 D2 G00 X9.3566 Y59.2034
N2811 Z0.8600
N2821 G2 X8.9175 Y59.1491 I-0.4391 J1.7490 Z-0.0051 F450.0000
N2831 G1 X0.0000 Y59.1491 F1200.0000
N2841 G1 X0.0000 Y51.7204 F1200.0000
N2851 G1 X17.5850 Y51.7204 F1200.0000
N2861 G1 X17.5850 Y59.1491 F1200.0000
N2871 G1 X8.6675 Y59.1491 F1200.0000
N2881 G2 X8.2284 Y59.2034 I0.0000 J1.8033
N2891 G0 Z1.0100
N2901 G40 X8.2917 Y59.4556
N2911 G42 D2 G00 X27.0668 Y59.2034
N2921 Z0.8600
N2931 G2 X26.6277 Y59.1491 I-0.4391 J1.7490 Z-0.0051 F450.0000
N2941 G1 X17.7102 Y59.1491 F1200.0000
N2951 G1 X17.7102 Y51.7204 F1200.0000
N2961 G1 X35.2952 Y51.7204 F1200.0000
N2971 G1 X35.2952 Y59.1491 F1200.0000
N2981 G1 X26.3777 Y59.1491 F1200.0000
N2991 G2 X25.9386 Y59.2034 I0.0000 J1.8033
N3001 G0 Z1.0100
N3011 G40 X26.0019 Y59.4556
N3021 G42 D2 G00 X28.8041 Y51.6495
N3031 Z0.8600
N3041 G2 X28.3650 Y51.5952 I-0.4391 J1.7489 Z-0.0051 F450.0000
N3051 G1 X0.0000 Y51.5952 F1200.0000
N3061 G1 X0.0000 Y33.1252 F1200.0000
N3071 G1 X56.4800 Y33.1252 F1200.0000
N3081 G1 X56.4800 Y51.5952 F1200.0000
N3091 G1 X28.1150 Y51.5952 F1200.0000
N3101 G2 X27.6759 Y51.6495 I0.0000 J1.8032
N3111 G0 Z1.0100
N3121 G40 X27.7392 Y51.9017
N3131 G42 D2 G00 X27.3716 Y33.0543
N3141 Z0.8600
N3151 G2 X26.9325 Y33.0000 I-0.4391 J1.7489 Z-0.0051 F450.0000
N3161 G1 X0.0000 Y33.0000 F1200.0000
N3171 G1 X0.0000 Y0.0000 F1200.0000
N3181 G1 X53.6150 Y0.0000 F1200.0000
N3191 G1 X53.6150 Y33.0000 F1200.0000
N3201 G1 X26.6825 Y33.0000 F1200.0000
N3211 G2 X26.2434 Y33.0543 I0.0000 J1.8032
N3221 G0 Z1.0100
N3231 G40 X26.3067 Y33.3065
N3241 G42 D2 G00 X44.7770 Y59.2034
N3251 Z0.8600
N3261 G2 X44.3379 Y59.1491 I-0.4391 J1.7490 Z-0.0051 F450.0000
N3271 G1 X35.4204 Y59.1491 F1200.0000
N3281 G1 X35.4204 Y51.7204 F1200.0000
N3291 G1 X53.0054 Y51.7204 F1200.0000
N3301 G1 X53.0054 Y59.1491 F1200.0000
N3311 G1 X44.0879 Y59.1491 F1200.0000
N3321 G2 X43.6488 Y59.2034 I0.0000 J1.8033
N3331 G0 Z1.0100
N3341 G40 X43.7121 Y59.4556
N3351 G42 D2 G00 X72.5411 Y33.0709
N3361 Z0.8600
N3371 G2 X72.9802 Y33.1252 I0.4391 J-1.7489 Z-0.0051 F450.0000
N3381 G1 X89.6052 Y33.1252 F1200.0000
N3391 G1 X89.6052 Y59.8452 F1200.0000
N3401 G1 X60.6052 Y59.8452 F1200.0000
N3411 G1 X60.6052 Y57.8452 F1200.0000
N3421 G1 X56.6052 Y57.8452 F1200.0000
N3431 G1 X56.6052 Y33.1252 F1200.0000
N3441 G1 X73.2302 Y33.1252 F1200.0000
N3451 G2 X73.6693 Y33.0709 I0.0000 J-1.8032
N3461 G0 Z1.0100
N3471 G40 X73.6060 Y32.8187
N3481 G42 D2 G00 X81.1118 Y33.0543
N3491 Z0.8600
N3501 G2 X80.6727 Y33.0000 I-0.4391 J1.7489 Z-0.0051 F450.0000
N3511 G1 X53.7402 Y33.0000 F1200.0000
N3521 G1 X53.7402 Y0.0000 F1200.0000
N3531 G1 X107.3552 Y0.0000 F1200.0000
N3541 G1 X107.3552 Y33.0000 F1200.0000
N3551 G1 X80.4227 Y33.0000 F1200.0000
N3561 G2 X79.9836 Y33.0543 I0.0000 J1.8032
N3571 G0 Z1.0100
N3581 G40 X80.0469 Y33.3065
N3591 G42 D2 G00 X107.4261 Y27.3716
N3601 Z0.8600
N3611 G2 X107.4804 Y26.9325 I-1.7489 J-0.4391 Z-0.0051 F450.0000
N3621 G1 X107.4804 Y0.0000 F1200.0000
N3631 G1 X140.4804 Y0.0000 F1200.0000
N3641 G1 X140.4804 Y53.6150 F1200.0000
N3651 G1 X107.4804 Y53.6150 F1200.0000
N3661 G1 X107.4804 Y26.6825 F1200.0000
N3671 G2 X107.4261 Y26.2434 I-1.8032 J0.0000
N3681 G0 Z1.0100
N3691 G40 X107.1739 Y26.3067
N3701 G42 D2 G00 X107.2647 Y45.0986
N3711 Z0.8600
N3721 G2 X107.2104 Y45.5377 I1.7489 J0.4391 Z-0.0051 F450.0000
N3731 G1 X107.2104 Y56.9702 F1200.0000
N3741 G1 X106.9604 Y56.9702 F1200.0000
N3751 G1 X106.9604 Y58.2202 F1200.0000
N3761 G1 X106.9604 Y196724620441721.0000 F1200.0000
N3771 G1 X107.2104 Y45.7877 F1200.0000
N3781 G2 X107.2647 Y46.2268 I1.8032 J0.0000
N3791 G0 Z1.0100
N3801 G40 X107.5169 Y46.1635
N3811 G42 D2 G00 X116.3733 Y53.6859
N3821 Z0.8600
N3831 G2 X116.8125 Y53.7402 I0.4392 J-1.7489 Z-0.0051 F450.0000
N3841 G1 X126.5393 Y53.7402 F1200.0000
N3851 G1 X126.5393 Y54.9702 F1200.0000
N3861 G3 X126.7893 Y55.2202 I0.0000 J0.2500
N3871 G1 X126.7893 Y58.2402 F1200.0000
N3881 G1 X126.5393 Y58.2402 F1200.0000
N3891 G1 X126.5393 Y58.7402 F1200.0000
N3901 G1 X107.3356 Y58.7402 F1200.0000
N3911 G1 X107.3356 Y53.7402 F1200.0000
N3921 G1 X117.0625 Y53.7402 F1200.0000
N3931 G2 X117.5016 Y53.6859 I0.0000 J-1.8032
N3941 G0 Z1.0100
N3951 G40 X117.4383 Y53.4337
N3961 G28 G91 Z0 M5
N3971 G28 G91 X0 M09
N3981 G90
N3991 G52 X0 Y0 Z0
N4001 G08 P0
N4011 M00
N4021 M30
%
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,223,803
Messages
6,174,689
Members
452,577
Latest member
Filipzgela

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top