Search the Community
Showing results for tags 'programable stop'.
-
To all, I have visited this form many times learning a lot about editing my post and a few dif things However I am stumped now. I Have programmed with mastercam for over 20 yrs and our latest version of MC is X3 because my boss wont let me upgrade to the newest ver but we really dont need it cause what we have works and have not bought a new machine in yrs until a few months ago. We bought a new Haas VF3 and I know there is a lot of ppl out there that dont like them but I love it for now. Anyway to my point, I have a good working post and have been moding it to fit my needs. I added a custom drill cycle to peck tap and Have got that to work how I like but I also want to add a Programmable stop so I dont have to manually edit the Program every time. Right now I just do a normal drill cycle in the location I want my stop to get this code: G0 G17 G40 G49 G80 G90 ( 3/8 DOWELL | ) T19 M6 G0 G90 G54 X-1.3939 Y.1561 S0 M5 G43 H19 Z2. G98 G81 Z-.5 R0. F110. G80 M5 G91 G28 Z0. Then I edit it to look like this: G0 G17 G40 G49 G80 G90 ( 3/8 DOWELL | ) T19 M6 G0 G90 G54 X-1.3939 Y.1561 G43 H19 Z2. G1 Z-.5 F110. M00 G91 G28 Z0. How can I add a custom drill cycle to post out what I edit? Like I said before I did add a peck tap cycle to the post like this: pdrlcst$ #Custom drill cycles 8 - 19 (user option) if drillcyc$ = 9, [ numpeck = peck2$, [ peck_cnt = numpeck initial_calc = (depth$ - tosz$) / peck_cnt strt_depth = (tosz$ + initial_calc) calc_depth = (depth$ - tosz$) calc_peck = calc_depth / numpeck #"(PECK tapping CYCLE)", e$ pcan1, pbld, n$, *sgdrlref, *sg84, pdrlxy, *strt_depth, pcout, prdrlout, *feed, strcantext, e$ count = peck_cnt ] pass = 1 WHILE count > 1, [ sub_depth = strt_depth + (calc_peck * pass) pbld, n$, *sg84, *sub_depth, *refht_a, e$ pass = pass + 1 count = count - 1 ] #pbld, n$, sg84, pfzout, *refht_a, e$ pcom_movea ] and it works like I want thanks to the sample of John Paris post I just had to change a little to get to work for me. My question is what would I use to output the code I need as shown above in my edited code, also where and how would I add it to the PST file to still use my peck tap and also a stop under the custom drill cycle section? Any Ideas? Thanks, Brian Pugh Mastercam x3
- 26 replies
-
- programable stop
- post processor
-
(and 1 more)
Tagged with:
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.