Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

g-code mystery....any ideas?


bellyup
 Share

Recommended Posts

here is an abbreviated version of the file run on a makino vmc/fanuc. please scroll to the bottom to see the problem. i don't think the problem is in the code, but more likely something else. machine error, etc.(???) i didn't program it, but watched it run, and the control showed the same code you see here, but did what i have edited in.

is this breadwinner getting senile? hope you can help.

 

gone for the weekend now. thanks in advance.

 

quote:

%

O1000

(10364-101-10)

(21-03-06 - 07:41)

( 6 MM FLAT ENDMILL TOOL - 20 DIA. OFF. - 21 LEN. - 1 DIA. - .2364)

(INSIDE POCKET(15-17))

G20

G0G17G40G49G80G90

T20

G0G90G54X-2.8882Y2.8882S15000M3

G43H1Z.1M7

G5 P10000

Z-1.089

G1G41D21Z-1.191F5.

Y3.1118F50.

X-3.1118

Y2.8882

X-2.8882

Z-1.091F150.

G0Z.1

X-2.7482Y2.7482

Z-1.089

G1Z-1.191F5.

Y3.2518F50.

X-3.2518

Y2.7482

X-2.7482

Z-1.091F150.

G0Z.1

X-2.6082Y2.6082

Z-1.089

G1Z-1.191F5.

Y3.3918F50.

X-3.3918

Y2.6082

X-2.6082

Z-1.091F150.

G0Z.1

X-2.4682Y2.4682

Z-1.089

G1Z-1.191F5.

Y3.5318F50.

X-3.5318

Y2.4682

X-2.4682

Z-1.091F150.

G0Z.1

X-2.8882Y2.8882

Z-1.091

G1Z-1.193F5.

Y3.1118F50.

X-3.1118

Y2.8882

X-2.8882

Z-1.093F150.

G0Z.1

X-2.7482Y2.7482

Z-1.091

G1Z-1.193F5.

Y3.2518F50.

X-3.2518

Y2.7482

X-2.7482

Z-1.093F150.

G0Z.1

X-2.6082Y2.6082

Z-1.091

G1Z-1.193F5.

Y3.3918F50.

X-3.3918

Y2.6082

X-2.6082

Z-1.093F150.

G0Z.1

X-2.4682Y2.4682

Z-1.091

G1Z-1.193F5.

Y3.5318F50.

X-3.5318

Y2.4682

X-2.4682

Z-1.093F150.

G0Z.1

X-2.8882Y2.8882

Z-1.093

G1Z-1.195F5.

Y3.1118F50.

X-3.1118

Y2.8882

X-2.8882

Z-1.095F150.

G0Z.1

X-2.7482Y2.7482

Z-1.093

G1Z-1.195F5.

Y3.2518F50.

X-3.2518

Y2.7482

X-2.7482

Z-1.095F150.

G0Z.1

X-2.6082Y2.6082

Z-1.093

G1Z-1.195F5.

Y3.3918F50.

X-3.3918

Y2.6082

X-2.6082

Z-1.095F150.

G0Z.1

X-2.4682Y2.4682

Z-1.093

G1Z-1.195F5.

Y3.5318F50.

X-3.5318

Y2.4682

X-2.4682

Z-1.095F150.

G0Z.1 (apparently a good move)

X-.8882Y2.8882 (made an x positive move, no y move.)

Z-1.089 (made a good move)

G1Z-1.191F5. (made a good move)

Y3.1118F50. (made what appears to be an x pos. move)

X-1.1118

Y2.8882

X-.8882

Z-1.091F150.

G0Z.1


Link to comment
Share on other sites
Guest SAIPEM

It's not a smart idea to turn on cutter comp during a Z only move.

 

You are also not turning it off before rapiding to the next cutting position. This is a major no-no.

 

Change the toolpath to include perpendicular lead-ins and lead-outs and turn comp on and off during these moves.

 

Fanuc is very particular about G41/G42.

Link to comment
Share on other sites

now i'm trying to find out how this happened, and cannot get MC9 to output any code that does the same thing. i asked the programmer how he did it, and he can't seem to remember. (he's changed the mc9 file since then, so it's not the same.) it was a 2d contour with multi passes and depth cuts.

 

are there any circumstances where mc9 would output this type of code? headscratch.gif

Link to comment
Share on other sites

quote:

My guess is that your programmer entered G41 by hand.


i had thought of that, but it doesen't seem likely, simply because he reposted the program a few times after the problem first occurred and would have had to edit the same thing right back into the program each time.

Link to comment
Share on other sites

d21 is the register for t20.

 

fanuc is 'professional A'.

 

whatever was happening has been resolved, and the part was successfully machined, using another program. but i'm still trying to determine what caused the bad code in the first place.

 

what i was told was, it was originally a 2d contour toolpath cutting the outside walls of a cluster of pockets (transform copied), with lead ins and outs. worked fine. copy/pasted the toolpath and made adjustments so that it then removed the center area of the pockets without the lead ins and outs. the results of this amended toolpath are the first part of this thread.

 

i realize the most logical answer is a manual edit, but what sense would it make for someone to do that on this program? since it isn't machining the outside walls(the first program did that), if you didn't want cc on, you would just turn it off in the parameters, not go to the trouble of a manual edit.

Link to comment
Share on other sites

thanks peter,

it does look like that was on. now if i can only figure out how the comp was being generated on a Z move, i think that will be very close. i've been changing parameters and rechecking the code and it keeps coming in on the first lateral move no matter what i do.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...