Page 1 of 1

G68 coordinate rotation

PostPosted: Sat Jun 03, 2017 7:24 am
by shad
Hello Balazs!
I am use this future for plate alignment.
Operator set two points on the plate, then plugin calculate rotation angle and execute for example "G68X0Y0R3" code.
I am notice, that if the current XY position is not X0Y0, UCCNC make coordinate rotation and gantry move to the zero position (any time this position out from plate and in the Active code DRO I see for example |G68X-7.5Y59.5R7.2|).
Usually G68 just rotate coordinates, but not make any moves.
May be I am doing something wrong?
Please explain :)
Thank you!

Re: G68 coordinate rotation

PostPosted: Sat Jun 03, 2017 9:07 am
by dezsoe
If you run "G68X0Y0R3" then it will move, because G68 works with A and B instead of X and Y. So, you programmed a "G0X0Y0" and a "G68R3". Try "G68A0B0R3".

Re: G68 coordinate rotation

PostPosted: Sat Jun 03, 2017 11:09 am
by cncdrive
Hi Andrew,

Yes, the issue is that you using X and Y, but the parameters of the G68 are A and B, so the X and Y in your code is interpreted separately as a movement with the actul modal 1, that is why a movement happens with your code.

Re: G68 coordinate rotation

PostPosted: Sat Jun 03, 2017 3:45 pm
by shad
Oh, I am understand :oops:
Thank you, It's worked fine.