Rotating the g54 coordinate system.

More
27 Feb 2025 07:53 #322778 by flexbex
Rotating the g54 coordinate system. was created by flexbex
Hi let's assume I have a work piece not perfectly square on my table. Could I touch of one side of the workpiece on two points with a probe. Then I would define this as one of the axis of g54 coordinate system. Let's say y axis. So that it would be rotated to g53?

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

More
27 Feb 2025 09:42 #322779 by rodw
Replied by rodw on topic Rotating the g54 coordinate system.
yes, but I think rotation is applied to the current coordinates. qtdragon and QTplasmac already support part rotation the way you describe..
 

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

More
07 Apr 2025 22:32 #325888 by pgf
Replied by pgf on topic Rotating the g54 coordinate system.
I've just implemented this for myself.

I already have autoprobe routines that set g54 parameters for X, Y, and Z. I augmented my autoprobe functions to log the x and y values of every completed probe, along with the g54 offsets in effect at the time.

When I have a rotated part, I touch it twice, along a surface that's parallel to its twisted X axis. That gives me two new log entries. I have a script that reads those entries, and calculates d = atan ( (y2 - y1) / (x2 - x1) ), after correcting the x and y values with the offset information.

The script prints the result in degrees. In fact, the script simply prints the necessary g-code: "G10 L2 P0 R $angle", which I then pasted into the MDI window.
The following user(s) said Thank You: timo

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

More
08 Apr 2025 07:34 - 08 Apr 2025 07:36 #325900 by skydyver
Replied by skydyver on topic Rotating the g54 coordinate system.

I've just implemented this for myself.

I already have autoprobe routines that set g54 parameters for X, Y, and Z. I augmented my autoprobe functions to log the x and y values of every completed probe, along with the g54 offsets in effect at the time.

When I have a rotated part, I touch it twice, along a surface that's parallel to its twisted X axis. That gives me two new log entries. I have a script that level devil  reads those entries, and calculates d = atan ( (y2 - y1) / (x2 - x1) ), after correcting the x and y values with the offset information.

The script prints the result in degrees. In fact, the script simply prints the necessary g-code: "G10 L2 P0 R $angle", which I then pasted into the MDI window.
 
Once you generate the G-code command with the calculated angle, do you have any specific procedures for verifying the machine’s response after you paste it into the MDI window?

Once you generate the G-code command with the calculated angle, do you have any specific procedures for verifying the machine’s response after you paste it into the MDI window?
Last edit: 08 Apr 2025 07:36 by skydyver.

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

Time to create page: 0.283 seconds
Powered by Kunena Forum