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:

Transform rotate help


Hacsta
 Share

Recommended Posts

i posted a file to the ftp in x4 files : slotrotary8_17_9.mcx

 

I'm having trouble getting the slots to come out right . I want to rotate from the origin.I'm thinking that their should be a different y position for each slot because its not rotaing from the center of the arc. I know you guys can point me in the right direction!!!

Link to comment
Share on other sites

I tried that. if the rotary is rotating from the origin and not the center of the arc which is 10.875 . wouldn't their be a different y position for each slot. cuz if i was rotating from the center of the arc it would be just a 3 degree index and the y wouldn't move.

Link to comment
Share on other sites

smit i looked at the file and the code looks the same as what i have the y stays the same for each slot and the angle indexes. this would be all good if i was rotating from the the center of the arc at 10.875 but i'm rotating from the origin. so i'm thinking that their should be a different y and angle for each slot .

Link to comment
Share on other sites

I think you will have to use a multiaxis toolpath to get the result you want. Curve 5-axis and set it to 4 axis output. I think you can use 3-d curves and select the edges of the slots for the geometry and use the vertical lines from top to bottom of the slots for axis contol. I don't think you can use transform rotate to get the output you want. I tried it on your file but I didn't select all of the geometry and it seemed to work. The curve 5-axis is a little different in X4 so you may have to play with it a little. I hope this helps.

Link to comment
Share on other sites

Sorry did not look at what others did but I put a file of the FTP with a correct MD/CD since yours was no good and also the Generic HAAS post. I got no problem doing what you were trying I did see some errors in your set up and I am posting up screen shots to help others as well as you.

 

So 1st thing you needed to do was set a work offset number in your operation:

 

SetWorkoffsetnumber.png

 

Then you had the information for the axis combination set-up correctly:

 

AxisCombinations.png

 

Then you need to set up your transform correctly and here you had coordinate which is not correct. You also have assign new and if you set the workoffset in the 1st operation and then use maintain then you avoid having to do that:

 

Rotate1stPage.png

 

The on the rotate page you did not put an angle in which to rotate you had zero for the rotate angle and Mastercam did what you told it thus the no angle shift and the Y axis should not change in your NC code only the Angle should change:

 

AngleSpacingCallout.png

 

Here is the link to download the .z2g I put on the ftp:

 

Download Link:

 

Here is a snippet of the NC program with these changes.

 

code:

%

O0( 1414-2011-059 )

( DATE=DD-MM-YY - 19-08-09 TIME=HH:MM - 08:17 )

( MCX FILE - C:DOCUME~1RONLOCALS~1TEMPSLOTROTARY8_17_09.MCX )

( NC FILE - C:MCAMX4MILLNC1414-2011-059.NC )

( MATERIAL - )

( T14 | .1875 FL | H14 | D14 | WEAR COMP | TOOL DIA. - .187 )

N100 G20

N110 G0 G17 G40 G49 G80 G90

N120 T14 M6

N130 G0 G90 G54 X-.8418 Y.0045 A0. S2800 M3

N140 G43 H14 Z4.

N150 M8

N160 Z1.475

N170 G1 Z1.0625 F10.

N180 G41 D14 X-.8644 Y.0271 F20.

N190 G3 X-.875 Y.0315 I-.0106 J-.0106

N200 G1 X-1.4938

N210 X-1.5052 Y.03

N220 X-1.5136 Y.0266

N230 X-1.5218 Y.0208

N240 X-1.5271 Y.0146

N250 X-1.5294 Y.0091

N260 X-1.5307 Y.0012

N270 X-1.5299 Y-.0071

N280 X-1.5273 Y-.0143

N290 X-1.5231 Y-.0196

N300 X-1.5157 Y-.0254

N310 X-1.5069 Y-.0295

N320 X-1.4952 Y-.0315

N330 X-.2546

N340 X-.244 Y-.0305

N350 X-.2381 Y-.0287

N360 X-.2328 Y-.0258

N370 X-.228 Y-.0219

N380 X-.2242 Y-.0173

N390 X-.2213 Y-.0119

N400 X-.2195 Y-.0061

N410 X-.219 Y0.

N420 X-.2196 Y.0061

N430 X-.2213 Y.0118

N440 X-.2242 Y.0172

N450 X-.228 Y.0219

N460 X-.2327 Y.0258

N470 X-.2381 Y.0287

N480 X-.2439 Y.0304

N490 X-.2546 Y.0315

N500 X-.875

N510 X-1.

N520 G3 X-1.0106 Y.0271 I0. J-.015

N530 G1 G40 X-1.0332 Y.0045

N540 G0 Z4.

( SLOTS THE BACK )

N550 A-45.

N560 X-.8418

N570 Z1.475

