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:

Getting the toolpath group name into the NC program


Recommended Posts

There used to be a function called strtpgroupname which would get the name of the Toolpath Group out into the NC program. (actually... now that I think of it I'm not sure what would have happened if you had multiple toolpath groups!)

This function does not appear to work anymore - I updated an old X3 post and the customised toolpath group name (e.g. "Counter top") just comes out as "Toolpath Group-1".

Is there still a way of doing this?

  • Like 1
Link to comment
Share on other sites

Check for parameter number changes, especially with a "source" post that old. Grab an mpmaster of the version you want to update to and check the pparameter$ block, or get the latest documentation for post editing. It is still there in X9, haven't explored 2017 / 2018 yet.

Link to comment
Share on other sites

I am looking for the parameter for the toolpath group as well as the machine group parameter. I am going through the reference guide right now and haven't found anything doing a electronic search. I will be going through the 296 pages in the "Operations Parameter Referance" to find them.  I will post an update on what I find.

Link to comment
Share on other sites

There are settings in the Control Definition (checkboxes) that control comment output to the NCI file. Make sure that the output is enabled. The group comments (Machine, Tool path group, group comment) are NCI numbers 1051-1054.

These are output as Comment Strings. So you should be able to capture the value in 'pcomment2'. Not sure if that is where your String variable is being set. I don't thing there is a pre-defined string for that one, so 'scomm$' would be the generic pre-defined variable that holds the comment string, when the NCI number is 1051-1054.

Link to comment
Share on other sites

NCI 1051-1054 did not have any info for Tool Group Name. I was able to find a parameter number (19248) for Machine Group Name in the parameters guide to match NCI 1053. Still looking to get the Tool Group Name. Worse case senerio I will just put the Info I desire from the tool group name into the machine group comment section. Its an extra click or two but I do have a parameter number for that as well (19111). I did play with checking the box in control definition  to enable machine group name comments but that was posting in my gcode more than I wanted. For the format I am looking to have, I want this info posted once in the comment section of the pheader$. Will give an update if I do find the parameter number. Still looking.

Link to comment
Share on other sites

How old is the post?

  Most newer ones have this coded right into pcomment2

if gcode$ = 1008, pbld, n$,  sopen_prn, scomm$, sclose_prn, e$  #Operation comment
      if gcode$ = 1051, pbld, n$,  sopen_prn, scomm$, sclose_prn, e$  #Machine name
      if gcode$ = 1052, pbld, n$,  sopen_prn, scomm$, sclose_prn, e$  #Group comment
      if gcode$ = 1053, pbld, n$,  sopen_prn, scomm$, sclose_prn, e$  #Group name
      if gcode$ = 1054, pbld, n$,  sopen_prn, scomm$, sclose_prn, e$  #File Descriptor

 

Link to comment
Share on other sites

I have the lasted MPFAN post v20.00. Unless I am miss understanding the NCI 1051-1054 values, the red box with the question marks is the information I am trying to add as a comment. I just finished looking through the parameters pdf with no luck.

 


 

screen_shot.jpg

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