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:

Chris Wichlaz @ lpmachine

Verified Members
  • Posts

    52
  • Joined

  • Last visited

    Never

Chris Wichlaz @ lpmachine's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. i can't believe I asked this question when it was sitting in front of my face the entire time. Thanks Chris
  2. Good Afternoon all In Mpmaster for X3 how do I get the sub programs to start counting from the program # +1 example O1234 M98P1235 M98P1236 sub programs O1235 O1236 code: psub_call_s$ #Call to sub level result = nwadrs(strp, sub_prg_no$) sub_prg_no$ = sub_prg_no$ + progno$ #Add sub number offset if sav_progno = sub_prg_no$, result = mprint(sprgnerror) pbld, n$, "M98", *sub_prg_no$, e$ this comes from mpmaster and has been modified already to drop the +1000 but I need to get it to be progno$ + 1 and to count the subs from there
  3. bump anybody else have an idea. I can send the file in the morning if somebody wants to look at it Thanks CHris
  4. Tony thank you for the response I added an old post from x2 to the machine def and it works fine (this post was updated from v9) The machine def is definded with a rotary axis. I have done a lot of B axis positioning with this post just never a axis sub. Is there an area that I should eb looking at in MPmaster? Is this a Machine def problem still?
  5. When I post a file using Axis Substitue X axis in X3 MU1 using X3mpmaster i get code: N1 T112 M06 ( 1/16 FLAT ENDMILL) M79 (UNLOCK) G00 G17 G90 G540 B0. S9168 M03 M31 X0. Y0. G43 H112 Z0. M08 G94 G01 F36.67 G41 D112 F73.34 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G41 D112 G40 G08 P0 M09 M05 G00 M09 G80 G90 G103 Z.01 J99. G91 G00 G28 Z0. M79 (UNLOCK) G28 X0. Y0. B0. M78 (LOCK) G90 M30 % if I use a version 9 post with the same machine def i get the correcet code code: T112 M6 G0 G90 G54 X0. Y-.5741 B180.113 S9168 M3 G43 H112 Z1.71 M8 Z.725 G1 Z.585 F36.67 G41 D112 Y-.5671 B179.464 F73.34 Y-.5638 B179.265 Y-.56 B179.196 Y-.4988 Y-.4928 B179.158 F461.38 Y-.4895 B179.128 F668.11 Y-.4868 B179.095 F896.92 Y-.4844 B179.058 F1118.35 Y-.4821 B179.016 F1328.49 is there something that I'm missing? I just don't know where to look to fix this one. I tried a fresh copy of mpmaster and I got the same G41G40 with no Y or B moves in it Thank you in advance Chris
  6. We use a lot of Mitsubishi Carbide VP10RT in the lathe dept doing 300 series stainless and vardex V12K for aluminium work
  7. try unchecking "update Cplane and Tplane when changing Gview" in Settings, Config, Cad settings. THis was suggested by John Paris a week or two ago. Chris
  8. John and Simtech thank you for the responce. Sorry it took me so ling to get back to you guy's. Thank you John - I have the fbuf set to 5 1 1 0 and have opened the opened the *.tx5 file and have this code: 1001. 99999. -99999. 1002. -0.5 2. 1002. -0.1 0.1 0. -0.5 2. I did fix the rbuf line per Simtech suggestion code: size5=rbuf(5,1) now reads size5=rbuf(5,0) code: pwritbuf5 # Write Buffer 1 b5_gcode = gcode$ b5_zmin = z_min$ b5_zmax = z_max$ b5_gcode = wbuf(5, wc5) preadbuf5 # Read Buffer 1 size5 = rbuf(5,0) b5_gcode = 1000 min_depth = 99999 max_depth = -99999 while rc5 <= size5 & b5_gcode = 1000, [ if rc5 <= size5, b5_gcode = rbuf(5,rc5) if b5_zmin < min_depth, min_depth = b5_zmin if b5_zmax > max_depth, max_depth = b5_zmax ] question #1 would be the wc5 : 1 be changed to wc5 :-1 and the the while statement would be changed from "while rc5 <= size5 & b5_gcode = 1000," to this "while rc5 < wc5," Thanks again for the help. If need be I can email the file over. Chris
  9. This is a zmin/zmax post tooltable post question. I'm using buffer #5 as per the orignal mpmaster and what i'm getting when I added min_depth and max_depth to the code: ( T4 - 3/8 FLAT ENDMILL - H4 - D4 - D0.3750 " - CONTOUR.... Z99999. Z-99999. ) <= this is where the problem is ( T2 - 3/32 FLAT ENDMILL - H2 - D2 - D0.0938 " - CONTOUR.... Z-.5 Z2. ) <= this s/b tool 4 ( T3 - 1/2 FLAT ENDMILL - H3 - D3 - D0.5000 " - CONTOUR.... Z-.1 Z.1 ) <= this s/b tool 2 Question - in the file the buffer outputs can I skip the first line? code: 1001. 99999. -99999. <= skip this line 1002. -0.5 2. <= this be tool 4 1002. -0.1 0.1 <= this be tool 2 0. -0.5 2. <= this be tool 3 The min/max in the program is good code: T4 M06 ( 3/8 FLAT ENDMILL) N130 (MAX - Z2.) N140 (MIN - Z-.5) code: # -------------------------------------------------------------------------- # Tooltable Output # -------------------------------------------------------------------------- pwrtt$ # Write tool table, scans entire file, null tools are negative if rotaxis$ > 0 | rotary_type$ > 0 | mill5$ <> 0, [ sav_rot_on_x = rot_on_x output_z = no$ ] if vmc = 0 & tlplnno$ <> 2, sav_rot_on_x = rot_on_x if vmc = 1 & tlplnno$ > 1, sav_rot_on_x = rot_on_x #sav_rot_on_x = rot_on_x #Uncomment this line to output rotary axis value even when it's not used t$ = wbuf(4,wc4) #Buffers out tool number values if tool_table = 1, ptooltable if tool_table = 2, ppredtool if tool_table = 3, pmetatool if t$ >= zero, tcnt = tcnt + one ptravel pwritbuf5 ptooltable # Write tool table, scans entire file, null tools are negative tnote = t$ toffnote = tloffno$ tlngnote = tlngno$ min_depth = z_min$ max_depth = z_max$ spaces$=1 if t$ >= zero, [ if output_z = yes$, if tcr$>0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", *tcr$, punit, " - " popnote, *min_depth, *max_depth, scomm_end, e$ if tcr$=0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - " popnote, *min_depth, *max_depth, scomm_end, e$ ] # -------------------------------------------------------------------------- # Buffer 5 Read / Write Routines # -------------------------------------------------------------------------- pwritbuf5 # Write Buffer 1 b5_gcode = gcode$ b5_zmin = z_min$ b5_zmax = z_max$ b5_gcode = wbuf(5, wc5) preadbuf5 # Read Buffer 1 size5 = rbuf(5,1) b5_gcode = 1000 min_depth = 99999 max_depth = -99999 while rc5 <= size5 & b5_gcode = 1000, [ if rc5 <= size5, b5_gcode = rbuf(5,rc5) if b5_zmin < min_depth, min_depth = b5_zmin if b5_zmax > max_depth, max_depth = b5_zmax ] fmt Z 2 min_depth # Tool z_min fmt Z 2 max_depth # Tool z_max I can get any additional info if required. Thank you for any and all help
  10. set your clearance to .1 absolute and DO NOT check the box that says to use clearance at the start and end of the operation. What this will do is output a G98 in your post. So you will see the machine stop at.1 above your part then in the G81 command it would drop into the pocket drill. Once it is done drill it will come out of the pocket and return to the inital plane that was set the z move before the G81. Try this I think my memory is correct. I would back up the Z run a couple of holes first then dive in to the part HTH Chris
  11. look under coordinates under parameters in your operation in the operation menu hth

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