Rotating coordinate space via probing
- ihavenofish
- Offline
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 135
11 Dec 2024 00:52 #316442
by ihavenofish
Rotating coordinate space via probing was created 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?
Attachments:
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19419
- Thank you received: 6512
11 Dec 2024 01:03 #316443
by tommylight
Replied by tommylight on topic Rotating coordinate space via probing
QtPlasmaC does that with a camera, see here
www.linuxcnc.org/docs/devel/html/plasma/...c.html#plasma:camera
www.linuxcnc.org/docs/devel/html/plasma/...c.html#plasma:camera
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 135
11 Dec 2024 01:09 #316444
by ihavenofish
Replied by ihavenofish on topic Rotating coordinate space via probing
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.
That answers the "is it there" question for sure. Thanks.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 135
11 Dec 2024 01:22 #316446
by ihavenofish
Replied by ihavenofish on topic Rotating coordinate space via probing
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.
I guess I need to go look at the probe basic features now.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
12 Dec 2024 12:47 #316512
by rodw
Replied by rodw on topic Rotating coordinate space via probing
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
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
The following user(s) said Thank You: Aciera, JT
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 135
12 Dec 2024 15:39 #316524
by ihavenofish
Replied by ihavenofish on topic Rotating coordinate space via probing
Oh, so it really is as simple as that. capture variables, do math, then set rotation.
Thanks!
Thanks!
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Time to create page: 0.108 seconds