Hello Guest it is July 19, 2019, 06:53:53 AM

Author Topic: Cutter Comp  (Read 3230 times)

0 Members and 1 Guest are viewing this topic.

Cutter Comp
« on: April 05, 2011, 09:40:18 PM »
Having problems setting up cutter comp. Whenever I add a G41 or G42 I get a cutter gouge error. I was taught to program on a HAAS but it seems like if I run a simple program like below it's the only way it runs BUT I can never put cutter comp in the code because it messes up. Now the below code will run but like I said if I add code to make it run on a HAAS then I get nothing but errors. I usually write code in Discriminator and test code in that and this code works, just doesn't have a G41 or G42. I have read the manual and did a few things I have seen wrote here but nothing seems to work. Can someone please point me in the right direction? Oh, another problem is that I had my X axis going the opposite as the screen was showing so I reversed the setting and now when I manually operate the tables goes the reverse way I tell it to. Everything else seems to be working OK, so far. Backlash is set, surprisingly the was none on the Z axis.



G01 Z-.01
G01 Z-.04
G00 Z.1
G00 X-2.125
G01 Z-.04
G00 Z.1
G00 X-1.0625 Y.1875
G01 Z-.01
G01 X0.
G02 X.1875 Y0. R.1875
G02 X0. Y-.1875 R.1875
G01 X-2.125
G02 X-2.3125 Y0. R.1875
G02 X-2.125 Y.1875 R.1875
G01 X-1.06
G00 Z.1
M00

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Cutter Comp
« Reply #1 on: April 05, 2011, 09:50:25 PM »
What do you want, G41 or G42?

You need a lead in move to use comp. Your code looks incomplete. Where is Y when you start cutting? You need an XY start position before you can cal G41/G42.

Any inside radius needs to be larger than the tool radius. That may be why you're getting the error? Do you have advanced comp turned on?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Cutter Comp
« Reply #2 on: April 05, 2011, 09:51:52 PM »
Quote
Oh, another problem is that I had my X axis going the opposite as the screen was showing so I reversed the setting and now when I manually operate the tables goes the reverse way I tell it to. Everything else seems to be working OK, so far. Backlash is set, surprisingly the was none on the Z axis.

Is it possible the table is moving the right way, but you think it's the wrong way? When you move X+, the tool moves X+, not the table.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Cutter Comp
« Reply #3 on: April 05, 2011, 10:11:50 PM »
G41 is what I want but I'm to the point where I will write the code around the comp. just so I don't have to do all the math. LOL As far the Y position I am placing the tooling right above the X0. Y0. point for now because of the problems I have been having. Below is some code I have ran in a HAAS with no problem, thought I would try it to see if I would have the same problem, yes I had the same problem. I tried using a lead in point before and had problems with that too so I have just been trying different things.
I had the advanced comp turned on and had the error. I think I will just rewrite the way I would as if it was being wrote for a HAAS, maybe I just didn't have something exactly right. Anyways, here's the code I know runs on a HAAS but won't run on Mach. See what you think. Thanks!


%
O00001
(Big D)
(T. Gaskill)
(9-13-09)
(X0=Left of stock Y0=Front of stock Z0=.05" Below top of stock)
(Stock 2.7" x 2.7" x1.5" Depth)
(Material Steel)
G20 G40 G54 G80
T01 M06 (Shell Mill)
G00 G90 X-1.6 Y1.35 S400 M03
G00 G43 Z0. H01 M08
G01 D01 X4.3 F3.
G00 Z.1 M09
M05
G28
G20 G40 G54 G80
T2 H2 M06 (.5")
G00 G90 D2 X-.3 Y-.3  S1500 M03
G00 G43 Z-1.1 H02 M08
G01 X.1 Y0. G41 D02 F10.
G01 Y2.6
G01 X2.6
G01 Y.1
G01 X-.1
G00 Z.1 M09
M05
G28
G20 G40 G54 G80
T3 H3 M06 (.125")
G00 G90 X.725 Y.6  S2500 M03
G00 G43 Z-.03 H03 M08
G01 Y2.1
G01 X1.425
G02 X1.975 Y1.6 R.5
G01 Y1.1
G02 X1.425 Y.6 R.5
G01 X.725
G00 Z.1 M09
M05
G28
G20 G40 G54 G80
M30
%
Re: Cutter Comp
« Reply #4 on: April 05, 2011, 11:07:15 PM »
Decided to rewrite the code and tried a few different things and it seems to work. I guess I should have done that but between school and remodeling just haven't had much time and was getting frustrated. Thanks ger21 for all your input. I have a few small bugs to work out but I think I'm gonna send the code out to the mill and give it a shot. Still kinda confused about the reverse axis but hey, I can work on that later I guess. I have messed with LazyCam a bit, read some of the manual and it works pretty good but need to figure out the cutter comp on that too.