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:

divide by zero


swanny
 Share

Recommended Posts

i have been having this problem when i have been posting with the generic post for a haas. i translated my geometry in "x" .0001 and it fixed my problem. does any one know why this happens or how to fix this permently? here is a copy of both posts. the first one is bad. the next is good.

 

%

O0000 ( XXX )

(DATE - 05-02-10 TIME - 11:42 )

N100 G20

N110 G0 G17 G40 G49 G80 G90

( TOOL - 1 3/4" INSERT DIA. OFF. - 1 LEN. - 1 DIA. - .75 )

N120 T1 M6

N130 G0 G90 G54 X1.2862 Y3.4375 S2500 M3

N140 G43 H1 Z6.

N150 Z5.1

N160 G1 Z5.005 F35.

N170 X1.0987

N180 G3 X.9113 Y3.25 J-.1875

N190 X.9112 I2.3388

N200 X1.0987 Y3.0625 I.1875

N210 G1 X1.2862

N220 Z5.105

N230 G0 Z6. M9

N240 G91 G28 Z0.

N250 G28 Y0.

N260 M30

%

 

 

%

O0000 ( ZZZ )

(DATE - 05-02-10 TIME - 11:45 )

N100 G20

N110 G0 G17 G40 G49 G80 G90

( TOOL - 1 3/4" INSERT DIA. OFF. - 1 LEN. - 1 DIA. - .75 )

N120 T1 M6

N130 G0 G90 G54 X1.2861 Y3.4375 S2500 M3

N140 G43 H1 Z6.

N150 Z5.1

N160 G1 Z5.005 F35.

N170 X1.0986

N180 G3 X.9112 Y3.25 J-.1875

N190 I2.3387

N200 X1.0986 Y3.0625 I.1875

N210 G1 X1.2861

N220 Z5.105

N230 G0 Z6. M9

N240 G91 G28 Z0.

N250 G28 Y0.

N260 M30

 

notice line "N190"

Link to comment
Share on other sites

i get the error out at the machine. this is suppose to be doing a 5.4375 arc and i was leaving .005 on xy. it does the entry exit but it doesnt do the arc. it backplots right but runs different. the divide by zero error comes when i tried to change the program to a ramping contour.

Link to comment
Share on other sites

the location of this arc from my origin is x3.25 y3.25. yhis is where my print shows it at. i had to translate the arc to x3.2499 y3.25 for it to work. my entry exit arc is" .375 line tangent with a .375 arc at 90 degrees. so it sweeps in. like i said though it will do the entry and instead of continuing with the rest of the arc it will immediately exit arc out, rapid up and go to do the entry again. it will do all the depth of cuts all the way down just doing the entry exit.

Link to comment
Share on other sites

Ok I see what your talking about. Both of the programs you posted don't give you an error but the first doesn't cut the circle. Go into your control def. and change it to break arcs into quadrents. Haas has trouble with doing a full arc in one line.

Link to comment
Share on other sites

it doesnt have a problem doing the arc, it has a problem doing the arc in a specific location from my origin. i have four arcs equally spaced from my origin in xy. so i have one in the top left and top right, then i have one in bottom left and bottom right, it will do two of them but not the other two.

Link to comment
Share on other sites

If you look at your code both are trying to do it as a full circle. It should look more like this

 

%

O0000

( TOSS )

(DATE= 05-02-10 TIME= 15:15 )

G20

G0 G17 G40 G49 G80 G90

( 1-3/4 FLAT ENDMILL TOOL - 1 DIA. OFF. - 1 )

T1 M6

G0 G90 G54 X2.1562 Y3.66 S356 M3

G43 H1 Z2. M8

Z.1

G1 Z0. F6.42

G41 D1 X1.7812

G3 X1.4063 Y3.285 I0. J-.375

X3.25 Y1.4413 I1.8437 J0. <---start of circle

X5.0937 Y3.285 I0. J1.8437

X3.25 Y5.1287 I-1.8437 J0.

X1.4063 Y3.285 I0. J-1.8437 <----end of circle

X1.7812 Y2.91 I.3749 J0.

G1 G40 X2.1562

Z.1

G0 Z2.

M9

M5

G91 G28 Z0.

G28 Y0.

M30

%

Link to comment
Share on other sites

yes. you are right about that. now how do i get it to do that without going in and manually changing this? i sometimes am running programs over 48hrs long and wnat to post them all at once. trying to find out when or where its going to mess up isnt that easy. is there another setting that makes it default to that? could it be my post?

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