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:

Error check post challenge


Recommended Posts

First off, I don't even know if this is possible but I would like to find out.

 

I want to put error checking in my post for the output of a G40 - G42 in a G2/G3. To make it just a little more helpful I want it to tell me in the error file what operation the error is in.

 

pcir$        # Circular interpolation                                2
            sgplane, sgcode, pccomp, x$, y$, z$, parcrad, pfr, pcan,e$

 

Here I have a pcan and a pccomp.

 

If pccomp or pcan in activated in this line I want it to output an error but not shut down the post. I want it to also tell me the operation number (example op 12 contour 2d) that has the error. Is this possible?

Link to comment
Share on other sites

I could switch to that post, but there are a lot of things I would have to change, I am working on making the changes but wanted to know if someone could help me edit the post I already have setup for this machine. I'll look at that post and see if I can figure it out.

Link to comment
Share on other sites

The generic post from IHS is miles ahead of the post that comes with a standard install.  It is well worth the time to rebuild your post using IHS mpmaster / mplmaster.

 

 

Define this:     sOpSeqNo     : ""    #Operation manager displayed operation number

 

Add to pparameter$:     if prmcode$ = 15240, sOpSeqNo = sparameter$

 

Add this error message:   scompwarn = "OPERATION " + sOpSeqNo + ": WARNING - CUTTER COMP APPLIED ON ARC MOVE"

 

Add a post block:

 

pcompwarn       #Cutter Compensation Check
      if prv_cc_pos$ <> cc_pos$ & cc_pos$ & gcode$ > 1,
        [
        if compwarnflg = 0, result = mprint(scompwarn)
        spaces$ = 0
        pspc, *sm00, " ", scomm_str, scompwarn, scomm_end, e$
        spaces$ = sav_spc
        compwarnflg = 1
        ]

 

Add to pcirout:

 

       if not(arccomp), pcompwarn

  • Like 1
Link to comment
Share on other sites

The generic post from IHS is miles ahead of the post that comes with a standard install.  It is well worth the time to rebuild your post using IHS mpmaster / mplmaster.

 

 

Define this:     sOpSeqNo     : ""    #Operation manager displayed operation number

 

Add to pparameter$:     if prmcode$ = 15240, sOpSeqNo = sparameter$

 

Add this error message:   scompwarn = "OPERATION " + sOpSeqNo + ": WARNING - CUTTER COMP APPLIED ON ARC MOVE"

 

Add a post block:

 

pcompwarn       #Cutter Compensation Check

      if prv_cc_pos$ <> cc_pos$ & cc_pos$ & gcode$ > 1,

        [

        if compwarnflg = 0, result = mprint(scompwarn)

        spaces$ = 0

        pspc, *sm00, " ", scomm_str, scompwarn, scomm_end, e$

        spaces$ = sav_spc

        compwarnflg = 1

        ]

 

Add to pcirout:

 

       if not(arccomp), pcompwarn

 

Hi BD41612,

   I have the same issue and I put a message warning.  So... when does this warning message will pop up?  I'm confused between the CIRCLE MILL and a CONTOUR toolpath which I use to cut a circle.

 

Thank you.

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