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:

Posting at 180 deg rotation


Recommended Posts

One of our standard setups here is a array of double Kurt hydraulic vises where parts are clamped on either side of the center jaw. A lot of the jobs are where the same operation is run on the front and back loads. Is there a fairly simple way to have a post output code both how it is programmed and then also rotated 180 for the back load. We run all of our machines using master Macro B programs with the tool paths loaded into them. I am trying to eliminate a lot of the cutting and pasting that we do now. It would be great if I could just program the one instance and the post would handle the rest.

Link to comment
Share on other sites

That is an option, the hiccup with that is the master macros that they run everything thru here. There is no changing that and rightfully so. The master programs are well thought out and the setup workflow that the floor guys have is pretty solid.

I would like to idiot proof the programming side as much as possible. They use G54 for the front, G55 for the back. The thought is, program one instance, give it a pitch and a qty using miscellaneous variables and the post just loads the master macro. Simple, just like I need it to be.

Link to comment
Share on other sites

We obviously handle work in very different ways...

This is the header of a new program going out to the production floor..

O51103011(PROGRAM -51103011-STOW-VERT-ADJUST-07-18-19)
 
(51103P01 REV PT-10)
(CHASSIS, PIVOT, STOW, VERT, ADJ, TILT)
(SOW 511)
 
