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:

mpmaster problem


Jmick
 Share

Recommended Posts

I think I remember what I had to do to stop this constant G94 output.

I'll double check in the morning, but I'm pretty sure this is what I had to do.

 

ptlchg_com      #Tool change common blocks  #Original postblock
     if force_output | sof,
       [
       result = force(ipr_type,ipr_type)
       result = force(absinc$,absinc$)
       result = force(plane$,plane$)
       ]
     pcom_moveb



ptlchg_com      #Tool change common blocks  #Edited postblock
     #if force_output | sof,
     if force_output,
       [
       #result = force(ipr_type,ipr_type)
       result = force(absinc$,absinc$)
       result = force(plane$,plane$)
       ]
     pcom_moveb

 

That should get rid of all but the first G94. So we'll output that in our safety line.

 

psof$            #Start of file for non-zero tool number
     ptravel
     pwritbuf5
     pcuttype
     toolchng = one
     if ntools$ = one,
       [
       #skip single tool outputs, stagetool must be on
       #stagetool = m_one
       !next_tool$
       ]
     tooltotal = rbuf(4,0)  #Reads total tool and null tool changes
     if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)
     else, nexttool = first_tool$

     if tool_table = 2, ppredstck
     if tool_table = 3, pmetastck

     spaces$=0
     if output_z = yes$ & tcnt > 1,
       [
       scomm_str, "OVERALL MAX - ", *z_tmax, scomm_end, e$
       scomm_str, "OVERALL MIN - ", *z_tmin, scomm_end, e$
       ]
     spaces$=sav_spc

     if plane$ < 0 | opcode$ = 3 | opcode$ = 16, plane$ = 0
     #pbld, n$, *sgcode, *sgplane, *smetric, "G40", "G80", *sgabsinc, e$          # Comment this out
                                                                                  # Add these two lines
     ipr_type = zero		                                                   # <--------------				
     pbld, n$, *sgfeed, *sgcode, *sgplane, *smetric, "G40", "G80", *sgabsinc, e$  # <-- Safety line (set modals)

     sav_absinc = absinc$
     absinc$ = one
     if wcstype <= one, #Work coordinate system
       [
       pfbld, n$, sgabsinc, *sg28, "Z0.", e$
       pfbld, n$, *sg28, "X0.", "Y0.", e$
       pfbld, n$, "G92", *xh$, *yh$, *zh$, e$
       ]
     else,
       [
       pbld, n$, sgabsinc, *sg28, "Z0.", e$
       ]
     absinc$ = sav_absinc
     sav_mi9 = mi9$
     sav_workofs = workofs$
     if sav_workofs < 0, sav_workofs = 0
     ptlchg_com
     sof = 0

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