Angle probe

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

Angle probe

Postby kjetil » Thu Jun 02, 2022 6:48 am

Hi
I'm wondering how I can use angle probe in practice.
can this be used for example when I put a part on cnc and have to mill it, I then use angle probe to find the direction of the part. So when I have done that I can start the toolpatch and then the cnc keeps the direction?
kjetil
 
Posts: 25
Joined: Sat Apr 30, 2022 5:15 am

Re: Angle probe

Postby charliem » Thu Jun 02, 2022 10:49 am

Yea I wondered this as well. how can this be used in G code?
Regards
Charlie M
charliem
 
Posts: 108
Joined: Sun Jan 01, 2017 5:37 pm

Re: Angle probe

Postby kjetil » Sun Jun 05, 2022 7:43 am

Anyone?
kjetil
 
Posts: 25
Joined: Sat Apr 30, 2022 5:15 am

Re: Angle probe

Postby CL_MotoTech » Sun Jun 05, 2022 1:06 pm

If you guys are referring to G68, you simply probe a known face and the control rotates the work piece accordingly. Your posted gcode doesn't change as the control handles the rotation compensation.
CL_MotoTech
 
Posts: 117
Joined: Thu Feb 15, 2018 3:50 pm

Re: Angle probe

Postby kjetil » Mon Jun 06, 2022 7:37 am

Thanks
step by step then.
1: do an angle probe?

2: save angle.?

3: run your gcodes as usual?

4: angle compensation wil be used?

where can i get the G68 macro?
kjetil
 
Posts: 25
Joined: Sat Apr 30, 2022 5:15 am

Re: Angle probe

Postby cncdrive » Mon Jun 06, 2022 3:54 pm

G68 is a g-code not a macro, it is built into the UCCNC and it does coordinate system rotation.
For the syntax and parameters of G68 please see the UCCNC users manual.
The G69 cancels the G68.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Angle probe

Postby kjetil » Mon Jun 06, 2022 5:28 pm

ok thanks
so then i shoud have it in my software,but how can i get the save settings button ?

in pracis how to do it,se i have probe some part and what is the next step then ?
kjetil
 
Posts: 25
Joined: Sat Apr 30, 2022 5:15 am

Re: Angle probe

Postby dezsoe » Tue Jun 07, 2022 9:11 am

The macro below reads the probed angle and rotates the work area at 0,0 to that angle.

Code: Select all
double angle = AS3.Getfielddouble(2715);                                        // Angle probe result from probe screen

exec.AddStatusmessage("Rotate: G68 A0 B0 R" + angle.ToString("F6"));

exec.Code("G68 A0 B0 R" + angle.ToString("F6"));                                // Rotate at 0,0 with angle degrees
while (exec.IsMoving());
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Angle probe

Postby kjetil » Wed Jun 08, 2022 1:02 pm

thanks
i wil copy that and where to put it ,like a new macro i profiles??

how does it work ,wil it go automatic? or do i have to do something after a angle probe?
kjetil
 
Posts: 25
Joined: Sat Apr 30, 2022 5:15 am

Re: Angle probe

Postby dezsoe » Wed Jun 08, 2022 3:29 pm

Yes, as I wrote, that is a macro. Save it to Mxxxx.txt into your macro directory. You can start it typing its name or if xxxx is 20000 to 21999 then you can create a button to call it.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Next

Return to General discussion about the UCCNC software

Who is online

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