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:

kazmir44

Verified Members
  • Posts

    156
  • Joined

  • Last visited

Everything posted by kazmir44

  1. code: Crazy, can you do canned roughing cycles, C-axis toolpaths, Milling toolpaths and canned Okuma drilling toolpaths with your post? If so I'd like to send you a file you can post it. I'll take a look at the posted code and if its Ok I'd be more than happy to Purchase the post from you [Cheers] Ditto
  2. Thanks for the info on posting up. I'm trying to break out of "noob" status. I'll be sure to put it to good use. The holes we were drilling on this part were on separate bolt circles. The print was actually dimensioned from hole to hole instead of on bolt circles. If they were all on the same bolt circle there would be no X moves after the G181. Probably not the best example. But it was one of the more recent ones I have done. Well, when the K is set at .1 in the mill drilling cycles, the drill retracts to Z0. instead of to Z.1 before it indexes to the next C position. When the K is set to 0. it will retract to Z.1 When cross drilling it posts out an I instead of a K. And it reacts the same way. The I has to be 0. for the drill to retract to the ref. position. Does this seem right to you? Maybe there is something I am doing wrong. I would like to talk to someone using the same type of machine and take a look at the g-code they are using. Maybe my way is not the best way.??? But it does work. Anyway, I'll try to locate a good part file to use as a model and i'll make up a .z2g. Probably won't be until monday. Thanks again, Jake
  3. here is the drilling section _______________________________________________ # -------------------------------------------------------------------------- fmt X 2 initht_x #Initial height, mapped X fmt 2 initht_y #Initial height, mapped Y fmt Z 2 initht_z #Initial height, mapped Z fmt I 2 refht_x #Reference height, mapped X fmt 2 refht_y #Reference height, mapped Y fmt K 2 refht_z #Reference height, mapped Z fmt X 2 depth_x #Depth, mapped X fmt 2 depth_y #Depth, mapped Y fmt Z 2 depth_z #Depth, mapped Z fmt D 2 peck1 #First peck increment (positive) fmt 2 peck2 #Second or last peck (positive) fmt R 2 peckclr #Safety distance fmt 2 retr #Retract height fmt Q 2 shftdrl #Fine bore tool shift zdrl_x : 0 #Drill point, mapped X zdrl_y : 0 #Drill point, mapped Y zdrl_z : 0 #Drill point, mapped Z drillref : -1 #Select drill reference drlgsel : -1 #Drill Select Initialize no_g80 : 0 #Drill G80 code not output mdrl_dir : 0 #Mill drill direction for boolean, 0 = face, 1 = cross # -------------------------------------------------------------------------- pdrill0 #Pre-drill postblock call result = nwadrs(stre, dwell) if drillcyc = 3, drlgsel = fsg1 (-c1_ss) + drillcyc * 2 #Tap else, drlgsel = fsg2 (dwell) + drillcyc * 2 if abs(c1_cuttype) < 3, mdrl_dir = zero else, mdrl_dir = one if initht <> refht, drillref = 0 else, drillref = 1 x = xnci y = ynci z = initht xa = vequ (x) pshft_map pxyzcoutdrl initht_x = vequ (xabs) z = refht xa = vequ (x) pshft_map pxyzcoutdrl refht_x = vequ (xabs) z = depth xa = vequ (x) pshft_map pxyzcoutdrl depth_x = vequ (xabs) z = zdrl xa = vequ (x) pshft_map pxyzcoutdrl zdrl_x = vequ (xabs) znci = initht pdrlstrt #Drill Cycle start pcomread xa = vequ (xnci) pshft_map pxyzcout if mi4 <> 0, pbld, n, smspdl_clmp, e pbld, n, sgfeed, e feed = fr_pos if gcode <> 100, prv_dwell = zero @dwell pdrlend #Drill Cycle end pcom_movea prv_gcode = -1 if mi4 <> 0, pbld, n, smspdl_clmp, e pdrlref #Drill Cycle reference position *sgdrlref ldrill #Canned drill cycle, lathe lpeck #Canned peck drill cycle, lathe lchpbrk #Canned chip break cycle, lathe ltap #Canned tap cycle, lathe pdrlstrt gcode = zero zabs = refht_z pbld, n, psgcode, pzout zabs = depth_z c1_opcode = 104 #thread address pbld, n, "G32", pfzout, pffr, pnullstop if fmtrnd(dwell) <> zero, pdwell1 zabs = refht_z pswtchspin pbld, n, "G32", pfzout, *spindle_l if fmtrnd(dwell) <> zero, pdwell1 prv_gcode = -1 pbld, n, pnullstop pswtchspin if refht <> initht, pref_ne_i pbld, n, spindle_l c1_opcode = 81 #Restore opcode pdrlend lbore1 #Canned bore #1 cycle, lathe lbore2 #Canned bore #2 cycle, lathe lmisc1 #Canned misc #1 cycle, lathe lmisc2 #Canned misc #2 cycle, lathe pref_ne_i #Drill Cycle, refht <> initht, lathe gcode = zero zabs = initht_z pbld, n, psgcode, pfzout, ptapspindle, e ptapspindle #Tap Cycle, refht <> initht, lathe if drillcyc = 3, *spindle_l mdrill #Canned drill cycle, mill if no_g80 = one, mdrill_2 else, mdrill2 mdrill2 #Canned drill cycle, mill pdrlstrt if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z, pcout, *refht_z, pffr, dwell, e else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout, pcout, *refht_x, pffr, dwell, e pdrlend mpeck #Canned peck drill cycle, mill if no_g80 = one, mdrill_2 else, mpeck2 mpeck2 #Canned peck drill cycle, mill pdrlstrt if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z, pcout, *refht_z, pffr, dwell, *peck1, e else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout, pcout, *refht_x, pffr, dwell, *peck1, e pdrlend mchpbrk #Canned chip break cycle, mill if no_g80 = one, mdrill_2 else, mpeck2 mtap #Canned tap cycle, mill if no_g80 = one, mdrill_2 else, mtap2 mtap2 #Canned tap cycle, mill pdrlstrt if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z, pcout, *refht_z, pffr, e else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout, pcout, *refht_x, pffr, e pdrlend mbore1 #Canned bore #1 cycle, mill if no_g80 = one, mdrill_2 else, mdrill2 mbore2 #Canned bore #2 cycle, mill if no_g80 = one, mdrill_2 else, mdrill2 mmisc1 #Canned misc #1 cycle, mill if no_g80 = one, mdrill_2 else, mmisc12 mmisc12 #Canned misc #1 cycle, mill pdrlstrt if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z, pcout, *refht_z, *shftdrl, pffr, dwell, e else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout, pcout, *refht_x, *shftdrl, pffr, dwell, e pdrlend mmisc2 #Canned misc #2 cycle, mill mdrill_2 #Canned drill cycle repeat, mill gcode = 100 pdrlstrt if mdrl_dir = zero, pbld, n, pxout, pyout, depth_z, pcout, refht_z, dwell else, pbld, n, depth_x, pyout, pzout, pcout, refht_x, dwell pdrlend mpeck_2 #Canned peck drill cycle repeat, mill mdrill_2 mchpbrk_2 #Canned chip break cycle repeat, mill mdrill_2 mtap_2 #Canned tap cycle repeat, mill mdrill_2 mbore1_2 #Canned bore #1 cycle repeat, mill mdrill_2 mbore2_2 #Canned bore #2 cycle repeat, mill mdrill_2 mmisc1_2 #Canned misc #1 cycle repeat, mill mdrill_2 mmisc2_2 #Canned misc #2 cycle repeat, mill mdrill_2 pcanceldc #Cancel drill cycle #Filter cancel with cross null toolchanges if c1_cuttype = 3 & nextop > 999 & n1_gcode = 1000 & n1_nextop = 81, no_g80 = one else, pcanceldc2 pcanceldc2 #Cancel drill cycle if passed filter gcode = zero if posttype = 2, pbld, n, "G80", e else, pbld, n, "G180", e no_g80 = zero __________________________________________________ and the posted file __________________________________________________ $LIVE.MIN pheader 112 (LIVE.MIN) pheader 112 (PROVEN BY: DATE: 00/00/00 TIME: 00:00) pheader 112 (PROBLEMS: ) pheader 112 (COMMENTS: ) pheader 112 (SUGGESTIONS: ) pheader 112 (SPEICIAL FIXTURES: NONE ) pheader 112 (MACHINE NO. ) pheader 112 O0000 (LIVE ) msof 118 N01 msof mtlchg 118 ( *** ) msof pcomreadout 118 ( *** START OF MILLWORK *** ) msof pcomreadout 118 ( *** ) msof pcomreadout 118 ( DRILLING THRU IN 14 PLACES ) msof pcomreadout 118 ( TOOL - 1 OFFSET - 1 ) msof ptoolcomment 118 ( DRILL .281 HIPER DRILL ) msof ptoolcomment 118 G0 X100. Z0. M05 msof phomecall 118 M110 msof pcaxis_on_m2 118 G136 msof pcaxis_on_m2 118 T0101 M42 M13 M86 M8 msof mtlchg 118 G0 X7.624 Z.1 msof mtlchg 118 C90. msof mtlchg 118 G94 mdrill pdrlstrt 118 G181 Z-.7943 K.1 F20. mdrill mdrill2 118 X6.1244 C119.998 mdrill_2 120 X7.6252 C150.005 mdrill_2 122 X7.624 C180. mdrill_2 124 X6.124 mdrill_2 126 X7.6252 C209.995 mdrill_2 128 X6.1244 C240.002 mdrill_2 130 X7.624 C270. mdrill_2 132 X6.1244 C299.998 mdrill_2 134 X7.6252 C330.005 mdrill_2 136 X6.1249 C344.993 mdrill_2 138 C15.007 mdrill_2 140 X7.6252 C29.995 mdrill_2 142 X6.1244 C60.002 mdrill_2 144 G180 pcanceldc pcanceldc2 146 M9 ptoolend phomecall_ret 150 G0 X50. Z50. ptoolend phomecall_ret 150 M01 ptoolend phomecall_ret 150 ptoolend phomecall_ret 150 N05 mtlchg 256 ( ROUGHING IN THE C'BORES ) mtlchg pcomreadout 256 ( TOOL - 5 OFFSET - 5 ) mtlchg ptoolcomment 256 ( DRILL 10 MM DRILL .3937 DIA 3-3/8 LOF 67 PER. THD-7/16-20 IN A V40BR-20-275/V5 mtlchg ptoolcomment 256 G0 X100. Z0. M05 mtlchg phomecall 256 T0505 M41 M13 M86 M8 mtlchg 256 G0 X7.624 Z.1 mtlchg 256 C90. mtlchg 256 G181 Z-.33 K.1 F5. mdrill mdrill2 256 X6.1244 C119.998 mdrill_2 258 X7.6252 C150.005 mdrill_2 260 X7.624 C180. mdrill_2 262 X6.124 mdrill_2 264 X7.6252 C209.995 mdrill_2 266 X6.1244 C240.002 mdrill_2 268 X7.624 C270. mdrill_2 270 X6.1244 C299.998 mdrill_2 272 X7.6252 C330.005 mdrill_2 274 X6.1249 C344.993 mdrill_2 276 C15.007 mdrill_2 278 X7.6252 C29.995 mdrill_2 280 X6.1244 C60.002 mdrill_2 282 G180 pcanceldc pcanceldc2 284 M9 ptoolend phomecall_ret 288 G0 X50. Z50. ptoolend phomecall_ret 288 M01 ptoolend phomecall_ret 288 ptoolend phomecall_ret 288 N06 mtlchg 394 ( FINISHING THE C'BORES ) mtlchg pcomreadout 394 ( TOOL - 6 OFFSET - 6 ) mtlchg ptoolcomment 394 ( DRILL .406 2 FLUTE ENDMILL 1" L.O.C., TOOL OUT 1-1/4 IN A V40SF-038-275/V50SF- mtlchg ptoolcomment 394 G0 X100. Z0. M05 mtlchg phomecall 394 T0606 M41 M13 M87 M8 mtlchg 394 G0 X7.624 Z.1 mtlchg 394 C90. mtlchg 394 G181 Z-.255 K.1 F20.37 mdrill mdrill2 394 X6.1244 C119.998 mdrill_2 396 X7.6252 C150.005 mdrill_2 398 X7.624 C180. mdrill_2 400 X6.124 mdrill_2 402 X7.6252 C209.995 mdrill_2 404 X6.1244 C240.002 mdrill_2 406 X7.624 C270. mdrill_2 408 X6.1244 C299.998 mdrill_2 410 X7.6252 C330.005 mdrill_2 412 X6.1249 C344.993 mdrill_2 414 C15.007 mdrill_2 416 X7.6252 C29.995 mdrill_2 418 X6.1244 C60.002 mdrill_2 420 G180 pcanceldc pcanceldc2 422 M9 peof phomecall_ret 424 G0 X50. Z50. peof phomecall_ret 424 M12 peof 424 M109 peof pcaxis_off_l 424 T1100 peof 424 (LIVE.MIN) peof 424 M30 peof 424 % peof 424 peof 424 _________________________________________________ and this is how it looked after i edited it and sent it to the machine. _________________________________________________ ( *** ) ( *** START OF MILLWORK *** ) ( *** ) N5 ( DRILL .281 HIPER DRILL ) ( IN A STRAIGHT LYNDEX LIVE MILLING STATION ) ( DRILLING THRU IN 14 PLACES ) G0 X50. Z50. M05 M110 G136 T0101 SB=3000 M42 M13 G0 X7.624 Z.1 C90. M8 G94 G181 C90. X7.624 Z-.7943 K0. F20. X6.1244 C119.998 X7.6252 C150.005 X7.624 C180. X6.124 X7.6252 C209.995 X6.1244 C240.002 X7.624 C270. X6.1244 C299.998 X7.6252 C330.005 X6.1249 C344.993 C15.007 X7.6252 C29.995 X6.1244 C60.002 G180 G0 Z50. M9 M01 N6 ( 10 MM DRILL .3937 DIA ) ( IN A STRAIGHT LYNDEX LIVE MILLING STATION ) ( ROUGHING IN THE C'BORES ) G0 Z50. M05 T0505 SB=970 M41 M13 G0 X7.624 Z.1 C90. M8 G181 C90. X7.624 Z-.33 K0. F5. X6.1244 C119.998 X7.6252 C150.005 X7.624 C180. X6.124 X7.6252 C209.995 X6.1244 C240.002 X7.624 C270. X6.1244 C299.998 X7.6252 C330.005 X6.1249 C344.993 C15.007 X7.6252 C29.995 X6.1244 C60.002 G180 G0 Z50. M9 M01 N7 ( DRILL .406 2 FLUTE ENDMILL 1" L.O.C. ) ( IN A STRAIGHT LYNDEX LIVE MILLING STATION ) ( FINISHING THE C'BORES ) G0 Z50. M05 T0606 SB=2500 M42 M13 G0 X7.624 Z.1 C90. M8 G181 C90. X7.624 Z-.255 K0. F10. X6.1244 C119.998 X7.6252 C150.005 X7.624 C180. X6.124 X7.6252 C209.995 X6.1244 C240.002 X7.624 C270. X6.1244 C299.998 X7.6252 C330.005 X6.1249 C344.993 C15.007 X7.6252 C29.995 X6.1244 C60.002 G180 G0 Z50. M9 X50. M12 M109 _________________________________________________ as of right now i am using one post to post out the lathe work. and another post to post out the mill work. then i paste the two together. i am also having issues with the lathe work when using this post. that is why i post the lathe work with a "good post". in the future i would like to work out the issues with the lathe work on this post. but, right now i just want to fix the mill portion. BTW thanks for taking the time to look this over. your help is greatly appreciated jake
  4. I have been trying to modify the mplosp7c post. Which, so far, has turned out better than the one that I got from my reseller. The post supplied by my reseller does the same thing with the k value. I have been waiting for months for them to get me a post with no issues. I just don't have the time to sit around and wait. So what kind of information am i missing. I started with the mplosp7c post. Which is a generic okuma post supporting lap3 cycles and c-axis. Shouldn't this post have all of the information necessary?
  5. I have an okuma l470m with live tooling. OSP-P100. When I post out drill cycles in milling mode it posts out "G183 Z~ K.1 F~ D~" I need it to be "G183 C~ X~ Z~ K0. F~ D~" Need it to post out C and X values. And, I need the K to be 0. so it will retract to the ref. position. With the K set at .1 it only retracts to Z0., then indexes the C. It also posts out a different home position in milling mode than in lathe mode. Using version 9. Any help would be appreciated Thanks in advance Jake [ 01-11-2008, 07:40 AM: Message edited by: kazmir44 ]

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