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:

LEAVE ON WALL WARNING


Recommended Posts

Hello everyone,
   I'm trying to write a warning for LEAVE STOCK ON WALL but I failed, please help and I truly appreciated.

Under...

# --------------------------------------------------------------------------
#Region Cutter Compensation Type
# --------------------------------------------------------------------------
# Cutter Compensation Type
scomp   : "COMPUTER"
scomp1  : "CONTROL COMP"
scomp2  : "WEAR COMP"
scomp3  : "REVERSE WEAR COMP"
scomp4  : "OFF"
scomp_type : ""

fstrsel scomp comp_type scomp_type 5 -1
#EndRegion

# --------------------------------------------------------------------------
#Region Pop-up common toolchange errors
ptlchg_errorpop #Pop-up common toolchange errors
    if comp_type = 4 & (opcode$ =4 & stock <> 0), [if mprint(sMultiPasses, 2) = 2, exitpost$]
#EndRegion

# --------------------------------------------------------------------------
#Region CUSTOMED STRING
sMultiPasses: 0
#EndRegion
# --------------------------------------------------------------------------

#Region sMultiPasses                                                                                           
sMultiPasses = "CUT# "+sToolPathNumber+", You CANNOT have COMPENSATION OFF and LEAVING ON WALL AT THE SAME TIME"
               +no2asc(13)+"TOOL#"
               +no2str(t$)+" ("+no2str(tldia$)+", "+s20001+")"
               +no2asc(13)
               +no2asc(13)+"Feed Rate: "+no2str(feed)+ " ***** #Teeth x Chip Load x RPM"
               +no2asc(13)+"RPM: "+no2str(speed)+" ***** (SFM x 3.82) / Tool Dia"
               +no2asc(13)+"SFM: "+no2str(sfm)+" ***** .26 x RPM x Tool Dia"
               +no2asc(13)+"ChipLoad: "+no2str(fpt)+" ***** Feed Rate (RPM x Flutes)"
               +no2asc(13)+"Do these following steps to fix it:"
               +no2asc(13)+"Step 1 = click on PARAMETERS"
               +no2asc(13)+"Step 2 = click on CUT PARAMETERS tap"
               +no2asc(13)+"Step 3 = look for COMPENSATION TYPE"
               +no2asc(13)+"Step 4 = change from COMPENSATION TYPE to a DESIRABLE one if needed"
               +no2asc(13)
               +no2asc(13)
               +no2asc(13)+"THIS IS SERIOUS STUFF, IT MUST BE FIXED ASAP!!!"
               +no2asc(13)
               +no2asc(13)+"Click OK to go back to MASTERCAM to fix this issue NOW!!!"
#EndRegion
Link to comment
Share on other sites

I did something similar to this awhile back. I remember thinking I did something that could have been done better but I don't remember what it is right now. Below is the code I added to my post. It doesn't say Leave stock. But at the beginning of each toolpath it lists the stock left that is programmed into mastercam. You can adjust from there. 

Here is what the beginning of my toolpaths look like.

N1( 1/2 FLAT ENDMILL  - T1 - D1 - H1 - .5)
(Control) (XY Stock .005) (Z Stock 0.)

 

In the variables section add below

fmt "XY Stock " 2 xystockwdg
fmt "Z Stock " 2 zstockwdg

 

Under psof section add below

 

       if opcode$ < 3 | opcode$ > 3 & opcode$ < 14 | opcode$ > 17,
        [
         rd_prm_op_no$ = op_id$
         rd_params$
         "(", *scomp_type, ") (", *xystockwdg, ") (", *zstockwdg, ")", e$
        ]

 

Under pparameter add below

      if prmcode$ = 10010, xystockwdg = rpar(sparameter$, 1)
      if prmcode$ = 10068, zstockwdg = rpar(sparameter$, 1)
  • Like 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...