Automatic angle compensation possible?

Post anything you want to discuss with others about the software.

Automatic angle compensation possible?

Postby mr_cg » Tue May 28, 2019 7:56 pm

Hello,
i would like to know if it is possible - natively or by additional plugin - to automatically compensate staight workpieces which are not (or cannot because of it's size) fixed along x or y axis?
Some CNC SW have the feature to measure two points on workpiece edge along x or y axis and then automatically compensate every x or y movement based on the angle deviation.

Is there any solution available for this?

Thanks for your help.
Chris
mr_cg
 
Posts: 48
Joined: Thu Mar 14, 2019 8:40 pm

Re: Automatic angle compensation possible?

Postby Robertspark » Wed May 29, 2019 4:08 am

edge probe and then use G68 to rotate
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Automatic angle compensation possible?

Postby mr_cg » Wed May 29, 2019 3:53 pm

Thanks for the hint about G68.

How is it possible to automatically calculate the required rotation by probing the edge on two points?
Thx
mr_cg
 
Posts: 48
Joined: Thu Mar 14, 2019 8:40 pm

Re: Automatic angle compensation possible?

Postby cncdrive » Wed May 29, 2019 6:28 pm

You can write a simple macro doing math angle function from the probed points coordinates to calculate the rotation angle and then do a G68 with that angle.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Automatic angle compensation possible?

Postby ger21 » Wed May 29, 2019 6:38 pm

You need to use trig to calculate it.
The distance between the two probe points is the base of a 90° triangle.
The difference between the probe points is the height of the triangle.
This is enough info to calculate the angle using trigonometry.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Automatic angle compensation possible?

Postby cncdrive » Wed May 29, 2019 6:44 pm

I just realised that the probing plugin on the tools/probe page of the UCCNC already have the 2 point probing and angle calculation. So it is there, you just have to use it. :)
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Automatic angle compensation possible?

Postby mschicker » Mon Jun 03, 2019 1:38 pm

When I use G68 in UCCNC, for example G68 X0 Y0 R0.34 then UCCNC show me R68 R0.4 in status line. Is this just a display issue? Or is it really rounding my value? How to retrieve the value that is in place? Thanks.
mschicker
 
Posts: 2
Joined: Thu May 16, 2019 5:54 am

Re: Automatic angle compensation possible?

Postby dezsoe » Tue Jun 04, 2019 11:02 am

That is rounded to fit on the screen. You can call exec.GetRotate(out double Rx, out double Ry, out double Angle) from a macro to get the angle.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Automatic angle compensation possible?

Postby mschicker » Tue Jun 04, 2019 11:34 am

Thanks for the clarification :-)
mschicker
 
Posts: 2
Joined: Thu May 16, 2019 5:54 am

Re: Automatic angle compensation possible?

Postby mr_cg » Sun Jun 09, 2019 3:56 pm

cncdrive wrote:I just realised that the probing plugin on the tools/probe page of the UCCNC already have the 2 point probing and angle calculation. So it is there, you just have to use it. :)

Sorry, could not find tools/probe page. Can you please share the link to this page? Thanks!
mr_cg
 
Posts: 48
Joined: Thu Mar 14, 2019 8:40 pm

Next

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: Bing [Bot] and 28 guests