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:

Engraving Macro


Wildcat
 Share

Recommended Posts

Im talking about a Macro not inside of Mastercam. I would like to set up a macro on our lathe with C axis to engrave part numbers on the OD of parts. I have a macro that does flat engraving, just need to do it on the OD. Ive heard you can use G07.1, never used it and not sure I even have it.

Link to comment
Share on other sites
39 minutes ago, Wildcat said:

Is there a macro to engrave on the OD of round parts or is this even possible due to the OD changing sizes?

Elaborate, changing sizes?

You can do axis substitution using a contour tpath
You can project geom and work from that, wrap the geom using transform roll or leave the geom flat and wrap it with within the tpath using the axis sub utility.
However due to substituting one linear axis with rotary motion the center of the tool needs to intersect the center of rotation, the radius distance needs to remain a constant from the center of rotation.

To engrave on a taper or work with geom the requires the center line of the to to move away from the center of rotation would require simultaneous 4 axis

 

Didn't see your post till after I answered, no got no macro for loading at the control

Link to comment
Share on other sites
30 minutes ago, Wildcat said:

Im talking about a Macro not inside of Mastercam. I would like to set up a macro on our lathe with C axis to engrave part numbers on the OD of parts. I have a macro that does flat engraving, just need to do it on the OD. Ive heard you can use G07.1, never used it and not sure I even have it.

 

 

Yeah, I did that, too. I actually wrote a serial engraving macro within Mastercam that can do exactly what you want. People are still trying to figure out how I did it :)

 

Link to comment
Share on other sites
12 hours ago, jlw™ said:

Now you really lost me, a macro inside of Mastercam that uses change at point?  Is this a c hook or a net hook?  Is it creating a new op for every set of characters?

 

Ok, here is the way I did it. I started with a default of .125 tall characters. I used viewsheets with a string of 10 boxes the size and spacing of each character. On every different viewsheet was a different character. 10 of the same characters in line. So, when you tuned on all viewsheets you got all of the characters overlaid on top of each other each other within the box.  Then, I created toolpaths for each character. Within each character op comment was a jump code (YES this is one reason it is VERY useful to remove the parenthesis from 1008 comment codes within your posts). Think outside the box. And, within each of  those ops I used change at point to control the specific actions of each op and insert IF/GOTO commands within the program. 

Now you are all probably thinking, what If I want .25" high characters, or characters on an angle, or od, or whatever. What this allowed me to do was scale, rotate or do whatever, and just repost the code. Within the Fanuc control all the operator had to do was fill in what he wanted engraved within macro variables. #510 controlled how many characters, up to 10. #511-#520 are what you would use to enter the starting characters. Entering 99 gave you a dash. #509 controlled serialization.The program posted out the code to offset G59. The first letter started near G59 x0y0z0 and the operator was given a point as to where to place G59 in relation to G54/55 or whatever. Op1 was always G54, op2 G55, and so on.

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