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:

Recommended Posts

I hope someone out there will have a use for this. Someone at work gave me the idea. Check it out.

 

O5656(DIAMOND PIN MACRO)

(PIN AT 0 DEGREES IS VERTICAL)

(ABSOLUTE MACRO)

(UNDER DEVELOPMENT)

 

(FORMAT G65/G66 ABDTMWREFS)

(A = #1 - INCLUDED ANGLE OF PIN)

(60 DEGREES IS COMMON)

(B = #2 - G68 ROTATION FROM 0 DEGREES)

(D = #7 - DIAMETER OF PIN)

(T = #20 - TOOL DIAMETER)

(M = #13 - MATERIAL SIZE)

(SQUARE OR ROUND)

(W = #23 - WIDTH OF PIN CONTACT)

(R = #18 - R PLANE)

(E = #8 - END OF EM IN Z)

(F = #9 - FEEDRATE)

(S = #19 - # OF SPRING PASSES)

(*********************************)

(LIMIT SPRING PASSES TO 3.)

IF[#19GT3.]THEN#19=3.

(STORE CURRENT XY POSTION)

#100=#5001

#101=#5002

(CALCULATE TANGENT POSITIONS)

(BASED ON ARGUMENT -A-)

(-X-/-I-)

#102=[#23/2.]+[COS[#1/2.]*[#20/2.]]

(-Y-/-J-)

#123=ASIN[#23/2.]/[#7/2.]

#103=[COS[#123]*[#7/2.]]+[sIN[#1/2.]*[#20/2.]]

(CALCULATE FIRST POSITION -X-)

#105=#102+[TAN[#1/2.]*[#103]]

(CALCULATE MATERIAL CLEARANCE)

#106=[#13/2.]+[#20/2.]+.1

(STORE EACH LOCATION)

#110=#100-#106

#111=#101

#112=#100-#105

#113=#100-#102

#114=#101+#103

#115=#100+#102

#116=#101+#103

#117=#100+#105

#118=#101

#119=#100+#102

#120=#101-#103

#121=#100-#102

#122=#101-#103

(SET SPRING PASS COUNTER)

#149=#19

(SET ROTATION)

#530=#2

IF[#2GT180.]THEN#530=#2-360.

G68R#530

(GOTO 1ST POSTION)

G0G90X#110Y#111

Z[#8+.1]

G1Z#8F#9

G41X#112

WHILE[#149GE0]DO1

IF[#149LT0]GOTO10

#149=#149-1.

G1X#113Y#114

G02X#115Y#116I#102J-[#103]

G1X#117Y#118

X#119Y#120

G02X#121Y#122I-[#102]J#103

G1X#112Y#111

END1

N10G1G40G90X#110

G0Z#18

G69

X#100Y#101

M99

Link to comment
Share on other sites
  • 11 months later...

what axactly does this macro do, could you post a photo of a part or something?

This macro is designed to create a diamond pin of your choosing machining it right into the fixture. It's mainly for emergency use only and is not going to really substitute a real diamond pin. The G68 rotation allows you to rotated the whole pin to any angle desired. The furthest I have got with it is a dry run and have not cut any chips with it yet, but as soon as I do I will post a pic. So in a nutshell you could pull up any catalogue with diamond pins in them and copy the specs to the macro to recreate the pin desired.

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