N580 G1 Z1.0625 F10.

N590 G41 D14 X-.8644 Y.0271 F20.

N600 G3 X-.875 Y.0315 I-.0106 J-.0106

N610 G1 X-1.4938

N620 X-1.5052 Y.03

N630 X-1.5136 Y.0266

N640 X-1.5218 Y.0208

N650 X-1.5271 Y.0146

N660 X-1.5294 Y.0091

N670 X-1.5307 Y.0012

N680 X-1.5299 Y-.0071

N690 X-1.5273 Y-.0143

N700 X-1.5231 Y-.0196

N710 X-1.5157 Y-.0254

N720 X-1.5069 Y-.0295

N730 X-1.4952 Y-.0315

N740 X-.2546

N750 X-.244 Y-.0305

N760 X-.2381 Y-.0287

N770 X-.2328 Y-.0258

N780 X-.228 Y-.0219

N790 X-.2242 Y-.0173

N800 X-.2213 Y-.0119

N810 X-.2195 Y-.0061

N820 X-.219 Y0.

N830 X-.2196 Y.0061

N840 X-.2213 Y.0118

N850 X-.2242 Y.0172

N860 X-.228 Y.0219

N870 X-.2327 Y.0258

N880 X-.2381 Y.0287

N890 X-.2439 Y.0304

N900 X-.2546 Y.0315

N910 X-.875

N920 X-1.

N930 G3 X-1.0106 Y.0271 I0. J-.015

N940 G1 G40 X-1.0332 Y.0045

N950 G0 Z4.

N960 A-42.

N970 X-.8418

N980 Z1.475

N990 G1 Z1.0625 F10.

N1000 G41 D14 X-.8644 Y.0271 F20.

N1010 G3 X-.875 Y.0315 I-.0106 J-.0106

N1020 G1 X-1.4938

N1030 X-1.5052 Y.03

N1040 X-1.5136 Y.0266

N1050 X-1.5218 Y.0208

N1060 X-1.5271 Y.0146

N1070 X-1.5294 Y.0091

N1080 X-1.5307 Y.0012

N1090 X-1.5299 Y-.0071

N1100 X-1.5273 Y-.0143

N1110 X-1.5231 Y-.0196

N1120 X-1.5157 Y-.0254

N1130 X-1.5069 Y-.0295

N1140 X-1.4952 Y-.0315

N1150 X-.2546

N1160 X-.244 Y-.0305

N1170 X-.2381 Y-.0287

N1180 X-.2328 Y-.0258

N1190 X-.228 Y-.0219

N1200 X-.2242 Y-.0173

N1210 X-.2213 Y-.0119

N1220 X-.2195 Y-.0061

N1230 X-.219 Y0.

N1240 X-.2196 Y.0061

N1250 X-.2213 Y.0118

N1260 X-.2242 Y.0172

N1270 X-.228 Y.0219

N1280 X-.2327 Y.0258

N1290 X-.2381 Y.0287

N1300 X-.2439 Y.0304

N1310 X-.2546 Y.0315

N1320 X-.875

N1330 X-1.

N1340 G3 X-1.0106 Y.0271 I0. J-.015

N1350 G1 G40 X-1.0332 Y.0045

N1360 G0 Z4.

N1370 A-39.

N1380 X-.8418

N1390 Z1.475

N1400 G1 Z1.0625 F10.

N1410 G41 D14 X-.8644 Y.0271 F20.

N1420 G3 X-.875 Y.0315 I-.0106 J-.0106

N1430 G1 X-1.4938

N1440 X-1.5052 Y.03

N1450 X-1.5136 Y.0266

N1460 X-1.5218 Y.0208

N1470 X-1.5271 Y.0146

N1480 X-1.5294 Y.0091

N1490 X-1.5307 Y.0012

N1500 X-1.5299 Y-.0071

N1510 X-1.5273 Y-.0143

N1520 X-1.5231 Y-.0196

N1530 X-1.5157 Y-.0254

N1540 X-1.5069 Y-.0295

N1550 X-1.4952 Y-.0315

HTH

 

This is something I cover with my service so check out my web site.

Link to comment
Share on other sites

Also as a another tip to others if you set up your transform to use sub program incremental you can save a lot of room on your machine:

 

SubProgram.png

 

Here is your program:

 

code:

%

O0( 1414-2011-059 )

( DATE=DD-MM-YY - 19-08-09 TIME=HH:MM - 09:14 )

( MCX FILE - C:MCAMX4MCXMILLSLOTROTARY8_17_09.MCX )

( NC FILE - C:MCAMX4MILLNC1414-2011-059.NC )

( MATERIAL - )

( T14 | .1875 FL | H14 | D14 | WEAR COMP | TOOL DIA. - .187 )

N100 G20

