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:

Probe part to align part and use G68


Recommended Posts

Lets say your hole spread is 10 inches in X with .5 inch holes
We use 9914 for our hole pickup and #136 for our Y
absolute location:
T1M06(PROBE)
G0X-5.Y0
G43H1Z5.
G1Z-.2F50.
G65P9914D.5Q.1R.1
#600=#136
G0Z5.
X5.
G1Z-.2F50.
G65P9914D.5Q.1R.1
#601=#136
#602=[#601-#600]/2.
#530=ATAN[#602]/[5.]
IF[#530GT180.]THEN#530=#530-360.
G0Z5.
G91G28Z0
M00
G68#530
(WE USE #530 FOR ALL ROTATIONS)

Link to comment
Share on other sites

What if the real distance between holes is not actually 10.

T1M06(PROBE)
G0X-5.Y0
G43H1Z5.
G1Z-.2F50.
G65P9914D.5Q.1R.1

#600=#135 (X)
#602=#136 (Y)
G0Z5.
X5.
G1Z-.2F50.
G65P9914D.5Q.1R.1

#601=#135 (X)
#603=#136 (Y)

 

#605=#601-#600(X DIST BETWEEN HOLES)

#606=#603-#602(Y DIST BETWEEN HOLES)

#530=ATAN[#606]/[#605]

 

 

...ETC

...ETC

 

ps..1st probed hole is on left
 

Link to comment
Share on other sites

What if the real distance between holes is not actually 10.

T1M06(PROBE)

G0X-5.Y0

G43H1Z5.

G1Z-.2F50.

G65P9914D.5Q.1R.1

#600=#135 (X)

#602=#136 (Y)

G0Z5.

X5.

G1Z-.2F50.

G65P9914D.5Q.1R.1

#601=#135 (X)

#603=#136 (Y)

 

#605=#601-#600(X DIST BETWEEN HOLES)

#606=#603-#602(Y DIST BETWEEN HOLES)

 

#530=ATAN[#606]/[#605]

 

 

...ETC

...ETC

 

ps..1st probed hole is on left

 

I am assuming the 10.00 would be known and precisely machined. I am not sure if your example would work because if you took a 10.00 hole spread and kicked it at lets say 10. degrees the hole spread would still be 10. inches. I will have to think about it some more and maybe come up with some more math that would take into account all aspects of the holes. Great point though. Thank You.

Link to comment
Share on other sites

I think the idea is that if u have 2 holes machined precisely at a certain distance in a previous operation and you want to use them to align your part in a next operation, it not necessarily mean that they will be aligned along one direction(almost impossible to align them by eye). I'm guessing he's asking to align a part between 2 holes machined in a prev operation and just put the part on the table as close to the desired position and pick up the misalignment with the probe. If in his setup those 2 holes needs to be aligned along Y axis then he needs to take 90 from the resulting angle. It all depends on how those holes are in his setup.

That's why as a rule you need to find the actual displacement on X and Y between holes, and use with ATAN formula, because it's practically impossible to put the part by eye on the table and the holes to be in the desired alignment. Then from here many scenarios can spawn depending on where those holes needs to be, maybe they are at 45deg( in I don't know what scenario).

Link to comment
Share on other sites

I think the idea is that if u have 2 holes machined precisely at a certain distance in a previous operation and you want to use them to align your part in a next operation, it not necessarily mean that they will be aligned along one direction(almost impossible to align them by eye). I'm guessing he's asking to align a part between 2 holes machined in a prev operation and just put the part on the table as close to the desired position and pick up the misalignment with the probe. If in his setup those 2 holes needs to be aligned along Y axis then he needs to take 90 from the resulting angle. It all depends on how those holes are in his setup.

That's why as a rule you need to find the actual displacement on X and Y between holes, and use with ATAN formula, because it's practically impossible to put the part by eye on the table and the holes to be in the desired alignment. Then from here many scenarios can spawn depending on where those holes needs to be, maybe they are at 45deg( in I don't know what scenario).

Looking at my math again I believe you are right. Sometimes I get in a hurry when I write this stuff then prove it out and debug at the machine. My 10. spread would be the hypotenuse of the triangle and would not be included in an ATAN calculation so I believe you are correct. How would we then incorporate positive or negative rotation?

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

I store angle in a non- volatile variable in case the power goes out like #500 and up

I built a program ( macro) that calculates the angle using tha ATAN function , as you are correct, and use it almost everyday

To reset up parts and there is no blemish lines if probe is recently calibrated. Hope this helps without posting the actual macro program in an open forum

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