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:

Change Axis prefix with transform op.


Recommended Posts

So I have a machine with two rotary axes on the table in parallel to each other,  Each gets it own part, one is A1 the other is A2, you use them individually for cutting separate parts.  When the are setup to where they are cutting the same parts (copies) you have to address them separately as you need them.  In this case they are the primary axis.  Anyway, my post is setup for a question to ask which one you want to post to.  This is fine in most cases, but I am sick of hand editing code when I need to go back and forth between them for tool change efficiency.

Anyway, what I would like to do is detect if an op is a transform and accordingly change the axis name prefix string when it goes from the first transform location to the second.  I have a decent grasp of how to do some of the transform side of it, but can't for the life of me change the output prefix from "A1=" to "A2="  I can successfully make them whatever I want in the pprep$ portion of the post, but can't change it after that fact.  I am assuming this is due to what may be in the binned portion of the post.  This post is a heavily bastardized generic 5x post.

 

Link to comment
Share on other sites
1 hour ago, Colin Gilchrist said:

I think you'll need to use the "update global" functions to pull this off.

That was what I was thinking, I can't seem to figure out though what variable I need to update using update global though...  It doesn't appear to be str_pri_axis,  somewhere in the .bin they are attaching the prefix string to p_out.  Would you have any idea on that?

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