Where is G68?

More
28 Mar 2020 22:10 #161848 by AudioJU
Where is G68? was created by AudioJU
Hello. I'm just migrating here from Mach3.

I do a lot of work where a part is fixed to the machine bed arbitrarily.
In Mach, I would use a wizard that let me touch off two points and it would rotate the coordinate system (around the z axis) to the part. This would result in perfect alignment every time.

G68 seems to be a good code to do this manually but it doesn't seem to exist in LinuxCNC at all?!?!? ("Unknown G Code used")

- Noob question? How to rotate the fixture with G-code without G68?
- Better yet, is there a tool, macro, add-on, plugin etc that would automate this for me (doing trig angle math every time seems ridiculous)?

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 00:15 #161883 by MaHa
Replied by MaHa on topic Where is G68?
I have made my own probing routine which is to weird to post here, but you could search for 'probe screen' , and get a graphical interface.

otherwise by probing with G38.2, calculate with Atan, which is actually Atan2, set rotation by

G10 L2 P coordinatesystem number R rotation

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 00:50 #161894 by andypugh
Replied by andypugh on topic Where is G68?
I am fairly sure that JT mentioned how he did a similar thing to straighten up the work on sheets on the plasma.

Now I wonder if I can find it?

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 01:39 #161901 by rodw
Replied by rodw on topic Where is G68?

I am fairly sure that JT mentioned how he did a similar thing to straighten up the work on sheets on the plasma.

Now I wonder if I can find it?


Andy its in a zip file here
gnipsel.com/linuxcnc/examples.html

Please Log in or Create an account to join the conversation.

More
02 Apr 2020 22:48 #162510 by lorenzn
Replied by lorenzn on topic Where is G68?
I followed JT's example a while back and added the buttons to a PyVCP panel. Looking at the subroutine code I see I had commented out the G92 calls in align-x and align-y. I had an issue with that but don't remember the details now. It works well and the G10 L2 is the important part. There are four buttons. '1. Align Start', '2. Align Y', 2. Align X', and 'Clear Offset'.

Please Log in or Create an account to join the conversation.

More
02 Apr 2020 22:50 #162511 by lorenzn
Replied by lorenzn on topic Where is G68?
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum