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:

Xform rotate count instances


Recommended Posts

Hey guys, I'm stuck on a transform toolpath.  What I am trying to accomplish is to inset some pre-defined code in between a transform toolpath that uses depth cuts.  I cannot use ptlchg0$ because it puts the code in on every depth cut.  Is there a way to detect when a transform toolpath initiates a new instance of the copied toolpath?

Thanks in advance!

Link to comment
Share on other sites

I'm not sure exactly what it will take to do that...I'm guessing it's possible but you'll likely have to dig through this section and set some variable output to see where it comes out so that you can then check and capture/output what you need

 

# --------------------------------------------------------------------------
#Subprogram postblocks
#sub_trnstyp - 0=mirror, 1=rotate, 2=scale, 3=translate
#sub_trnmthd (mirror) - 0=X axis, 1=Y axis, 2=line
#sub_trnmthd (rotate) - 0=tplane, 1=tplane origin only, 2=coordinates
# --------------------------------------------------------------------------

  • Like 1
Link to comment
Share on other sites

I did some deep digging and came up with nothing. Then I tried posting the .nci file and nothing. However, I did find an exploit. As long as the checkbox "Remove comments" is unchecked, a gcode of 1008 is output between each instance of the transform. I used that comment as the trigger to put in the code needed for the cycle to function. With little safety check to make sure the box is not checked, we're good to go.

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