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:

anyone know why this failed? simple little prog


cherokeechief79
 Share

Recommended Posts

this is a simple handwritten prog for making a 1 inch dia  boss.

we wrote this in a haas controller in vocational school the other nite.

it runs fine until we put a value in the t1 diameter offset.

then it alarms out with end prog without cancel cutter comp??????

 

 

it seems to be cancelling ok doesn't it?

ive always lifted z then went to the exact x and y im currently at with the g40.

 

 

 

T1M6

S1000 M03

G00X-1.Y1.

G43H1Z.1

G01Z-.5F20.

G41D1Y.5

X0

G02X0Y.5J-.5

G01X1.

G00Z2.

G40X1.Y.5

M30

Link to comment
Share on other sites

CC is 2 moves in a Haas. Beginning and end.

 

%
O0000 (MIKE 1)
(DATE      - OCT-02-2015)
(TIME      - 9:24 AM)
(T290 - 1/2 FLAT ENDMILL     - H290 - D290 - D0.5000")
N100 G00 G17 G20 G40 G80 G49 G90
N110 G91 G28 Z0.
N120 T290 M06 (1/2 FLAT ENDMILL)
N130 G00 G90 G54 X-.1 Y1.35 S1069 M03
N140 G43 H290 Z1.
N150 Z.2
N160 G94 G01 Z-.5 F6.42
N170 G41 D290 Y.85
N180 G03 X0. Y.75 I.1 J0.
N190 G02 Y-.75 I0. J-.75
N200 Y.75 I0. J.75
N210 G03 X.1 Y.85 I0. J.1
N220 G01 G40 Y1.35
N230 G00 Z1.
N240 M05
N250 G91 G28 Z0.
N260 G28 Y0.
N270 G90
N280 M30
%

 

.500 cutter, wear comp lead in circle on, circle out lead out to cancle (.500 , .100R)

Link to comment
Share on other sites

  • weve done this before on other projects and its worked fine.

mc will cancel comp after a rapid z move too.

I told them its easy to just cancel the comp by going to the exact position you are at now but with a g40 and it only moves the amount it was comped.

we have also cancelled comp by going g91 x0 y0 to the exact same position we ended up at and it would move just the comped amount.

this is a different has than we normally use though.

Link to comment
Share on other sites

edit

change the g40 line from x1. y.5 to x1. y1.

i don't think the position you are leaving the tool in before the g40 line

allows for any movement to cancel the cutter comp

you would normally comp on at 90 degrees to the first x feed move

and comp off 90 degrees to the last x feed move as it stands any value other than zero in the t1 diameter

offset would force a -90 degree move when you try to comp off

Link to comment
Share on other sites

 

  • weve done this before on other projects and its worked fine.
  • mc will cancel comp after a rapid z move too.
  • I told them its easy to just cancel the comp by going to the exact position you are at now but with a g40 and it only moves the amount it was comped.
  • we have also cancelled comp by going g91 x0 y0 to the exact same position we ended up at and it would move just the comped amount.
  • this is a different has than we normally use though.

 

That might work on some controls but most controls will need a vector like:     G91 G40 Y.0001

 

You are absolutely right about needing to know whats going on at the control.

Link to comment
Share on other sites

CC is 2 moves in a Haas. Beginning and end.

 

N170 G41 D290 Y.85

 

 

 

Actually, your LEAD IN is 2 moves, your cc is one linear move.

 

Aside from that, can you not set parameters in a haas to cancel comp without motion?

 

I'd check the parameters related to cc on that machine.

 

Maybe I missed it but I'm assuming you're using a 1in em because every one is using .5 as cc move. If you're using a .5 em then .5 is more than enough (you'd need 0.251ish) for a 0.5in em).

 

I pretty much always set cc moves at 51% dia of tool.

 

Also, you have to include wear comp in that 51%. So if your operator has a habit of comping 0.030 on wear for sneaking up then you have to go more than 51%, you'd have to allow for .531 or at least one unit of mechanical resolution more than total diameter offset.

 

Regarding skipping the line, I've also seem machines fire off m30 before the line immediately before it completes. I have put g4 dwells of .001 seconds just to have a line between last moves especially if it's an m code to open a door or move a robot.

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...