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:

4th axis output


dgriffiths
 Share

Recommended Posts

I am using a tweaked version of the mpmaster okuma post and getting some strange results on some 4th axis work. I am doing several operations on the top, front and back of a part. When posted, some of the ops on the back are posting at A90 (this is what I want) and some ops posting at A-270. All operations for that side are using the same WCS. However when I post those same ops by themselves the code that was A-270 is now output as A90. I have created the WCS as I have had issues using the back WCS in MCX. Where should I start to troubleshoot this? MD/CD or recreate the WCS or is it a possible post issue. We have used this post for quite some time with no issues so I would not thing it is the post. Any help or ideas would be great.

Link to comment
Share on other sites

I'm interested in hearing the ideas as well. I've only seen this a couple of times on our router, but have made it work the way I want by going into Ops>Parameters>Misc values button on the toolpath tab, unchecking the "automatically set to post values" box, and changing initial values or nutating bias there, but I don't know if that's the best way.

Link to comment
Share on other sites

I put the file on the ftp in the MCX2 folder. File is called A270_Output. While experimenting with the file we found that is we ghost out op#4 and post the program that the file is how we want it but with op#4 included it outputs the A270 moves. I have looked through our plane creation and everything seems good. I am sure we are just missing something with WCS/TP/CP. Cadcam, I can email you a copy of the MD/CD and post if that will help. I have looked through the post settings and everything seems to be correct. However my post editing abilities are sub-par at best. Thanks for the help.

Link to comment
Share on other sites

I just received the latest and greatest mpmaster okuma post and I am still getting the same results with the A270 instead of A-90. It has to be something we are doing wrong with the construction of the WCS. We found that if we add an operation at A0 in between the ops from front to back it seems to correct the issue. Did anybody have a chance to look at the file on the ftp. We have been messing with this file for a few days now and are at a loss. Any help would be much appriciated.

 

banghead.gifbanghead.gifbanghead.gif

confused.gifconfused.gifconfused.gif

Link to comment
Share on other sites

Yes, I have tried a few other posts with the same results and we have many others programs that posted fine so I am pretty sure it is something in mastercam or something we have done with our WCS creation. The file on the ftp is a Zip2Go. It is a pretty large file. I will get rid of some of the fixturing geometry and put it up as an mcx.

Link to comment
Share on other sites

Best I could get was A0 top, A90 front, A270 back. Even when I posted these alone or all together, same results. I changed your WCS TP/CP to what I thought was less confusing to me. I don't have your Okuma post. I just used the MPmaster. Maybe if you use your post. I'll put on FTP site same folder, as A270_OUTPUT2.

Link to comment
Share on other sites

After much experimenting, I have come to the conclusion that our issue is post related. However I am having some difficulty finding the necessary post edits. What I would like to do is set upper and lower limits for the 4th axis output to A-180 and A180. I have found a section of the post that I thought would take care of this but have no success. Here is the section I thought I should be looking at:

 

code:

 

 

pxyzcout #Map coordinates

if rot_on_x,

[

if cuttype = zero, pxyzcout0 #Toolplane Positioning

if cuttype = one, pxyzcout1 #Axis Substitution

if cuttype = two, pxyzcout2 #Polar Conversion

if cuttype = three, pxyzcout3 #Simulatneous 4 axis (Multi-axis)

if rot_ccw_pos = one, csav = -csav

if mr_rt_actv <> two,

[

pcoutrev

if index, pindxcalc

pfcalc

]

else, feed = fr_pos$

]

else,

[

xabs = vequ (x$)

feed = fr_pos$

]

 

pxyzcout0 #Toolplane Positioning

xabs = vequ (x$)

if rot_on_x = two, csav = -c$

else, csav = c$

 

pxyzcout1 #Axis substitution

if rot_on_x = one, #X axis substitution

[

xabs = x$

yabs = zero

zabs = z$ + (rotdia$ / two)

csav = y$ * (360 / (pi$ * rotdia$))

]

else, #Y axis substitution

[

xabs = zero

yabs = y$

zabs = z$ + (rotdia$ / two)

csav = x$ * (360 / (pi$ * rotdia$))

]

 

pxyzcout2 #polar interpolation

#Drill polar is toolplane drilling toward center

#if not a coincident axis

#Also, Capture initial index position for Polar Milling

if (opcode$ = three & rot_on_x <> three), pxyzcout0

else,

[

if rot_on_x = one, #X axis rotation

[

csav = atan2(y$, z$) #Z+ zero

axisx$ = vequ(aaxisx)

xabs = rotp(csav, x$)

]

if rot_on_x = two, #Y axis rotation

[

csav = atan2(-x$, z$) #Z+ zero

axisx$ = vequ(baxisx)

xabs = rotp(csav, x$)

]

if rot_on_x = three, #Z axis rotation

[

csav = atan2(-y$, x$) #X+ zero

axisx$ = vequ(caxisx)

xabs = rotp(csav, x$)

]

csav = csav + c$

]

 

pxyzcout3 #Multisurf rotary axis motion

if rot_on_x = one, #Multisurf Rotary about X

[

csav = atan2 (vtooly$, vtoolz$)

axisx$ = vequ (aaxisx)

]

