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:

Need help editing my Generic Lathe Post (MCAM 2020)


Recommended Posts

Hello all!

Having a bit of trouble since my company upgraded MasterCam earlier this year.

I'm doing programs strictly for our lathe department right now so this is geared towards that.

When I post my tool paths a couple things are happening that I've never had happen before.

1.) When doing any "roughing" cycles (i.e. the standard Lathe Rough cycle) my posted code has duplicate feed rates on every G1 line. It's always the same feed rate so I have to go in and edit it out by hand. It's annoying, but I use Cimco Edit to quickly delete duplicates in a specified selection.

2.) Any other type of Lathe Tool Path OTHER than the standard Lathe Rough cycle will not post an M8 code for coolant. It turns my coolant off at the end, but never on.

Any help would be appreciated!

Link to comment
Share on other sites
3 hours ago, JonWayneSea said:

Hello all!

Having a bit of trouble since my company upgraded MasterCam earlier this year.

I'm doing programs strictly for our lathe department right now so this is geared towards that.

When I post my tool paths a couple things are happening that I've never had happen before.

1.) When doing any "roughing" cycles (i.e. the standard Lathe Rough cycle) my posted code has duplicate feed rates on every G1 line. It's always the same feed rate so I have to go in and edit it out by hand. It's annoying, but I use Cimco Edit to quickly delete duplicates in a specified selection.

2.) Any other type of Lathe Tool Path OTHER than the standard Lathe Rough cycle will not post an M8 code for coolant. It turns my coolant off at the end, but never on.

Any help would be appreciated!

Pu together a .z2g and someone can assist. 

  • Like 1
Link to comment
Share on other sites

Sorry for the late response.

Attached is an example. If you post the code I think you'll see what I mean.

I've also attached the NC code and my "edited" code so you can see what I'd LIKE MasterCam to post.

I'm aware of the "blank tools" and some of the things I've tweaked for my posted code.

This issue is mainly the coolant and duplicate feed rate thing.

If anyone has any other suggestions to get the code to post like I've "edited" please let me know!

Thanks for the responses!

LATHE SAMPLE (UNEDITED).NC

LATHE SAMPLE.NC

LATHE SAMPLE.ZIP

Link to comment
Share on other sites
26 minutes ago, JonWayneSea said:

Sorry for the late response.

Attached is an example. If you post the code I think you'll see what I mean.

I've also attached the NC code and my "edited" code so you can see what I'd LIKE MasterCam to post.

I'm aware of the "blank tools" and some of the things I've tweaked for my posted code.

This issue is mainly the coolant and duplicate feed rate thing.

If anyone has any other suggestions to get the code to post like I've "edited" please let me know!

Thanks for the responses!

LATHE SAMPLE (UNEDITED).NC

LATHE SAMPLE.NC

LATHE SAMPLE.ZIP

That is more than a simple post change. That will take a little bit of time to make happen. Have you tired reaching out to your reseller and seeing what they say?

Link to comment
Share on other sites
3 minutes ago, crazy^millman said:

That is more than a simple post change. That will take a little bit of time to make happen. Have you tired reaching out to your reseller and seeing what they say?

Yes. We have. It's not a straight answer and they have attempted to make us posts for a few machines and they were actually worse than the "default" MCAM posts.

If you can help me with the coolant and feedrate issue... That's about all I need.

Link to comment
Share on other sites

Might look at MPLMASTER on this web site is has a lot to offer for free.

To fix the coolant that is easy:

ltlchg$          #Toolchange, lathe
      toolchng = one
      gcode$ = zero
      copy_x = vequ(x$)
      pcc_capture   #Capture LCC ends, stop output RLCC
      c_rcc_setup$  #Setup LCC on first 60000
      plcc_lead_begin  #Save original in sav_xa and shift copy_x for LCC comp.
      pcom_moveb    #Get machine position, set inc. from c1_xh
      c_mmlt$       #Position multi-tool sub, sets inc. current if G54...
      ptoolcomment
      comment$
      if home_type < two, #Toolchange G50/home/reference position
        [
        sav_xh = vequ(copy_x)
        sav_absinc = absinc$
        absinc$ = zero
        pmap_home   #Get home position, xabs
        ps_inc_calc #Set start position, not incremental
        #Toolchange home position
        if home_type = one,
          pbld, n$, *sgcode, pfxout, pfyout, pfzout, e$
        else,
          [
          #Toolchange g50 position
          pbld, n$, *sg28ref, "U0.", [if y_axis_mch, "V0."], "W0.", e$
          toolno = t$ * 100 + zero
          if home_type = m_one, pbld, n$, *sgcode, *toolno, e$
          else, pbld, n$, *sg50, pfxout, pfyout, pfzout, e$
          ]
        pe_inc_calc #Update previous
        absinc$ = sav_absinc
        copy_x = vequ(sav_xh)
        ]
      toolno = t$ * 100 + tloffno$
      pbld, n$, *sgcode, *toolno, e$
      pbld, n$, pfsgplane, e$
      pcaxis_off_l  #Postblock for lathe transition
      pcom_moveb    #Reset machine position, set inc. from last position
      pcan
      pspindle
      if opcode$ <> 106 | (opcode$ = 106 & suppress_point_spindle = no$),  #Do not enable spindle for point toolpath
        [
        if css_actv$,
          [
          if css_start_rpm, prpm  #Direct RPM startup for programmed CSS
          else, pcssg50, pcss  #NO RPM start - just output the CSS
          ]
        else, prpm  #Direct RPM was programmed
        ]
      sav_absinc = absinc$
      if home_type > one, absinc$ = zero
      pcan1, pbld, n$, psccomp, *sgcode, pwcs, pfxout, pyout, pfzout,
        pscool, strcantext, e$

See the pscool that is what outputs the coolant.

Remove it and should output at the Rapid line. You don't like there then remove pscool from prapidout section of the post.

On the feedrate. Check the LMD and see if there is a switch turned on to force feedrate on every line. the post is using pfr correctly and not pffr that forces feedrate so something else has to be doing it.

The header stuff is easy. Again get MPLMASTER and it has just about everything you need to learn from.

  • Like 1
Link to comment
Share on other sites
  • 3 weeks later...

Just some friendly advice - no pun intended.

This should have been two separate questions.

The title should reflect your question so that your post is visible, or else people have no idea what it's about.

1) "How to Remove Duplicate Feedrates During Roughing Cycles - 2020 Generic Lathe"

2) "How to Control the Placement of the M8 Command During Roughing Cycles - 2020 Generic Lathe"

  • Thanks 1
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...