Rotating coordinate space via probing

More
1 year 10 months ago #316442 by ihavenofish
Working on my larger machine and based on the work I'm gonna use it for, being able to probe a part or work piece and then have the machine not just offset but also rotate the coords would be nice. For clarity, I want to stick stock down and if that stock happens to be 12 degrees out of square the probe will measure and then rotate the program to match the stock. (12 degrees is extreme of course, but it gets the point across).I understand linuxcnc *can* rotate coords, but beyond that I know nothing on the topic. Has anyone made use of this? How does it work? 

 

Attachment not found


 

Attachment not found


 

Attachment not found

Please Log in to join the conversation.

More
1 year 10 months ago #316443 by tommylight

Please Log in to join the conversation.

More
1 year 10 months ago #316444 by ihavenofish
Cool. That's seems to be the same function I need. I just need it to be in a probe cycle.

That answers the "is it there" question for sure. Thanks.

Please Log in to join the conversation.

More
1 year 10 months ago #316446 by ihavenofish
Ha, so here we are for pathpilot. Seems to behave exactly like i imagine it would. Woo.



I guess I need to go look at the probe basic features now.

Please Log in to join the conversation.

More
1 year 10 months ago #316512 by rodw
JT shared some gcode for sheet alignment.
gnipsel.com/linuxcnc-old/index.html
At one stage, I modified this to run on Gmocappy macro buttons.
Maths in gcode really sucks but the way this is done is to probe the material in two places and save the two sets of X,Y coordinates
you end up with a right angled triangle between these points. Then you can use pythagoras theorem to calculate the hypotenuse of the triangle which is the distance along the material edge between these points
With some simple trig, you can calculate the angle the sheet is aligned on.
Finally, given this angle, you can rotate the X,Y plane around the  Z axis by this amount

Please Log in to join the conversation.

More
1 year 10 months ago #316524 by ihavenofish
Oh, so it really is as simple as that. capture variables, do math, then set rotation.

Thanks!

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum