Hello Guest it is March 28, 2024, 01:52:59 PM

Author Topic: G-Code Help - Spindle Cut Through Table  (Read 6210 times)

0 Members and 1 Guest are viewing this topic.

Offline BarryB

*
  •  267 267
    • View Profile
G-Code Help - Spindle Cut Through Table
« on: March 30, 2013, 09:15:38 PM »
Yo folks, I'm cutting my first piece of delron (I think that's the name) and really didn't want to make this kinda mistake since that stuff is $$$.  Anyway, I set my origin point at the top corner of my stock.  Z is down in my mill.  I then set the program to run, and it raised up, moved to where the first cut was supposed to be, then went down and cut right through the stock, sacrificial layer, and the table before stopping itself.  Before asking about limit switch, I do have them, but it's set lower due to my spindle can turn twist sideways too.

Anyway, can you see a spot in this G-Code that would make it do that?  I don't see it.  I'm wondering if it's a one time glitch.  I've had the mill with Mach for two years and haven't seen this kind of error.

The units I'm using are in mm, and I gave it a maximum depth of -11 mm.  The stock part is 12.5 mm  The Gcode below is more than the part got to.  It made an initial plunge, but that was it.

%
N1 G40 G49 G80 G98
;Horizontal Roughing
N2 G20 G90
N3 S10000 M03
N4 G00 Z1.8996
N5 X7.4286 Y7.4703
N6 G01 Z-0.1125 F31.496
N7 Z-0.1375 F62.992
N8 X7.2548 Y7.6417 Z-0.1805
N9 X7.276 Y7.675 Z-0.1875
N10 X7.6759 Y7.2264
N11 X7.2548 Y7.6417
N12 X7.276 Y7.675
N13 X7.346 Y7.7374
N14 X7.2582 Y7.8359
N15 X7.2327 Y7.7815
N16 X7.1351 Y7.6283
N17 X7.6618 Y7.1071
N18 X7.8199 Y7.2058
N19 X7.346 Y7.7374
N20 X7.416 Y7.7998
N21 X7.981 Y7.1659
N22 X7.892 Y7.1403
N23 X7.6485 Y6.9883
N24 X7.0153 Y7.6149
N25 X7.1537 Y7.8319
N26 X7.185 Y7.9018
N27 X7.1987 Y7.976
N28 X7.1937 Y8.0492
N29 X7.416 Y7.7998
N30 X7.486 Y7.8622
N31 X7.1625 Y8.225
N32 X2.1737 Y8.2233
N33 X2.1254 Y8.1802
N34 X2.1996 Y8.202
N35 X6.9246 Y8.2006
N36 X6.9746 Y8.1867
N37 X7.0496 Y8.1348
N38 X7.0821 Y8.0888
N39 X7.1006 Y8.0388
N40 X7.1058 Y7.9888
N41 X7.0989 Y7.9388
N42 X7.0746 Y7.8823
N43 X6.8956 Y7.6015
N44 X7.6357 Y6.8691
N45 X7.9246 Y7.0524
N46 X7.9746 Y7.071
N47 X8.0246 Y7.0763
N48 X8.0746 Y7.0695
N49 X8.1246 Y7.0492
N50 X8.1746 Y7.0098
N51 X8.2075 Y6.9638
N52 X8.2254 Y6.9168
N53 Y7.0327
N54 X7.486 Y7.8622
N55 Z-0.1625 F59.055
N56 G00 Z1.8996
N57 X7.4786 Y1.5807
N58 G01 Z-0.1125 F31.496
N59 Z-0.1375 F62.992
N60 X7.2669 Y1.392 Z-0.1875
N61 X7.2557 Y1.4099
N62 X7.6716 Y1.8302
N63 X7.7223 Y1.798
N64 X7.2669 Y1.392
N65 X7.1875 Y1.3422
N66 X7.2464 Y1.2481
N67 X7.8856 Y1.8179
N68 X7.8242 Y1.8444
N69 X7.658 Y1.9498
N70 X7.1368 Y1.423
N71 X7.1875 Y1.3422
N72 X7.108 Y1.2923
N73 X7.0179 Y1.4361
N74 X7.6445 Y2.0694
N75 X7.8744 Y1.9236
N76 X7.942 Y1.8963
N77 X8.0373 Y1.8859
N78 X8.1232 Y1.9042
N79 X7.1984 Y1.0797
N80 X7.1926 Y1.1252
N81 X7.1672 Y1.1981
N82 X7.108 Y1.2923
N83 Z-0.1625 F59.055
N84 G00 Z1.8996
N85 X1.6519 Y1.4843
N86 G01 Z-0.1125 F31.496
N87 Z-0.1375 F62.992
N88 X1.4495 Y1.6828 Z-0.1875
N89 X1.7243 Y1.3751
N90 X1.7392 Y1.3986
N91 X1.4495 Y1.6828
N92 X1.3796 Y1.6204
N93 X1.2754 Y1.7371
N94 X1.302 Y1.7465
N95 X1.4363 Y1.8272
N96 X1.859 Y1.4124
N97 X1.7969 Y1.3147
N98 X1.7499 Y1.2056
N99 X1.3796 Y1.6204
N100 X1.3097 Y1.558

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G-Code Help - Spindle Cut Through Table
« Reply #1 on: March 30, 2013, 09:33:12 PM »
First thing the Gcode it SET to use inches (G20)

(;-) TP

Offline BarryB

*
  •  267 267
    • View Profile
Re: G-Code Help - Spindle Cut Through Table
« Reply #2 on: March 30, 2013, 09:40:26 PM »
Hmm, that is odd.  I wonder if the post machine reset itself.  I just milled a part in maple this morning with no issues.  I'll check this at home, thanks.  If you guys see any other gotchas in this code is like to know!

Offline BarryB

*
  •  267 267
    • View Profile
Re: G-Code Help - Spindle Cut Through Table
« Reply #3 on: March 30, 2013, 10:12:13 PM »
Sure enough, the Post was set to Alibri, instead of Mach 5 Axis MM.  I'm not sure why this reset itself.  This is my 2nd project using RhinoCAM 2012.  Before today, I was using RhinoCAM 2.0.