if rot_on_x = two, #Multisurf Rotary about Y

[

csav = atan2 (-vtoolx$, vtoolz$)

axisx$ = vequ (baxisx)

]

xabs = rotp (csav, x$)

u$ = rotp (csav, u$)

csav = csav + c$

 

pcoutrev #Rotary axis revolution calculation (Modify for wind-up)

cdelta = csav - prv_csav

while abs(cdelta) > ctol, #If motion exceeds ctol, add wind-up

[

if cdelta > zero,

[

rev = rev - one

cdelta = cdelta - 360

]

else,

[

rev = rev + one

cdelta = cdelta + 360

]

]

if cuttype <> one, cabs = rev * 360 + csav

else, cabs = sav_rev * 360 + csav

 

# reset Axis at 180 #######################################

 

if cabs > 180, cabs = cabs -360.

if cabs < -180, cabs = cabs +360.

 

!csav

 

pindxcalc #Index move calculations, direction is shortest

#Check if in tolerance

cdelta = frac(abs(csav)/ctable)

if cdelta > ixtol & cdelta < 1-ixtol,

result = mprint(sindxerror)

cdelta = prvcabs - cabs

#Phase shift delta 10 revolutions, check odd/even

if frac(int((cdelta + 3600)/180)/two), indx_mc = one

else, indx_mc = zero

#Set range 0-360

indx_out = csav

while indx_out < 0, indx_out = indx_out + 360

while indx_out > 360, indx_out = indx_out - 360


Am I on the right track here???

Link to comment
Share on other sites

Well looking at your file. You have operation 4 using OP2 WCS and all the others using OP1 WCS. I also posted your program using my MPMASTER and did not get the A-270 anywhere in the post code. Also right click on the operation manager and change your display options to show WCS and TOOL Plane if not using it now.

 

code:

%

O0000 (B1278 OP1)

(MACHINE - MIGHTY/YAMA SEIKI)

(CUSTOMER - ADD CUSTOMER)

