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:

5 axis help


MrFish
 Share

Recommended Posts

Can some one with a switched on 5axis brain take a look at the code below and try and explain to me why I am getting a negative Z axis move with the rotation on line 3407.

Our machine is a DMG DMU 60 Mono Block - this has a tilting head for B axis and rotary table for C axis. The code is a mastercam cicle mill operation and you will notice that it is cutting and repositioning with M128 TCPM on. DMG tell me that this Z axis movement at the machine is correct because of the tilted plane, but both mastercam and Vericut don't simulate any Z axis move and personally I can't see why the Z axis is moving when the B axis is already at B-30 and all the 3407 line of code is doing is rotating the C axis by 180 degrees ?

 

2464 TOOL CALL 11 Z S8066

2465 * - HANITA D013

2466 * - FLAT SPOT STEEP ANGLED HOLES

2467 ;HANITA D013 TOOL - 11 DIA. OFF. - 11 LEN. - 11 DIA. - 3.

2468 L Z-.1 R0 F MAX M91

2469 L X+136 Y-.1 R0 F MAX M91

2470 CYCL DEF 32.0 TOLERANCE

2471 CYCL DEF 32.1 T0.014

2472 CYCL DEF 32.2 HSC-MODE:0

2473 M23 ;UNLOCK B

2474 L B-30 C+270 F MAX

2475 M140 MB MAX

2476 M128

2477 M3

2478 L X-3.342 Y+53.699 B-30 C+270 F MAX M20

2479 L Z+22.669 B-30 C+270 F MAX

2480 L X-3.342 Y+36.449 Z-7.209 B-30 C+270 F MAX

2481 L X-3.342 Y+36.35 Z-7.379 B-30 C+270 RL F200

2482 L X-3.226 Y+36.309 Z-7.355 B-30 C+270

2483 L X-3.207 Y+36.35 Z-7.379 B-30 C+270

2484 L X-3.212 Y+36.382 Z-7.397 B-30 C+270

2485 L X-3.226 Y+36.411 Z-7.414 B-30 C+270

2486 L X-3.25 Y+36.436 Z-7.429 B-30 C+270

2487 L X-3.28 Y+36.454 Z-7.439 B-30 C+270

2488 L X-3.314 Y+36.465 Z-7.445 B-30 C+270

2489 L X-3.351 Y+36.467 Z-7.447 B-30 C+270

2490 L X-3.387 Y+36.46 Z-7.443 B-30 C+270

2491 L X-3.42 Y+36.446 Z-7.434 B-30 C+270

2492 L X-3.446 Y+36.424 Z-7.422 B-30 C+270

2493 L X-3.466 Y+36.397 Z-7.406 B-30 C+270

2494 L X-3.475 Y+36.366 Z-7.388 B-30 C+270

2495 L X-3.475 Y+36.334 Z-7.37 B-30 C+270

2496 L X-3.466 Y+36.304 Z-7.352 B-30 C+270

2497 L X-3.446 Y+36.276 Z-7.337 B-30 C+270

CODE REMOVED FOR FORUM TOPIC

3394 L X-3.42 Y+33.103 Z-12.783 B-30 C+270

3395 L X-3.387 Y+33.089 Z-12.774 B-30 C+270

3396 L X-3.351 Y+33.082 Z-12.771 B-30 C+270

3397 L X-3.314 Y+33.084 Z-12.772 B-30 C+270

3398 L X-3.28 Y+33.095 Z-12.778 B-30 C+270

3399 L X-3.25 Y+33.113 Z-12.789 B-30 C+270

3400 L X-3.226 Y+33.138 Z-12.803 B-30 C+270

3401 L X-3.207 Y+33.199 Z-12.838 B-30 C+270

3402 L X-3.213 Y+33.234 Z-12.858 B-30 C+270

3403 L X-3.246 Y+33.268 Z-12.878 B-30 C+270

3404 L X-3.342 Y+33.199 Z-12.838 B-30 C+270

3405 L X-3.342 Y+36.449 Z-7.209 B-30 C+270 F1000

3406 L X-3.342 Y+53.699 Z+22.669 B-30 C+270 R0 F MAX

3407 L B-30 C+90 F MAX

3408 L X-3.342 Y-53.699 B-30 C+90 F MAX

3409 L Z+22.669 B-30 C+90 F MAX

3410 L X-3.342 Y-36.449 Z-7.209 B-30 C+90 F MAX

3411 L X-3.342 Y-36.35 Z-7.379 B-30 C+90 RL F200

3412 L X-3.226 Y-36.392 Z-7.403 B-30 C+90

3413 L X-3.207 Y-36.35 Z-7.379 B-30 C+90

3414 L X-3.212 Y-36.319 Z-7.361 B-30 C+90

3415 L X-3.226 Y-36.289 Z-7.344 B-30 C+90

3416 L X-3.25 Y-36.265 Z-7.33 B-30 C+90

3417 L X-3.28 Y-36.246 Z-7.319 B-30 C+90

3418 L X-3.314 Y-36.236 Z-7.313 B-30 C+90

3419 L X-3.351 Y-36.234 Z-7.312 B-30 C+90

3420 L X-3.387 Y-36.24 Z-7.316 B-30 C+90

3421 L X-3.42 Y-36.255 Z-7.324 B-30 C+90

3422 L X-3.446 Y-36.276 Z-7.337 B-30 C+90

3423 L X-3.466 Y-36.304 Z-7.352 B-30 C+90

3424 L X-3.475 Y-36.334 Z-7.37 B-30 C+90

Link to comment
Share on other sites

MrFish:

 

As the C axis rotates, does the movement of the tool in the Z axis “swing” with the C axis move, as in, at C0, is the Z axis at it’s “lowest” point, and then at the C90, the Z axis has seemed to “return” to where it was?

 

CrazyMillman:

 

R0 is CComp “off”…

Link to comment
Share on other sites

had the same problem this morning with a 5AXIS CIRCLE MILL routine. was informed by app engineer from machine builder that i cannot use radius cutter comp in 5 axis tool paths. and that took care of the problem. try removing the RL and R0 lines and see if that makes adifference. in my case the tool was not utilising the Z retract moves and was staying down to move to the next hole.

 

Control is Heidenhain, codes are the same

i did not notice are you running Plane Spatial or Cycle 19

Link to comment
Share on other sites

I guess the negative Z move is on your "dist to go" screen right?

 

This screen has a life of its own when running with M128 ( TCPM )

 

Try to change to machine coordinates and you'll see see that the machine doesn't move in Z.

Link to comment
Share on other sites

thanks , for suggestions.

 

Mic - there is a definite negative Z axis move , I know because Vericut didn't simulate it and the machine stuck the cutter into the job !!

 

I will look into the R comp and see if it fixes problem. This would be a shame as it would be nice to be able to use circle mill to size holes instead of having to create a plane for each hole and then use contour paths to get a spatial axis move instead of M128.

Link to comment
Share on other sites

thanks , for suggestions.Mic - there is a definite negative Z axis move , I know because Vericut didn't simulate it and the machine stuck the cutter into the job !!I will look into the R comp and see if it fixes problem. This would be a shame as it would be nice to be able to use circle mill to size holes instead of having to create a plane for each hole and then use contour paths to get a spatial axis move instead of M128.

 

Now I understand that your're trying to do radius comp together with M128. I didn't noticed that at first.

 

I'm not sure if it's possible use normal 2D radius comp in 5X mode.

 

From the Heidenhain manual:

 

3D-ToolComp works only with programs that contain a surface normal

vector (see “Definition of a normalized vector” on page 483). The

following must be considered for NC program generation by means of

the CAM system:

 

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