Page 1 of 2
Angle probe
Posted:
Thu Jun 02, 2022 6:48 am
by kjetil
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?
Re: Angle probe
Posted:
Thu Jun 02, 2022 10:49 am
by charliem
Yea I wondered this as well. how can this be used in G code?
Re: Angle probe
Posted:
Sun Jun 05, 2022 7:43 am
by kjetil
Anyone?
Re: Angle probe
Posted:
Sun Jun 05, 2022 1:06 pm
by CL_MotoTech
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.
Re: Angle probe
Posted:
Mon Jun 06, 2022 7:37 am
by kjetil
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?
Re: Angle probe
Posted:
Mon Jun 06, 2022 3:54 pm
by cncdrive
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.
Re: Angle probe
Posted:
Mon Jun 06, 2022 5:28 pm
by kjetil
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 ?
Re: Angle probe
Posted:
Tue Jun 07, 2022 9:11 am
by dezsoe
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());
Re: Angle probe
Posted:
Wed Jun 08, 2022 1:02 pm
by kjetil
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?
Re: Angle probe
Posted:
Wed Jun 08, 2022 3:29 pm
by dezsoe
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.