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:

lathe thread not outputing correctly


steveo25
 Share

Recommended Posts

I have a Yang lathe at my shop with a fanuc controller. Its just a standard single turret lathe. The thread G76 cycle mastercam is giving me looks like this.

 

(YANG LATHE - FANUC-OT CONTROL)
(ojkm - 12/07/10 1:50 PM)
(TOOL - 4 OFFSET - 4)
(T0404 O.D. 8 T.P.I)
N100 G0 X20. Z15. T0404 M8
N110 G99
N120 M39
N130 G97 S535 M03
N140 G0 X2.585 Z.2
N150 G76 P000060 Q20 R0.<-----shouldn't be there
N160 G76 X2.19 Z-2.625 P1475 Q100 R0. E.25<----should be G76 X2.19 Z-2.625 K1475 D100 E.25 P1
N170 M9
N180 G0 X20. Z15.
N190 M05
N200 M30

 

And I want it to look like this

 

O0297(ojkm)
(YANG LATHE - FANUC-OT CONTROL)
(ojkm - 12/07/10 1:50 PM)
(TOOL - 4 OFFSET - 4)
(T0404 O.D. 8 T.P.I)
N100 G0 X20. Z15. T0404 M8
N110 G99
N120 M39
N130 G97 S535 M03
N140 G0 X2.585 Z.2
N160 G76 X2.19 Z-2.625 K1475 D100 E.25 P1
N170 M9
N180 G0 X20. Z15.
N190 M05
N200 M30

 

Does it have something to do with this post block?

 

#Setup for old or new style canned cycles
     if old_new_sw = one,
       [
       result = newfs (16, thddepth$)
       result = newfs (16, thdfirst$)
       ]
     else,
       [
       result = nwadrs (stra, thdang)
       result = nwadrs (stri, thdrdlt)
       result = nwadrs (strk, thddepth$)
       result = nwadrs (strd, thdfirst$)
       #Lathe canned cycle old style conversion
       result = nwadrs (strd, depthcc)
       result = nwadrs (strd, ncutscc)
       result = nwadrs (stri, g73x)
       result = nwadrs (strk, g73z)
       result = nwadrs (stri, grvspcc)
       result = nwadrs (strk, grvdpcc)
       ]
     result = nwadrs(str_cax_abs, cabs)
     result = nwadrs(str_cax_inc, cinc)
     result = nwadrs(str_index, indx_out)
     sc_minus = str_cax_abs + sc_minus
     breakarcss = breakarcs$

 

# Thread output
# --------------------------------------------------------------------------
fmt  P  16   thddepth$    #Thread height absolute
fmt  Q  16   thdfirst$    #First depth cut in thread 
fmt  Q  16   thdlast$     #Last depth cut in thread
fmt  R  2   thdfinish$   #G76 thread finish allowance
fmt  R  3   thdrdlt     #Thread R delta G92 and G76
fmt  U  3   thd_dirx    #Incremental X move for G76 mult starts
fmt  W  3   thd_dirz    #Incremental Z move for G76 mult starts
fmt  P  5   nspring$     #Number of spring cuts
fmt     5   thdpull     #G76 thread pull off
fmt     5   thdang      #G76 threading angle

 

I am running MCX2.

Thanks for any input

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