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:

Recommended Posts

Hey Brian,

Welcome to the forum! This is what I have in a Gen Fanuc 5ax post.

First format the variable.

fmt "STICK OUT = "	8	oa_len 	#Tool overall length

Then add it to your ptooltable postblock, here is what mine looks like.

ptooltable  	#Tooltable output
     	"  ", e$ sopen_prn, *t$, "|", *tlngno$, "|", *tloffno$, "|", *tldia$, sclose_prn, e$ sopen_prn, 
     	*oa_len, "|", *holddia, sclose_prn, e$ sopen_prn, pstrtool, sclose_prn, e$ sopen_prn, smtcode, "|", schuck, sclose_prn, e$

Then you need to add this line to the pparameter postblock, this is where the variable gets the number.

  	if prmcode$ = 20007, oa_len = rparsngl(sparameter$, 3)

 

BTW I enter that info in the tool definition under "Overall".

 

HTH

Link to comment
Share on other sites

Hey Brian,

Welcome to the forum! This is what I have in a Gen Fanuc 5ax post.

First format the variable.

fmt "STICK OUT = "	8	oa_len 	#Tool overall length

Then add it to your ptooltable postblock, here is what mine looks like.

ptooltable  	#Tooltable output
     	"  ", e$ sopen_prn, *t$, "|", *tlngno$, "|", *tloffno$, "|", *tldia$, sclose_prn, e$ sopen_prn, 
     	*oa_len, "|", *holddia, sclose_prn, e$ sopen_prn, pstrtool, sclose_prn, e$ sopen_prn, smtcode, "|", schuck, sclose_prn, e$

Then you need to add this line to the pparameter postblock, this is where the variable gets the number.

  	if prmcode$ = 20007, oa_len = rparsngl(sparameter$, 3)

 

BTW I enter that info in the tool definition under "Overall".

 

HTH

 

I've got the first two steps down. I'm a little confused on the pparameter postblock. Where is this line supposed to go? Thanks for the help.

Link to comment
Share on other sites

This is what mine looks like, it doesn't matter where you put it in the postblock, as long as the indentation is correct.


pparameter$    	#Parameter Read 
 	#~prmcode$, "   " ~sparameter$, e$ 	
 	#"pparameter", ~prmcode$, ~sparameter$, e$
 	#"pwrttparam", ~prmcode$, ~sparameter$, e$
 	#if prmcode$ = 20004, tempf1 = rpar(sparameter$, 12)
 	if prmcode$ = 20004, plgfd = rparsngl(sparameter$, 12)
 	if prmcode$ = 20007 & use_tlength = one, temp1 = rpar(sparameter$, 3)
 	if prmcode$ = 20007, oa_len = rparsngl(sparameter$, 3)  #Grab Tool OAL from 20007 line
 	if prmcode$ = 12331, cminangle = rpar(sparameter$, 1)					########added
 	if prmcode$ = 10031, plngfd = rpar(sparameter$, 1)
 	if prmcode$ = 10010, surfstklft = rpar(sparameter$, 1)
 	if prmcode$ = 12149, radofset = rpar(sparameter$, 1)
 	if prmcode$ = 12169, swarfstklft = rpar(sparameter$, 1)
 	if prmcode$ = 20007, holddia = rparsngl(sparameter$, 6)
 	if prmcode$ = 20002, smtcode = sparameter$
 	if prmcode$ = 20003, schuck = sparameter$
 	if prmcode$ = 12437, multilft = rpar(sparameter$, 1)

Link to comment
Share on other sites

This is what mine looks like, it doesn't matter where you put it in the postblock, as long as the indentation is correct.


pparameter$    	#Parameter Read 
 	#~prmcode$, "   " ~sparameter$, e$ 	
 	#"pparameter", ~prmcode$, ~sparameter$, e$
 	#"pwrttparam", ~prmcode$, ~sparameter$, e$
 	#if prmcode$ = 20004, tempf1 = rpar(sparameter$, 12)
 	if prmcode$ = 20004, plgfd = rparsngl(sparameter$, 12)
 	if prmcode$ = 20007 & use_tlength = one, temp1 = rpar(sparameter$, 3)
 	if prmcode$ = 20007, oa_len = rparsngl(sparameter$, 3)  #Grab Tool OAL from 20007 line
 	if prmcode$ = 12331, cminangle = rpar(sparameter$, 1)					########added
 	if prmcode$ = 10031, plngfd = rpar(sparameter$, 1)
 	if prmcode$ = 10010, surfstklft = rpar(sparameter$, 1)
 	if prmcode$ = 12149, radofset = rpar(sparameter$, 1)
 	if prmcode$ = 12169, swarfstklft = rpar(sparameter$, 1)
 	if prmcode$ = 20007, holddia = rparsngl(sparameter$, 6)
 	if prmcode$ = 20002, smtcode = sparameter$
 	if prmcode$ = 20003, schuck = sparameter$
 	if prmcode$ = 12437, multilft = rpar(sparameter$, 1)

 

 

This line when added to my post:

 

pparameter$ #Parameter Read

if prmcode$ = 20007, oal = rparsngl(sparameter$, 3) #Grab Tool OAL from 20007 line

 

causes this error:

 

13 Sep 2011 08:31:36 PM - <2> - PST LINE (1157,8955) - Duplicate post block declaration, , Duplicate assignment of label

Link to comment
Share on other sites

That error looks to me like you created a whole new pparameter postblock.

Don't create a new one, just add the "if prmcode$ = 20007, yada yada yada" line to the EXISTING pparameter postblock.

Search your post for "pparameter" then add the line to that postblock. You should not be adding "pparameter", only the line to it....

 

What post are you using?

Link to comment
Share on other sites

That error looks to me like you created a whole new pparameter postblock.

Don't create a new one, just add the "if prmcode$ = 20007, yada yada yada" line to the EXISTING pparameter postblock.

Search your post for "pparameter" then add the line to that postblock. You should not be adding "pparameter", only the line to it....

 

What post are you using?

 

I thought the same thing but there is no pparameter block, only the line I added.

 

attached is the post

HAAS VF 5X TRT.txt

  • Like 1
Link to comment
Share on other sites

The pparameter postblock you added cannot be there, you need to delete it. It wont work because the pparameter postblock for the post is already there, you just cant see it because it is binned (locked, encrypted whatever you call it). You will need to contact whoever made the post for you and ask if they can add that line to the pparameter postblock for you (a simple change like this should not cost $) (keyword "should").

Sorry I can't be more help.:(

Link to comment
Share on other sites

The pparameter postblock you added cannot be there, you need to delete it. It wont work because the pparameter postblock for the post is already there, you just cant see it because it is binned (locked, encrypted whatever you call it). You will need to contact whoever made the post for you and ask if they can add that line to the pparameter postblock for you (a simple change like this should not cost $) (keyword "should").

Sorry I can't be more help.:(

 

Thanks for all the help. I had to send it off to my post writer. Thought I'd be able to do it myself.

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