G68 coordinate rotation

If you have a question about the software please ask it here.

G68 coordinate rotation

Postby shad » Sat Jun 03, 2017 7:24 am

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!
Attachments
PlateAlignment.jpg
PlateAlignmentWindow.png
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm

Re: G68 coordinate rotation

Postby dezsoe » Sat Jun 03, 2017 9:07 am

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".
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: G68 coordinate rotation

Postby cncdrive » Sat Jun 03, 2017 11:09 am

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.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: G68 coordinate rotation

Postby shad » Sat Jun 03, 2017 3:45 pm

Oh, I am understand :oops:
Thank you, It's worked fine.
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 21 guests