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:

Post question D1 H9


Vinnyme
 Share

Recommended Posts

I am using X2-MR2 on a Fanuc and trying to change my tool length offset by 8 from tool dia offset. I know in the Control Defintion Manager you can offset registers to length by 8 then add to tool. But went you replace one control to next it does not toggle back from 8 to 0, unless you click on the tool you are using. So I though you could change this in the post instead by adding value of 8 to the tlngno$ (tool lenght offset). Does anyone know how to added a value of 8 to tool length offset each time it comes up to get (D1 H9 etc.)?

Link to comment
Share on other sites

I have a similar thing going on here. This is what I did:

 

This section sets up the new variables

code:

fmt  H  4   tlngno$     #Length offset number

fmt H 4 tlngno_plus #Length offset number <------ this is new

this is changed in the psof$ section

code:

tlngno_plus = tlngno$ + 8 #~~~~~ add whatever number you want to add to the length offset here   

pbld, n$, sg43, *tlngno_plus, pfzout, pstagetool, e$

this is changed in the ptlchg$ section

code:

tlngno_plus = tlngno$$ + 8 #~~~~~ add whatever number you want to add to the length offset here

pbld, n$, sg43, *tlngno_plus, pfzout, pstagetool, e$

Link to comment
Share on other sites

I see where you guys are coming from. That is alot easier, just add 30 instead of 8. But my set-up men and operators have been using D1 H9 thru D8 H16 and D17 H25 thru D24 H32 for over 8 years. So I wanted to keep everthing the same.

 

I got it with your help.

 

fmt D 4 tloffno$ #Diameter Offset No

fmt D 4 tloffno_greater #Diameter Offset No 9JAN2008 V.G.

fmt H 4 tlngno$ #Length Offset No

fmt H 4 tlngno_PLUS #Length Offset No9JAN2008 V.G.

fmt H 4 tlngno_pg #Length Offset H25 and above 9JAN2008 V.G.

 

 

if tloffno$ > 8 , tloffno_greater = tloffno$ + 8

pbld, n$, *sgcode,"G17", *tloffno_greater, pfxout, pfyout,

*speed, *spindle, pgear, pcan1,e$

else, #pbld, n, *sgcode, tloffno, pfxout, pfyout, pfcout,

pbld, n$, *sgcode,"G17", *tloffno$, pfxout, pfyout,

*speed, *spindle, pgear, pcan1,e$

tlngno_plus = tlngno$ + 8 #added what ever number you want to add to the length 9JAN 2008 V.G.

if tlngno_plus > 16, tlngno_pg = tlngno_plus + 8

pbld, n$, "G43", *tlngno_pg, pfzout, scoolant, [if stagetool = one, *next_tool$],e$

else, pbld, n$, "G43", *tlngno_plus, pfzout, scoolant, [if stagetool = one, *next_tool$],e$

 

 

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