N110 G0 G17 G40 G49 G80 G90

( SLOTS THE BACK )

N120 T14 M6

N130 G0 G90 G54 X-.8418 Y.0045 A-45. S2800 M3

N140 G43 H14 Z4.

N150 M8

N160 M98 P0001

N580 A-42.

N590 G90 X-.8418

N600 M98 P0001

N1020 A-39.

N1030 G90 X-.8418

N1040 M98 P0001

N1460 A-36.

N1470 G90 X-.8418

N1480 M98 P0001

N1900 A-33.

N1910 G90 X-.8418

N1920 M98 P0001

N2340 A-30.

N2350 G90 X-.8418

N2360 M98 P0001

N2780 A-27.

N2790 G90 X-.8418

N2800 M98 P0001

N3220 A-24.

N3230 G90 X-.8418

N3240 M98 P0001

N3660 A-21.

N3670 G90 X-.8418

N3680 M98 P0001

N4100 A-18.

N4110 G90 X-.8418

N4120 M98 P0001

N4540 A-15.

N4550 G90 X-.8418

N4560 M98 P0001

N4980 A-12.

N4990 G90 X-.8418

N5000 M98 P0001

N5420 A-9.

N5430 G90 X-.8418

N5440 M98 P0001

N5860 A-6.

N5870 G90 X-.8418

N5880 M98 P0001

N6300 A-3.

N6310 G90 X-.8418

N6320 M98 P0001

N6740 A0.

N6750 G90 X-.8418

N6760 M98 P0001

N7180 A3.

N7190 G90 X-.8418

N7200 M98 P0001

N7620 A6.

N7630 G90 X-.8418

N7640 M98 P0001

N8060 A9.

N8070 G90 X-.8418

N8080 M98 P0001

N8500 A12.

N8510 G90 X-.8418

N8520 M98 P0001

N8940 A15.

N8950 G90 X-.8418

N8960 M98 P0001

N9380 A18.

N9390 G90 X-.8418

N9400 M98 P0001

N9820 A21.

N9830 G90 X-.8418

N9840 M98 P0001

N360 A24.

N370 G90 X-.8418

N380 M98 P0001

N800 A27.

N810 G90 X-.8418

N820 M98 P0001

N1240 A30.

N1250 G90 X-.8418

N1260 M98 P0001

N1680 A33.

N1690 G90 X-.8418

N1700 M98 P0001

N2120 A36.

N2130 G90 X-.8418

N2140 M98 P0001

N2560 A39.

N2570 G90 X-.8418

N2580 M98 P0001

N3000 A42.

N3010 G90 X-.8418

N3020 M98 P0001

N3440 A45.

N3450 G90 X-.8418

N3460 M98 P0001

N3880 M5

N3890 G91 G28 Z0. M9

N3900 G28 X0. Y0. A0.

N3910 M30

 

O0001

N170 G91

N180 Z-2.525

N190 G1 Z-.4125 F10.

N200 G41 D14 X-.0226 Y.0226 F20.

N210 G3 X-.0106 Y.0044 I-.0106 J-.0106

N220 G1 X-.6188

N230 X-.0114 Y-.0015

N240 X-.0084 Y-.0034

N250 X-.0082 Y-.0058

N260 X-.0053 Y-.0062

N270 X-.0023 Y-.0055

N280 X-.0013 Y-.0079

N290 X.0008 Y-.0083

N300 X.0026 Y-.0072

N310 X.0042 Y-.0053

N320 X.0074 Y-.0058

N330 X.0088 Y-.0041

N340 X.0117 Y-.002

N350 X1.2406

N360 X.0106 Y.001

N370 X.0059 Y.0018

N380 X.0053 Y.0029

N390 X.0048 Y.0039

N400 X.0038 Y.0046

N410 X.0029 Y.0054

N420 X.0018 Y.0058

N430 X.0005 Y.0061

N440 X-.0006 Y.0061

N450 X-.0017 Y.0057

N460 X-.0029 Y.0054

N470 X-.0038 Y.0047

N480 X-.0047 Y.0039

N490 X-.0054 Y.0029

N500 X-.0058 Y.0017

N510 X-.0107 Y.0011

N520 X-.6204

N530 X-.125

N540 G3 X-.0106 Y-.0044 I0. J-.015

N550 G1 G40 X-.0226 Y-.0226

N560 G0 Z2.9375

N570 M99

%

Absolute subs has a bug has had it for years IMHO. If you pick absolute and it is the same thing Mastercam does not know so it makes sub programs for every index that are the same and then calls 31 different sub programs that are really the same sub so your file size becomes a mood point. What I will do it post it once as absolute to get the correct posted absolute sub program then repost at incremental to get the correct main program and life is good.

 

HTH

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