Hi John,
G82 is a canned drill cycle with dwell.
The P is the dwell time when the drill get to the bottom.
R is the retract height. You are expecting that the drill tip starts out at 0.1 inch, that is above the board, it drill down at 20 in/min until 0.032 inch below the top
of the board, dwell for 1 second and then retract at rapid rate to Z-0.1 ie 0.1 inch above the board.
All of these values are set when you set-up PCB-Gcode. What thickness is your board?, I would guess it is 32 thou or 0.8mm. Your drill, if everything is perfect,
is going to get to the bottom surface of the board but not penetrate it. Is that what you want? I use 1.5mm PCB and I have the drill go to Z=-1.8mm so
it reliably penetrates the board and I'm quite OK with the drill digging into the spoil board below. Dwell only need be 0.25 sec or so.
The only real error in the code you've posted is that your machine is in XZ plane mode? You want to be in XY plane mode. Try putting a G17 to select XY plane
mode right at the very top of the Gcode job, I'm surprised that its not already active with all the preparatory codes.
If you think that you can do CNC jobs without being able to read and understand basic Gcode... you are wrong. It is a required skill that you be able to understand
little chunks of code like this example and be able to understand what your machine will do when it encounters it. On the Program Run page there are two buttons
to provide concise notes as to the meaning of G and M codes. The CNC bible is:
CNC Programming Handbook by Peter Smid
its a dry read but very good. No doubt there are other texts and probably plenty on the net, find them and
read them, we are not born being able to read Gcode, it something we have to learn. If the value of a hobby is what you have to learn in pursuit of that hobby
the CNC rates very highly...you have to learn untold things to be any good at it.
Craig