Gcode question - G10

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

Gcode question - G10

Postby spumco » Sat Oct 20, 2018 4:02 am

I'm trying to edit a drilling job on a rotary axis and set up an 'unwind' or 'reset' function at the end of the code.

Basic job is to drill four holes equally spaced around the circumference of a tube. Start at A0, drill/retract, next hole at A90, then A180, A270, end program. I wanted to re-set A-axis to A0 so I didn't have to wait for it to 'unwind' or have to manually zero the DRO at the end of each part.

Using

G10 L2 P1 A0

in offline mode resulted in odd behavior of the DRO's. A-axis wound up at A1309.49, and other attempts with the other axis set the DRO to the machine coordinates.

I then realized I should have been using

G92 A0

Which sorted things out just fine.

Leaving me with the question - is G10 used to set the programmed WCS (Pxx) axis to the machine coordinates? Or am I missing something with what G10 is intended to accomplish?

Thanks,
Ralph
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm

Re: Gcode question - G10

Postby dezsoe » Sat Oct 20, 2018 9:34 am

Yes, it uses machine coords. If you use G10 L2, don't forget the G92 and tool length offsets.
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 23 guests