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:

Tool comment logic not working?


Recommended Posts

I'm trying to setup my tool comments, both in the tool table at the beginning of the program, and at tool changes, to only output "D" offset numbers when I have selected "wear" comp.

 

This is the logic from the Generic Haas 4x.pst, but it doesn't seem to be working:

 

ptooltable      #Tooltable output
      
      sopen_prn, no_spc$, *t$, sdelimiter, pstrtool, sdelimiter, *tlngno$,
        [if comp_type > 0 & comp_type < 4, sdelimiter, *tloffno$],
        #[if xy_stock <> 0 | z_stock <> 0, sdelimiter, *xy_stock, sdelimiter, *z_stock],
        no_spc$, sclose_prn, e$

      xy_stock = 0  #Reset stock to leave values
      z_stock = 0   #Reset stock to leave values

 

It has this logic at the tool table and tool change sections. And I'm not getting "D" numbers on the operations that I have wear comp selected. Even if I switch to computer, or control, still no D number.

Link to comment
Share on other sites

Looks like when you commented out the default line, you placed a comment in the middle of the command line.

Try changing that to

 

      sopen_prn, no_spc$, *t$, sdelimiter, pstrtool, sdelimiter, *tlngno$,
        [if comp_type > 0 & comp_type < 4, sdelimiter, *tloffno$],

         no_spc$, sclose_prn, e$

        #[if xy_stock <> 0 | z_stock <> 0, sdelimiter, *xy_stock, sdelimiter, *z_stock],
        #no_spc$, sclose_prn, e$

Link to comment
Share on other sites

Do you have this switch enabled?

tool_info    : 2     #Output tooltable information?
                     #0 = Off - Do not output any tool comments or tooltable
                     #1 = Tool comments only
                     #2 = Tooltable in header - no tool comments at T/C
                     #3 = Tooltable in header - with tool comments at T/C
Link to comment
Share on other sites

OK,

 

Examining further, it looks like it is not picking up that I have wear comp selected in a "pocket" operation. I put a contour op before the pocket, and a circle mill after the pocket and all the tool comments came out perfect, except for the pocket:

 

(T03 | 1/2 FIN EM 4FL 1.0 LOC | H03 | D43)
(T01 | 1/2 FIN EM 4FL 1.0 LOC | H01)                               <---------this one is the pocket op, with wear comp selected in "finish" tab, but it doesn't post out D number
(T02 | 1/8 FIN EM 4FL .375 LOC | H02 | D42)

 

What is I approach it another way. such as make it post out D number always, except when cutter comp = 4 "off"

would there be a way to write that?

Link to comment
Share on other sites

OK,

 

Examining further, it looks like it is not picking up that I have wear comp selected in a "pocket" operation. I put a contour op before the pocket, and a circle mill after the pocket and all the tool comments came out perfect, except for the pocket:

 

(T03 | 1/2 FIN EM 4FL 1.0 LOC | H03 | D43)

(T01 | 1/2 FIN EM 4FL 1.0 LOC | H01)                               <---------this one is the pocket op, with wear comp selected in "finish" tab, but it doesn't post out D number

(T02 | 1/8 FIN EM 4FL .375 LOC | H02 | D42)

 

What is I approach it another way. such as make it post out D number always, except when cutter comp = 4 "off"

would there be a way to write that?

 

I think doing it like this should give you what you want.

 

[if comp_type < 4, sdelimiter, *tloffno$], no_spc$, sclose_prn, e$

 

If the comp type = 4 then it should not output, but if it is less than 4 then it should always output. Issue will be 0 = computer since now you will get it when computer is used even when you are not using it. That is what the original logic statement looked at. Was it greater than Zero and Less than 4 for the Value then output. Now you have less than 4 so if you use computer you will get when you may not want it. I suspect the NCI is not outputting the information needed when using a pocket routine. I would shoot and email to posts @ Mastercam and see what they have to say.

Link to comment
Share on other sites

I think doing it like this should give you what you want.

 

[if comp_type < 4, sdelimiter, *tloffno$], no_spc$, sclose_prn, e$

 

If the comp type = 4 then it should not output, but if it is less than 4 then it should always output. Issue will be 0 = computer since now you will get it when computer is used even when you are not using it. That is what the original logic statement looked at. Was it greater than Zero and Less than 4 for the Value then output. Now you have less than 4 so if you use computer you will get when you may not want it. I suspect the NCI is not outputting the information needed when using a pocket routine. I would shoot and email to posts @ Mastercam and see what they have to say.

That seems to have done it for the tool table, but not it is not showing up at the tool change comments

I never use computer comp so that issue shouldn't come up.

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