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:

Using D#517 for cuttercomp


Recommended Posts

On our matsuura's we do on occasion use sister tooling. The way it works with them, you can have multiple tool #1 (for example). When you call the height offset rather than using H1 you use H#518 and via the toolchange macro it loads the correct length offset.

 

Up till now, it has been roughing tools with little or no need for CDC. Things change, and now I want to post out D#517 rather than D1.

The way I have gotten the height to work is by this....

pbld, n$, "G43", "H", no_spc$, 35, no_spc$, "518", pfzout, e$

This works well since typically you only call your tool height once after a toolchange. However, CDC is turned off & on constantly.....

 

So is there any way to re-format this statement...

fmt  "D" 4  tloffno$    #Diameter Offset No

to something that will always force out D#517, no matter what tool is called?

Link to comment
Share on other sites

I haven't tried it but...

 

What if you commented out that variable definition

 

#fmt "D" 4 tloffno$

 

and instead

 

tloffno$ : "D#517"

 

Like I said, not sure it will work but thinking out of the box at the moment

Link to comment
Share on other sites

JParis got me going in the right direction on this. A few trial and errors and here is what I came up with....

 

First, changed my format to this...

 

fmt  "D#" 4  tloffno$    #Diameter Offset No

 

I didn't think that would work, and in previous versions I know it wouldnt work, as it used to see anything behind the # sign as a comment and it would ignore the rest of the line. However, after trying, it worked.

Then in my pccdia section just added this line....

 

tloffno$ = 517

 

and now my output looks like so...

 

G43 H#518 Z.1
G1 Z0. F6.42
G41 D#517 X-.9085
X1.6711
G2 X1.9211 Y1.3462 I0. J-.25

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