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:

Comment next to program number


Recommended Posts

Not going to happen very easily. You can use the machien group name pretty easily I got help from Roger Martin to do that years ago, but from a toolpath not going to be an easy undertaking. Those comments fall into toolpath parameters in the NCI. I am thinking you would have to buffer them out then recall the header section to get them into the name. Using the Machine group was very easy and one I have used for years. Here is the stuff for the post based off of MPMASTER that was customized by me and should not look the same as yours, but this is an example of how I used the Machine Group name in the company I worked at. Here it is if you want to try it yourself.

 

pheader$		 #Call before start of file						
 hour = int(time$)
 min = int((time$ - hour)* 100)
 if hour > 12, hour = hour - 12
 if hour = 0, hour = 12
 year$ = year$ + 2000
 "%", e$
 spaces$=0
 *progno$, " ", scomm_str, sprogname$, scomm_end, e$
 spathnc$ = ucase(spathnc$)
 smcname$ = ucase(smcname$)
 scomm_str, "MACHINE	 - MAZAK H-630", scomm_end, e$ # Added RDB
 scomm_str, "CUSTOMER	 - ", prdbcustp, scomm_end, e$ # Added RDB	
 scomm_str, "PART #	 - ", smachgrp_name, scomm_end, e$ # ADDED Roger Martin
 scomm_str, "MODEL #	 - ", smachgrp_name, ".MCX", scomm_end, e$ # Added RDB	
 scomm_str, "PROGRAMMER - RON B", scomm_end, e$ # Added RDB
 scomm_str, "PROGRAM NAME - ", sprogname$,".NC", scomm_end, e$
 comment$ # File descriptor



# --------------------------------------------------------------------------
# Misc strings
# --------------------------------------------------------------------------
smachgrp_name : "" # string variable to hold the name



pmachineinfo$ #Machine information parameters postblock
######
###### Section removed to post up here but needed and do not remove from your posts !!!!!!!!!!!!!! ##############
###### Add the below code somewhere as a line by itself in this section of the post ###########################
######
 if prmcode$ = 19248, smachgrp_name = sparameter$

 

 

Now what ever you name the Machine Group will be the name output in the post. Just change the comment section of the header like so:

pheader$		 #Call before start of file						
 hour = int(time$)
 min = int((time$ - hour)* 100)
 if hour > 12, hour = hour - 12
 if hour = 0, hour = 12
 year$ = year$ + 2000
 "%", e$
 spaces$=0
 smachgrp_name = ucase(smachgrp_name) # Force Upper Case encase machine has problem with lower case
 *progno$, " ", scomm_str, smachgrp_name, scomm_end, e$
 spathnc$ = ucase(spathnc$)
 smcname$ = ucase(smcname$)

 

Hope that points you in a better direction. Maybe Peter or Colin have a good idea to do what you are after since they know a lot more about posts than I do.

 

Oh encase someone one comes across this thread 10 years from now. Use at your own risk.

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