(MODEL # - )

(PART # - Machine Group-1 REV - )

(PROGRAMMER - RON
B)

(PROGRAM NAME - B1278 OP1.NC)

(DATE - JAN-24-2008)

(TIME - 8:04 PM)

(PROGRAM REV - )

(T10 - 3/8 SPOTDRILL - H10 - D10 - D0.3750")

(T91 - 59/64 DRILL - H91 - D91 - D0.9219")

(T67 - 3/4 DRILL - H67 - D67 - D0.7500")

(T44 - #F DRILL - H44 - D44 - D0.2570")

(T43 - #U DRILL - H43 - D43 - D0.3680")

(T104 - 1/4 FLAT ENDMILL - H104 - D104 - D0.2500")

(T146 - 5/16-18 TAPRH - H146 - D146 - D0.3125")

(T31 - #25 DRILL - H31 - D31 - D0.1495")

(T139 - NO. 10-24 TAPRH - H139 - D139 - D0.1900")

(T111 - 3/4 FLAT ENDMILL - H111 - D111 - D0.7500")

(T108 - 1/2 FLAT ENDMILL - H108 - D108 - D0.5000")

(T94 - 2-1/2 FACEMILL - AL - H94 - D94 - D2.5000")

(OVERALL MAX - Z12.)

(OVERALL MIN - Z2.375)

N100 G0 G17 G20 G40 G80 G90

N110 (SPOT DRILL FOR .7500" DRILL)

N120 T10 M06 (3/8 SPOTDRILL)

N130 (MAX - Z12.)

N140 (MIN - Z2.9139)

N150 M10 (UNLOCK)

N160 G0 G55 X-9.5625 Y0. A0. S6000 M3

N170 M11 (LOCK)

N180 G43 H10 Z12.

N190 G98 G81 Z8.3325 R8.77 F40.

N200 X-7.5625

N210 X9.5625

N220 G80

N230 (SPOT DRILL FOR "F" DRILL)

N240 X-7.5625 Y1.25

N250 G98 G81 Z8.4565 R8.895 F40.

N260 Y-1.25

N270 G80

N280 (SPOT DRILL FOR "U" DRILL)

N290 X-6.1875 Y0.

N300 G98 G81 Z8.354 R8.77 F40.

N310 X6.1875

N320 G80

N330 M10 (UNLOCK)

N340 G90 X-7.0625 Y8.3325 Z12. A90.

N350 M11 (LOCK)

N360 G98 G81 Z2.9139 R3.2364 F40.

N370 X7.0625

N380 G80

N390 (SPOT DRILL FOR #25 DRILL)

N400 M10 (UNLOCK)

N410 G90 X-7.0625 Y-8.3325 Z12. A270.

N420 M11 (LOCK)

N430 G98 G81 Z2.9139 R3.2364 F40.

N440 X7.0625

N450 G80

N460 M5

N470 G91 G28 Z0.

N480 M01

N490 (DRILL TO REMOVE MATERIAL FOR SPINDLE HOLE)

N500 T91 M06 (59/64 DRILL)

N510 (MAX - Z11.)

N520 (MIN - Z6.206)

N530 M10 (UNLOCK)

N540 G0 G90 G55 X-9.5625 Y0. A0. S2000 M3

N550 M11 (LOCK)

N560 G43 H91 Z11.

N570 G98 G83 Z6.206 R8.77 Q.1 F40.

N580 X9.5625

N590 G80

N600 M5

N610 G91 G28 Z0.

N620 M01

N630 (DRILL TO REMOVE MATERIAL FROM HOLE FOR BACKING PLATE SHAFT SPRING)

N640 T67 M06 (3/4 DRILL)

N650 (MAX - Z11.)

N660 (MIN - Z8.17)

N670 M10 (UNLOCK)

N680 G0 G90 G55 X-7.5625 Y0. A0. S2500 M3

N690 M11 (LOCK)

N700 G43 H67 Z11.

N710 G98 G83 Z8.17 R8.8325 Q.1 F30.

N720 G80

N730 M5

N740 G91 G28 Z0.

N750 M01

N760 (DRILL FOR 5/16 - 18 UNC)

N770 T44 M06 (#F DRILL)

N780 (MAX - Z12.)

N790 (MIN - Z7.9678)

N800 M10 (UNLOCK)

N810 G0 G90 G55 X-7.5625 Y1.25 A0. S2000 M3

N820 M11 (LOCK)

N830 G43 H44 Z12.

N840 G98 G83 Z7.9678 R8.895 Q.1 F40.

N850 Y-1.25

N860 G80

N870 M5

N880 G91 G28 Z0.

N890 M01

N900 (DRILL FOR CIRCLE MILL)

N910 T43 M06 (#U DRILL)

N920 (MAX - Z12.)

N930 (MIN - Z7.6844)

N940 M10 (UNLOCK)

N950 G0 G90 G55 X-6.1875 Y0. A0. S5000 M3

N960 M11 (LOCK)

N970 G43 H43 Z12.

N980 G98 G83 Z7.6844 R8.77 Q.1 F40.

N990 X6.1875

N1000 G80

N1010 M5

N1020 G91 G28 Z0.

N1030 M01

N1040 T104 M06 ( 1/4 FLAT ENDMILL)

N1050 (MAX - Z12.)

N1060 (MIN - Z2.4)

N1070 M10 (UNLOCK)

N1080 G0 G90 G55 X2.6876 Y-6.0417 A270. S5000 M3

N1090 M11 (LOCK)

N1100 G43 H104 Z12.

N1110 Z3.1

N1120 G94 G1 Z3. F30.

N1130 X3.1375 Z2.9606

N1140 G3 Y-5.9983 Z2.9547 I0. J.0217

N1150 G1 X2.5125 Z2.9

N1160 X1.8875

N1170 G3 Y-6.0417 I0. J-.0217

N1180 G1 X3.1375

N1190 G3 Y-5.9983 I0. J.0217

N1200 G1 X2.5125

N1210 G3 Y-6.0417 I0. J-.0217

N1220 Y-5.955 I0. J.0434

N1230 G1 X1.8875

N1240 G3 Y-6.085 I0. J-.065

N1250 G1 X3.1375

N1260 G3 Y-5.955 I0. J.065

N1270 G1 X2.5125

N1280 Y-5.9825

N1290 G41 D104 Y-6.02

N1300 G3 Y-5.945 I0. J.0375

N1310 G1 X1.8875

N1320 G3 Y-6.095 I0. J-.075

N1330 G1 X3.1375

N1340 G3 Y-5.945 I0. J.075

N1350 G1 X2.5125

N1360 G3 Y-6.02 I0. J-.0375

N1370 G1 G40 Y-5.9825

N1380 G0 Z3.25

N1390 X2.6876 Y-6.0417

N1400 Z3.1

N1410 G1 Z2.9

N1420 X3.1375 Z2.8606

N1430 G3 Y-5.9983 Z2.8547 I0. J.0217

N1440 G1 X2.5125 Z2.8

N1450 X1.8875

N1460 G3 Y-6.0417 I0. J-.0217

N1470 G1 X3.1375

N1480 G3 Y-5.9983 I0. J.0217

N1490 G1 X2.5125

N1500 G3 Y-6.0417 I0. J-.0217

N1510 Y-5.955 I0. J.0434

N1520 G1 X1.8875

N1530 G3 Y-6.085 I0. J-.065

N1540 G1 X3.1375

N1550 G3 Y-5.955 I0. J.065

N1560 G1 X2.5125

N1570 Y-5.9825

N1580 G41 D104 Y-6.02

N1590 G3 Y-5.945 I0. J.0375

N1600 G1 X1.8875

N1610 G3 Y-6.095 I0. J-.075

N1620 G1 X3.1375

N1630 G3 Y-5.945 I0. J.075

N1640 G1 X2.5125

N1650 G3 Y-6.02 I0. J-.0375

N1660 G1 G40 Y-5.9825

N1670 G0 Z3.25

N1680 X2.6876 Y-6.0417

N1690 Z3.1

N1700 G1 Z2.8

N1710 X3.1375 Z2.7606

N1720 G3 Y-5.9983 Z2.7547 I0. J.0217

N1730 G1 X2.5125 Z2.7

N1740 X1.8875

N1750 G3 Y-6.0417 I0. J-.0217

N1760 G1 X3.1375

N1770 G3 Y-5.9983 I0. J.0217

N1780 G1 X2.5125

N1790 G3 Y-6.0417 I0. J-.0217

N1800 Y-5.955 I0. J.0434

N1810 G1 X1.8875

N1820 G3 Y-6.085 I0. J-.065

N1830 G1 X3.1375

N1840 G3 Y-5.955 I0. J.065

N1850 G1 X2.5125

N1860 Y-5.9825

N1870 G41 D104 Y-6.02

N1880 G3 Y-5.945 I0. J.0375

N1890 G1 X1.8875

N1900 G3 Y-6.095 I0. J-.075

N1910 G1 X3.1375

N1920 G3 Y-5.945 I0. J.075

N1930 G1 X2.5125

N1940 G3 Y-6.02 I0. J-.0375

N1950 G1 G40 Y-5.9825

N1960 G0 Z3.25

N1970 X2.6876 Y-6.0417

N1980 Z3.1

N1990 G1 Z2.7

N2000 X3.1375 Z2.6606

N2010 G3 Y-5.9983 Z2.6547 I0. J.0217

N2020 G1 X2.5125 Z2.6

N2030 X1.8875

N2040 G3 Y-6.0417 I0. J-.0217

N2050 G1 X3.1375

N2060 G3 Y-5.9983 I0. J.0217

N2070 G1 X2.5125

N2080 G3 Y-6.0417 I0. J-.0217

N2090 Y-5.955 I0. J.0434

N2100 G1 X1.8875

N2110 G3 Y-6.085 I0. J-.065

N2120 G1 X3.1375

N2130 G3 Y-5.955 I0. J.065

N2140 G1 X2.5125

N2150 Y-5.9825

N2160 G41 D104 Y-6.02

N2170 G3 Y-5.945 I0. J.0375

N2180 G1 X1.8875

N2190 G3 Y-6.095 I0. J-.075

N2200 G1 X3.1375

N2210 G3 Y-5.945 I0. J.075

N2220 G1 X2.5125

N2230 G3 Y-6.02 I0. J-.0375

N2240 G1 G40 Y-5.9825

N2250 G0 Z3.25

N2260 X2.6876 Y-6.0417

N2270 Z3.1

N2280 G1 Z2.6

N2290 X3.1375 Z2.5606

N2300 G3 Y-5.9983 Z2.5547 I0. J.0217

N2310 G1 X2.5125 Z2.5

N2320 X1.8875

N2330 G3 Y-6.0417 I0. J-.0217

N2340 G1 X3.1375

N2350 G3 Y-5.9983 I0. J.0217

N2360 G1 X2.5125

N2370 G3 Y-6.0417 I0. J-.0217

N2380 Y-5.955 I0. J.0434

N2390 G1 X1.8875

N2400 G3 Y-6.085 I0. J-.065

N2410 G1 X3.1375

N2420 G3 Y-5.955 I0. J.065

N2430 G1 X2.5125

N2440 Y-5.9825

N2450 G41 D104 Y-6.02

N2460 G3 Y-5.945 I0. J.0375

N2470 G1 X1.8875

N2480 G3 Y-6.095 I0. J-.075

N2490 G1 X3.1375

N2500 G3 Y-5.945 I0. J.075

N2510 G1 X2.5125

N2520 G3 Y-6.02 I0. J-.0375

N2530 G1 G40 Y-5.9825

N2540 G0 Z3.25

N2550 X2.6876 Y-6.0417

N2560 Z3.1

N2570 G1 Z2.5

N2580 X3.1375 Z2.4606

N2590 G3 Y-5.9983 Z2.4547 I0. J.0217

N2600 G1 X2.5125 Z2.4

N2610 X1.8875

N2620 G3 Y-6.0417 I0. J-.0217

N2630 G1 X3.1375

N2640 G3 Y-5.9983 I0. J.0217

N2650 G1 X2.5125

N2660 G3 Y-6.0417 I0. J-.0217

N2670 Y-5.955 I0. J.0434

N2680 G1 X1.8875

N2690 G3 Y-6.085 I0. J-.065

N2700 G1 X3.1375

N2710 G3 Y-5.955 I0. J.065

N2720 G1 X2.5125

N2730 Y-5.9825

N2740 G41 D104 Y-6.02

N2750 G3 Y-5.945 I0. J.0375

N2760 G1 X1.8875

N2770 G3 Y-6.095 I0. J-.075

N2780 G1 X3.1375

N2790 G3 Y-5.945 I0. J.075

N2800 G1 X2.5125

N2810 G3 Y-6.02 I0. J-.0375

N2820 G1 G40 Y-5.9825

N2830 G0 Z3.25

N2840 Z12.

N2850 (CIRCLE MILL FOR ALIGNMENT DOWEL AND CLEARENCE HOLE FOR SPACER BOLT)

N2860 M10 (UNLOCK)

N2870 G90 X-6.1875 Y0. Z12. A0.

N2880 M11 (LOCK)

N2890 Z8.62

N2900 G1 Z7.895

N2910 G41 D104 X-6.1558 Y.0318

N2920 G3 X-6.1875 Y.0635 I-.0317 J0.

N2930 Y-.0635 I0. J-.0635

N2940 Y.0635 I0. J.0635

N2950 X-6.2192 Y.0318 I0. J-.0317

N2960 G1 G40 X-6.1875 Y0.

N2970 G41 D104 X-6.1558 Y.0318

N2980 G3 X-6.1875 Y.0635 I-.0317 J0.

N2990 Y-.0635 I0. J-.0635

N3000 Y.0635 I0. J.0635

N3010 X-6.2192 Y.0318 I0. J-.0317

N3020 G1 G40 X-6.1875 Y0.

N3030 G0 Z8.77

N3040 Z12.

N3050 X6.1875

N3060 Z8.62

N3070 G1 Z7.895

N3080 G41 D104 X6.2192 Y.0318

N3090 G3 X6.1875 Y.0635 I-.0317 J0.

N3100 Y-.0635 I0. J-.0635

N3110 Y.0635 I0. J.0635

N3120 X6.1558 Y.0318 I0. J-.0317

N3130 G1 G40 X6.1875 Y0.

N3140 G41 D104 X6.2192 Y.0318

N3150 G3 X6.1875 Y.0635 I-.0317 J0.

N3160 Y-.0635 I0. J-.0635

N3170 Y.0635 I0. J.0635

N3180 X6.1558 Y.0318 I0. J-.0317

N3190 G1 G40 X6.1875 Y0.

N3200 G0 Z8.77

N3210 Z12.

N3220 M5

N3230 G91 G28 Z0.

N3240 M01

N3250 T146 M06 ( 5/16-18 TAPRH)

N3260 (MAX - Z12.)

N3270 (MIN - Z8.045)

N3280 M10 (UNLOCK)

N3290 G0 G90 G55 X-7.5625 Y1.25 A0. S500 M3

N3300 M11 (LOCK)

N3310 G43 H146 Z12.

N3320 G98 G84 Z8.045 R8.8325 F27.78

N3330 Y-1.25

N3340 G80

N3350 M5

N3360 G91 G28 Z0.

N3370 M01

N3380 (DRILL FOR 10 - 24 TAP)

N3390 T31 M06 (#25 DRILL)

N3400 (MAX - Z12.)

N3410 (MIN - Z2.5665)

N3420 M10 (UNLOCK)

N3430 G0 G90 G55 X-7.0625 Y8.3325 A90. S6000 M3

N3440 M11 (LOCK)

N3450 G43 H31 Z12.

N3460 G98 G83 Z2.5665 R3.2364 Q.1 F40.

N3470 X7.0625

N3480 G80

N3490 (DRILL FOR 10 - 24 TAP A-270?)

N3500 M10 (UNLOCK)

N3510 G90 X-7.0625 Y-8.3325 Z12. A270.

N3520 M11 (LOCK)

N3530 G98 G83 Z2.5665 R3.2364 Q.1 F40.

N3540 X7.0625

N3550 G80

N3560 M5

N3570 G91 G28 Z0.

N3580 M01

N3590 T139 M06 ( NO. 10-24 TAPRH)

N3600 (MAX - Z12.)

N3610 (MIN - Z2.7364)

N3620 M10 (UNLOCK)

N3630 G0 G90 G55 X-7.0625 Y-8.3325 A270. S300 M3

N3640 M11 (LOCK)

N3650 G43 H139 Z12.

N3660 G98 G84 Z2.7364 R3.2364 F12.5

N3670 X7.0625

N3680 G80

N3690 M10 (UNLOCK)

N3700 G90 X-7.0625 Y8.3325 Z12. A90.

N3710 M11 (LOCK)

N3720 G98 G84 Z2.744 R3.244 F12.5

N3730 X7.0625

N3740 G80

N3750 M5

N3760 G91 G28 Z0.

N3770 M01

N3780 T111 M06 ( 3/4 FLAT ENDMILL)

N3790 (MAX - Z11.)

N3800 (MIN - Z2.375)

N3810 M10 (UNLOCK)

N3820 G0 G90 G55 X-9.6103 Y-.0319 A0. S5000 M3

N3830 M11 (LOCK)

N3840 G43 H111 Z11.

N3850 Z8.62

N3860 G94 G1 Z8.52 F50.

N3870 G41 D111 X-9.5625 Y0.

N3880 G3 X-9.6581 Y-.0639 I-.0478 J-.0319

N3890 X-9.4669 Y.0639 Z8.48 I.0956 J.0639

N3900 X-9.6581 Y-.0639 Z8.44 I-.0956 J-.0639

N3910 X-9.4669 Y.0639 Z8.4 I.0956 J.0639

N3920 X-9.6581 Y-.0639 Z8.36 I-.0956 J-.0639

N3930 X-9.4669 Y.0639 Z8.32 I.0956 J.0639

N3940 X-9.6581 Y-.0639 Z8.28 I-.0956 J-.0639

N3950 X-9.4669 Y.0639 Z8.24 I.0956 J.0639

N3960 X-9.6581 Y-.0639 Z8.2 I-.0956 J-.0639

N3970 X-9.4669 Y.0639 Z8.16 I.0956 J.0639

N3980 X-9.6581 Y-.0639 Z8.12 I-.0956 J-.0639

N3990 X-9.4669 Y.0639 Z8.08 I.0956 J.0639

N4000 X-9.6581 Y-.0639 Z8.04 I-.0956 J-.0639

N4010 X-9.4669 Y.0639 Z8. I.0956 J.0639

N4020 X-9.6581 Y-.0639 Z7.96 I-.0956 J-.0639

N4030 X-9.4669 Y.0639 Z7.92 I.0956 J.0639

N4040 X-9.5625 Y.115 Z7.9075 I-.0956 J-.0639

N4050 Y-.115 I0. J-.115 F15.

N4060 Y.115 I0. J.115

N4070 G40 Y0. I0. J-.0575

N4080 G1 Z8.62 F100.

N4090 G0 Z11.

N4100 (CIRCLE MILL FOR SPINDLE BUSHING HOLE)

N4110 Z8.62

N4120 G1 Z7.9075 F15.

N4130 G41 D111 X-9.5025 Y.06

N4140 G3 X-9.5625 Y.12 I-.06 J0.

N4150 Y-.12 I0. J-.12

N4160 Y.12 I0. J.12

N4170 X-9.6225 Y.06 I0. J-.06

N4180 G1 G40 X-9.5625 Y0.

N4190 G41 D111 X-9.5 Y.0625

N4200 G3 X-9.5625 Y.125 I-.0625 J0.

N4210 Y-.125 I0. J-.125

N4220 Y.125 I0. J.125

N4230 X-9.625 Y.0625 I0. J-.0625

N4240 G1 G40 X-9.5625 Y0.

N4250 G41 D111 X-9.5 Y.0625

N4260 G3 X-9.5625 Y.125 I-.0625 J0.

N4270 Y-.125 I0. J-.125

N4280 Y.125 I0. J.125

N4290 X-9.625 Y.0625 I0. J-.0625

N4300 G1 G40 X-9.5625 Y0.

N4310 G41 D111 X-9.5 Y.0625

N4320 G3 X-9.5625 Y.125 I-.0625 J0.

N4330 Y-.125 I0. J-.125

N4340 Y.125 I0. J.125

N4350 X-9.625 Y.0625 I0. J-.0625

N4360 G1 G40 X-9.5625 Y0.

N4370 G41 D111 X-9.5 Y.0625

N4380 G3 X-9.5625 Y.125 I-.0625 J0.

N4390 Y-.125 I0. J-.125

N4400 Y.125 I0. J.125

N4410 X-9.625 Y.0625 I0. J-.0625

N4420 G1 G40 X-9.5625 Y0.

N4430 G0 Z11.

N4440 X9.5147 Y-.0319

N4450 Z8.62

N4460 G1 Z8.52 F50.

N4470 G41 D111 X9.5625 Y0.

N4480 G3 X9.4669 Y-.0639 I-.0478 J-.0319

N4490 X9.6581 Y.0639 Z8.48 I.0956 J.0639

N4500 X9.4669 Y-.0639 Z8.44 I-.0956 J-.0639

N4510 X9.6581 Y.0639 Z8.4 I.0956 J.0639

N4520 X9.4669 Y-.0639 Z8.36 I-.0956 J-.0639

N4530 X9.6581 Y.0639 Z8.32 I.0956 J.0639

N4540 X9.4669 Y-.0639 Z8.28 I-.0956 J-.0639

N4550 X9.6581 Y.0639 Z8.24 I.0956 J.0639

N4560 X9.4669 Y-.0639 Z8.2 I-.0956 J-.0639

N4570 X9.6581 Y.0639 Z8.16 I.0956 J.0639

N4580 X9.4669 Y-.0639 Z8.12 I-.0956 J-.0639

N4590 X9.6581 Y.0639 Z8.08 I.0956 J.0639

N4600 X9.4669 Y-.0639 Z8.04 I-.0956 J-.0639

N4610 X9.6581 Y.0639 Z8. I.0956 J.0639

N4620 X9.4669 Y-.0639 Z7.96 I-.0956 J-.0639

N4630 X9.6581 Y.0639 Z7.92 I.0956 J.0639

N4640 X9.5625 Y.115 Z7.9075 I-.0956 J-.0639

N4650 Y-.115 I0. J-.115 F15.

N4660 Y.115 I0. J.115

N4670 G40 Y0. I0. J-.0575

N4680 G1 Z8.62 F100.

N4690 G0 Z11.

N4700 (CIRCLE MILL FOR SPINDLE BUSHING)

N4710 Z8.62

N4720 G1 Z7.9075 F15.

N4730 G41 D111 X9.6225 Y.06

N4740 G3 X9.5625 Y.12 I-.06 J0.

N4750 Y-.12 I0. J-.12

N4760 Y.12 I0. J.12

N4770 X9.5025 Y.06 I0. J-.06

N4780 G1 G40 X9.5625 Y0.

N4790 G41 D111 X9.625 Y.0625

N4800 G3 X9.5625 Y.125 I-.0625 J0.

N4810 Y-.125 I0. J-.125

N4820 Y.125 I0. J.125

N4830 X9.5 Y.0625 I0. J-.0625

N4840 G1 G40 X9.5625 Y0.

N4850 G41 D111 X9.625 Y.0625

N4860 G3 X9.5625 Y.125 I-.0625 J0.

N4870 Y-.125 I0. J-.125

N4880 Y.125 I0. J.125

N4890 X9.5 Y.0625 I0. J-.0625

N4900 G1 G40 X9.5625 Y0.

N4910 G41 D111 X9.625 Y.0625

N4920 G3 X9.5625 Y.125 I-.0625 J0.

N4930 Y-.125 I0. J-.125

N4940 Y.125 I0. J.125

N4950 X9.5 Y.0625 I0. J-.0625

N4960 G1 G40 X9.5625 Y0.

N4970 G41 D111 X9.625 Y.0625

N4980 G3 X9.5625 Y.125 I-.0625 J0.

N4990 Y-.125 I0. J-.125

N5000 Y.125 I0. J.125

N5010 X9.5 Y.0625 I0. J-.0625

N5020 G1 G40 X9.5625 Y0.

N5030 G0 Z11.

N5040 X-9.5625

N5050 Z8.62

N5060 G1 Z8.47 F50.

N5070 G41 D111 X-9.3625 Y.2

N5080 G3 X-9.5625 Y.4 I-.2 J0.

N5090 Y-.4 I0. J-.4

N5100 Y.4 I0. J.4

N5110 X-9.7625 Y.2 I0. J-.2

N5120 G1 G40 X-9.5625 Y0.

N5130 G41 D111 X-9.3625 Y.2

N5140 G3 X-9.5625 Y.4 I-.2 J0.

N5150 Y-.4 I0. J-.4

N5160 Y.4 I0. J.4

N5170 X-9.7625 Y.2 I0. J-.2

N5180 G1 G40 X-9.5625 Y0.

N5190 G0 Z8.77

N5200 Z11.

N5210 X9.5625

N5220 Z8.62

N5230 G1 Z8.47

N5240 G41 D111 X9.7625 Y.2

N5250 G3 X9.5625 Y.4 I-.2 J0.

N5260 Y-.4 I0. J-.4

N5270 Y.4 I0. J.4

N5280 X9.3625 Y.2 I0. J-.2

N5290 G1 G40 X9.5625 Y0.

N5300 G41 D111 X9.7625 Y.2

N5310 G3 X9.5625 Y.4 I-.2 J0.

N5320 Y-.4 I0. J-.4

N5330 Y.4 I0. J.4

N5340 X9.3625 Y.2 I0. J-.2

N5350 G1 G40 X9.5625 Y0.

N5360 G0 Z8.77

N5370 Z11.

N5380 (SIDE MILL FOR SHEAVE PULLEY)

N5390 M10 (UNLOCK)

N5400 G90 X-4.1086 Y4.77 Z11. A90.

N5410 M11 (LOCK)

N5420 Z3.1

N5430 G1 Z2.375

N5440 G41 D111 X-3.9836

N5450 G3 X-3.7336 Y5.02 I0. J.25

N5460 G1 Y6.145

N5470 X-3.8586

N5480 G3 X-4.1086 Y5.895 I0. J-.25

N5490 G1 G40 X-3.9836

N5500 G0 Z3.1

N5510 X-3.8586 Y4.77

N5520 G1 Z2.375

N5530 G41 D111 X-3.7336

N5540 G3 X-3.4836 Y5.02 I0. J.25

N5550 G1 Y6.27

N5560 G3 X-3.6086 Y6.395 I-.125 J0.

N5570 G1 X-3.8586

N5580 G3 X-4.1086 Y6.145 I0. J-.25

N5590 G1 G40 X-3.9836

N5600 G0 Z3.1

N5610 X-3.8586 Y4.77

N5620 G1 Z2.375

N5630 G41 D111 X-3.7336

N5640 G3 X-3.4836 Y5.02 I0. J.25

N5650 G1 Y6.27

N5660 G3 X-3.6086 Y6.395 I-.125 J0.

N5670 G1 X-3.8586

N5680 G3 X-4.1086 Y6.145 I0. J-.25

N5690 G1 G40 X-3.9836

N5700 G0 Z11.

N5710 M5

N5720 G91 G28 Z0.

N5730 M01

N5740 (CIRCLE MILL FOR BACKING PLATE SHAFT SPRING HOLE)

N5750 T108 M06 ( 1/2 FLAT ENDMILL)

N5760 (MAX - Z12.)

N5770 (MIN - Z8.0825)

N5780 M10 (UNLOCK)

N5790 G0 G90 G55 X-7.4788 Y-.0961 A0. S6000 M3

N5800 M11 (LOCK)

N5810 G43 H108 Z12.

N5820 Z8.6825

N5830 G94 G1 Z8.5925 F50.

N5840 G3 X-7.6462 Y.0961 Z8.5574 I-.0837 J.0961

N5850 X-7.4788 Y-.0961 Z8.5224 I.0837 J-.0961

N5860 X-7.6462 Y.0961 Z8.4873 I-.0837 J.0961

N5870 X-7.4788 Y-.0961 Z8.4523 I.0837 J-.0961

N5880 X-7.6462 Y.0961 Z8.4172 I-.0837 J.0961

N5890 X-7.4788 Y-.0961 Z8.3822 I.0837 J-.0961

N5900 X-7.6462 Y.0961 Z8.3471 I-.0837 J.0961

N5910 X-7.4788 Y-.0961 Z8.3121 I.0837 J-.0961

N5920 X-7.6462 Y.0961 Z8.2771 I-.0837 J.0961

N5930 X-7.4788 Y-.0961 Z8.2421 I.0837 J-.0961

N5940 X-7.6462 Y.0961 Z8.2071 I-.0837 J.0961

N5950 X-7.4788 Y-.0961 Z8.172 I.0837 J-.0961

N5960 X-7.6462 Y.0961 Z8.137 I-.0837 J.0961

N5970 X-7.4788 Y-.0961 Z8.1019 I.0837 J-.0961

N5980 X-7.4816 Y.0986 Z8.0825 I-.0837 J.0961

N5990 X-7.6434 Y-.0986 I-.0809 J-.0986

N6000 X-7.4816 Y.0986 I.0809 J.0986

N6010 X-7.5625 Y.1375 I-.1205 J-.1469

N6020 Y-.1375 I0. J-.1375

N6030 Y.1375 I0. J.1375

N6040 X-7.6312 Y.0688 I0. J-.0687

N6050 G1 X-7.5625 Y0.

N6060 G41 D108 X-7.4688 Y.0938

N6070 G3 X-7.5625 Y.1875 I-.0937 J0.

N6080 Y-.1875 I0. J-.1875

N6090 Y.1875 I0. J.1875

N6100 X-7.6563 Y.0938 I0. J-.0937

N6110 G1 G40 X-7.5625 Y0.

N6120 G41 D108 X-7.4688 Y.0938

N6130 G3 X-7.5625 Y.1875 I-.0937 J0.

N6140 Y-.1875 I0. J-.1875

N6150 Y.1875 I0. J.1875

N6160 X-7.6563 Y.0938 I0. J-.0937

N6170 G1 G40 X-7.5625 Y0.

N6180 G0 Z12.

N6190 M5

N6200 G91 G28 Z0.

N6210 M01

N6220 (FACE OFF SURFACE FOR SLIDE BRACKET)

N6230 T94 M06 ( 2-1/2 FACEMILL - AL)

N6240 (MAX - Z12.)

N6250 (MIN - Z8.5825)

N6260 M10 (UNLOCK)

N6270 G0 G90 G55 X-7.4225 Y-3.17 A0. S5000 M3

N6280 M11 (LOCK)

N6290 G43 H94 Z12.

N6300 Z8.745

N6310 G94 G1 Z8.5825 F60.

N6320 Y3.17

N6330 G0 Z8.8325

N6340 Y-3.17

N6350 Z8.745

N6360 G1 Z8.5825

N6370 Y3.17

N6380 G0 Z12.

N6390 M5

N6400 G91 G28 Z0.

N6410 M10 (UNLOCK)

N6420 G28 X0. Y0. A0.

N6430 M11 (LOCK)

N6440 A0

N6450 G90

N6460 M30

%

So not sure what to tell you, but think you are going down the wrong road thinking it is a post issue. I would download the MPMASTER off the website and try that. I would also try the generic 4 axis post and MD/CD

Link to comment
Share on other sites

I have WCS on tool planes tuned on. I did notice the WCS on op4 and corrected it. I just received the lateest okuma-mpmaster post and MD/CD and I am getting the same results. I did notice in your code that the A axis values are opposite from what I am getting. I am getting A-270 and your code has A270. Either way it is causing me a problem because the tombstone wants to rotate the part underneath (towards the bed) and there is not enough claerance for our fixturing. This is usually the case with jobs on this machine. If the vaule is A-90 instead of A270 the tombstone rotates the direction I need it to. And Ron you are correct, I do not think I fully understand what controls this (post, MD/CD)??? I will try what you have suggested and see if the results are different.

Link to comment
Share on other sites

See know you added a big piece to the puzzle that was missing. It is posting out code correct. What you are trying to do really comes down to some things that might do with shortest distance in the machine definition and then use a point toolpath to drive the operation to A0 then go from there to the 90 positions. I would try this approach and see if it gives you what you want. Also make sure the machine Def has shortest direction, absolute angle(0-360 deg.) on in the Rotary axis.

 

HTH

Link to comment
Share on other sites

Ya, sorry for the lack of info, I think we are still trying to figure out exactly what is is we want. The code is fine, I am just trying to eliminate the possibility of crashing the 4th. The point path back to A0 is how we got what we wanted on this program. What I do not understand is that without it the rotations are not constant. Some rotations in the program go from A-90 to A90 which is what I want and others which are the same rotations go from A-90 to A-270. If the rotation back to A0 first is the solution that is not a big deal. At this point I am just trying to understand what determines the rotation direction and why there would be two different results when rotating between the same two WCS. Thanks again for the replies.

Link to comment
Share on other sites

Man I would be pulling my head out of my hair at this point. Well if you want a fix to make good code do a mi to replace the A output and use it to force it out. Then just put the value in mi and make it replace what ever it puts out to give you what you want for posted code. Do a search on force out A axis I think a did a good explanation on this few years back.

 

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