(MTL- 6061 ALUMINUM)
(STOCK SIZE 1-1/4" X 1-1/4" X 1.60" LG)

#3901=#970(PART COUNT LOAD)

(****PROGRAM RUN CONTROL*****)
#900=1 (RUNS B0 & B60 PLATES)
#901=0 (RUNS B120 & B180 PLATES)
#902=0 (RUNS B240 & B300 PLATES)
(***************************) 
() 
(SET #925 TO 1 TO RUN A SINGLE PART)
(SET #925 TO 0 TO ACTIVATE PROGRAM RUN CONTROL)
#925=1
IF[#925EQ1]THEN#900=0
IF[#925EQ1]THEN#901=0
IF[#925EQ1]THEN#902=0
()
()
(CHECKS TO MAKE SURE VALUES ARE ONLY 0 OR 1)
IF[#900LT0]GOTO99991
IF[#900GT1]GOTO99991
IF[#901LT0]GOTO99992
IF[#901GT1]GOTO99992
IF[#902LT0]GOTO99993
IF[#902GT1]GOTO99993
IF[#925LT0]GOTO99994
IF[#925GT1]GOTO99994
() 
(TOOLS)
(T34010375 3/8 ENDMILL / ROUGH OUTSIDE PARTIAL PROFILE / Z-1.01)
(T11010250 .250 EM/ROUGH DENTENT POCKET/Z-.400)
(T15010120 1/2 X .12R BULLNOSE ENDMILL / R-F SIDE CUT / Z-.173)
(T11020250 1/4 ENDMILL/FINISH OUTER PROFILE/Z-.160)
(T11010125 1/8 ENDMILL / ROUGH ANGLE CUT UNDER EARS/ Z-.435)
(T61010125 1/8 X 90 SPOT DRILL/SPOT 2-56  HOLE LOC/Z-.130)
(T67010089 .089 DRILL/TAP DRILL FOR 4-40 /Z-.300)
(T67010070 .070 DRILL / TAP DRILL FOR 2-56 TAP / Z-.250)
(T73010440 4-40 SPIRAL TAP / TAP 4-40 HOLE TO DEPTH / Z-.270)
(T73010256 2-56 SPIRAL FLUTE TAP / TAP 2-56 HOLE / Z-.195)
(T11010093 3/32 ENDMILL / REMACHINE SMALL CORNERS IN POCKET / Z-.192)
(T42010062 1/16 X .25 REACH /FINISH AROUND RAISED BOSS/Z-.223)
(T13010125 1/8 BALL ENDMILL/3D SWEEP POCKET BOSS/Z-.223)
(T23010250 1/4" CHAMFER MILL/.015 CHAMFER POCKET/Z-.075)
(T22010125 .500 DIA. X .125 DEEP CUT KEYSEAT-HTC 975760 /MILL EAR UNDERCUT/Z-.358)
(T33010090 1/8 X 90 DA CUTTER / CHAMFER UNDERSIDE OF BORE/Z-.120)


(***TOOL RECALL***)
(T11010250 1/4 ENDMILL / ROUGH STOCK / Z-.715)

(T11010188 3/16 ENDMILL / ROUGH EXCESS SIDE STOCK / Z-.920)
(T11020125 1/8 ENDMILL / ROUGH BOSSES / Z-.765)
(T11020188 3/16 ENDMILL / FINISH DATUM -A- FACE / Z-.870)

(***TOOL RECALL***
(T11010125 .125 EM/MILL RELIEF SLOT/Z-.782)

(***TOOL RECALL***)
(T13010125 1/8 BALL ENDMILL/3D FINISH BOSS RAD PROFILES/Z-.775)

(T13010093 .093 BALLMILL / MACHINE 3D SIDE CUT- LEFT SIDE / Z-.475)
(T13010062 1/16 BALL ENDMILL/3D RADS ABOVE 45/Z-.715)

(***TOOL RECALL***)
(T23010250 1/4" CHAMFER MILL/.050 CHAMFER BOSSES/Z-.775)

(T23010125 1/8" CHAMFER MILL/.025 CHAMFER BACK POCKET/Z-.830)
(T22020062 2.00 X .062 SAW / CUTOFF ALL PARTS / Z-.922)


(***OPERATION 1***) 
(G54.1P1 - B0. - PART - 01)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -2.6545 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P1X0.Y-5.6924Z-18.8667
 
 
(G54.1P2 - B90. - PART - 01)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -2.6545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P2X-9.0863Y-5.6924Z-27.214
 
 
(G54.1P3 - B270. - PART - 01)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -2.6545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P3X9.0863Y-5.6924Z-27.214
 
 
(G54.1P4 - B0. - PART - 02)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -5.0045 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P4X0.Y-8.0423Z-18.8667
 
 
(G54.1P5 - B90. - PART - 02)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -5.0045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P5X-9.0863Y-8.0423Z-27.214
 
 
(G54.1P6 - B270. - PART - 02)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -5.0045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P6X9.0863Y-8.0423Z-27.214
 
 
(G54.1P7 - B0. - PART - 03)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -6.7545 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P7X0.Y-9.7923Z-18.8667
 
 
(G54.1P8 - B90. - PART - 03)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -6.7545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P8X-9.0863Y-9.7923Z-27.214
 
 
(G54.1P9 - B270. - PART - 03)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -6.7545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P9X9.0863Y-9.7923Z-27.214
 
 
(G54.1P10 - B0. - PART - 04)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -9.1045 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P10X0.Y-12.1424Z-18.8667
 
 
(G54.1P11 - B90. - PART - 04)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -9.1045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P11X-9.0863Y-12.1424Z-27.214
 
 
(G54.1P12 - B270. - PART - 04)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -9.1045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P12X9.0863Y-12.1424Z-27.214
 
 
(G54.1P13 - B0. - PART - 05)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -10.8545 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P13X0.Y-13.8924Z-18.8667
 
 
(G54.1P14 - B90. - PART - 05)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -10.8545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P14X-9.0863Y-13.8924Z-27.214
 
 
(G54.1P15 - B270. - PART - 05)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -10.8545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P15X9.0863Y-13.8924Z-27.214
 
 
(G54.1P16 - B0. - PART - 06)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -13.2045 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P16X0.Y-16.2424Z-18.8667
 
 
(G54.1P17 - B90. - PART - 06)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -13.2045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P17X-9.0863Y-16.2424Z-27.214
 
 
(G54.1P18 - B270. - PART - 06)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -13.2045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P18X9.0863Y-16.2424Z-27.214
 
 
(G54.1P19 - B0. - PART - 07)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -14.9545 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P19X0.Y-17.9924Z-18.8667
 
 
(G54.1P20 - B90. - PART - 07)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -14.9545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P20X-9.0863Y-17.9924Z-27.214
 
 
(G54.1P21 - B270. - PART - 07)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -14.9545 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P21X9.0863Y-17.9924Z-27.214
 
 
(G54.1P22 - B0. - PART - 08)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -17.3045 FROM CENTER OF TOOLING BALL)
(Z0 +.875 FROM CENTER OF TOOLING BALL)
G90G10L20P22X0.Y-20.3423Z-18.8667
 
 
(G54.1P23 - B90. - PART - 08)
(X0 -.875 FROM CENTER OF TOOLING BALL)
(Y0 -17.3045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P23X-9.0863Y-20.3423Z-27.214
 
 
(G54.1P24 - B270. - PART - 08)
(X0 +.875 FROM CENTER OF TOOLING BALL)
(Y0 -17.3045 FROM CENTER OF TOOLING BALL)
(Z0 +.739 FROM CENTER OF TOOLING BALL)
G90G10L20P24X9.0863Y-20.3423Z-27.214
 

(**OPERATION 2***) 
(G54.1P41 - B60. - PART - 01)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -2.652 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P41X0.Y-5.6899Z-20.5767
 
 
(G54.1P42 - B25. - PART - 01)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -2.652 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P42X4.7223Y-5.6899Z-21.6073
 
 
(G54.1P43 - B90. - PART - 01)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -2.652 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P43X-4.1463Y-5.6899Z-21.2649
 
 
(G54.1P44 - B60. - PART - 02)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -4.580 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P44X0.Y-7.6179Z-20.5767
 
 
(G54.1P45 - B25. - PART - 02)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -4.580 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P45X4.7223Y-7.6179Z-21.6073
 
 
(G54.1P46 - B90. - PART - 02)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -4.5802 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P46X-4.1463Y-7.6179Z-21.2649
 
 
(G54.1P47 - B60. - PART - 03)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -6.508 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P47X0.Y-9.5459Z-20.5767
 
 
(G54.1P48 - B25. - PART - 03)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -6.508 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P48X4.7223Y-9.5459Z-21.6073
 
 
(G54.1P49 - B90. - PART - 03)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -6.508 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P49X-4.1463Y-9.5459Z-21.2649
 
 
(G54.1P50 - B60. - PART - 04)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -8.436 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P50X0.Y-11.4739Z-20.5767
 
 
(G54.1P51 - B25. - PART - 04)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -8.436 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P51X4.7223Y-11.4739Z-21.6073
 
 
(G54.1P52 - B90. - PART - 04)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -8.436 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P52X-4.1463Y-11.4739Z-21.2649
 
 
(G54.1P53 - B60. - PART - 05)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -10.364 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P53X0.Y-13.4019Z-20.5767
 
 
(G54.1P54 - B25. - PART - 05)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -10.364 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P54X4.7223Y-13.4019Z-21.6073
 
 
(G54.1P55 - B90. - PART - 05)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -10.364 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P55X-4.1463Y-13.4019Z-21.2649
 
 
(G54.1P56 - B60. - PART - 06)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -12.292 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P56X0.Y-15.3299Z-20.5767
 
 
(G54.1P57 - B25. - PART - 06)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -12.292 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P57X4.7223Y-15.3299Z-21.6073
 
 
(G54.1P58 - B90. - PART - 06)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -12.292 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P58X-4.1463Y-15.3299Z-21.2649
 
 
(G54.1P59 - B60. - PART - 07)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -14.220 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P59X0.Y-17.2579Z-20.5767
 
 
(G54.1P60 - B25. - PART - 07)
(X0 +.5681 FROM CENTER OF TOOLING BALL)
(Y0 -14.220 FROM CENTER OF TOOLING BALL)
(Z0 +.4386 FROM CENTER OF TOOLING BALL)
G90G10L20P60X4.7223Y-17.2579Z-21.6073
 
  
(G54.1P61 - B90. - PART - 07)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -14.220 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P61X-4.1463Y-17.2579Z-21.2649
 
 
(G54.1P62 - B60. - PART - 08)
(X0 .000 FROM CENTER OF TOOLING BALL)
(Y0 -16.148 FROM CENTER OF TOOLING BALL)
(Z0 +.165 FROM CENTER OF TOOLING BALL)
G90G10L20P62X0.Y-19.1859Z-20.5767
 
 
(G54.1P63 - B25. - PART - 08)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -16.148 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P63X4.7223Y-19.1859Z-21.6073
 
 
(G54.1P64 - B90. - PART - 08)
(X0 -.5046 FROM CENTER OF TOOLING BALL)
(Y0 -16.148 FROM CENTER OF TOOLING BALL)
(Z0 +.4429 FROM CENTER OF TOOLING BALL)
G90G10L20P64X-4.1463Y-19.1859Z-21.2649

Link to comment
Share on other sites

Thanks for the example. The way we handle it is front left is G54, back left is G55. As we bump along our grid the same 2 work offsets are updated in the program.

The setup guys were all born and raised here, this macro structure is all they know, they know it well though and can move thru a setup quite quickly and well.

I know there is more than one way to skin a cat with this and I am still the new guy here. After I gain a bit more of a foot hold I will introduce a few fresh ideas.

The other goal is if over the next year or so I can dial MasterCam in to their macros it will make it much easier for someone else to program efficiently.

I will look into the MPSubrep.

Thanks again

Link to comment
Share on other sites
On 8/2/2019 at 9:51 AM, bigprody said:

We run all of our machines using master Macro B programs with the tool paths loaded into them. I am trying to eliminate a lot of the cutting and pasting that we do now. It would be great if I could just program the one instance and the post would handle the rest.

Are the master Macro B programs routers for the tool paths? If so you may be able to integrate them into the Mastercam.  Our routers are integrated but each program operation can change the flow path through the router as needed for the process. If the master Macro B programs are fixed you should be able to copy them into the post and call each segment as needed thru canned text. It would be effectively be auto cutting and pasting.

Link to comment
Share on other sites

Thanks guys for all of the thoughts. Checking on this Monday morning so I will respond in order.

Pseudo code: 

Tool path:

O0002
( STEP DRILL G54 FRONT VISES)
G17
G0 G90 X40. Y0.
Z3.
G99 G73 X40. Y0. Z-31.17 R3. Q2.5 F2667.
G80
Z3.
G17
M99

O0102
( STEP DRILL G55 BACK VISES)
G17
G0 G90 X40. Y0.
Z3.
G99 G73 X-40. Y0. Z-31.17 R3. Q2.5 F2667.
G80
Z3.
G17
M99

The above examples are for the same operation, one for the front vise, one for the back. 2 separate programs, O0102 is rotated 180.

We reset the work offset like this.

G52 X-[#540*5]

and then just recall the sub.

 

No router, Brother D&T machines.

 

Coordinate rotation is defiantly an option. It will change slightly what they see on the floor but I might be able to get that to fly.

 

 

 

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