Skip to content

Commit ae93104

Browse files
committed
add optional p word for peck clearance to G73 and G83
1 parent 3b6f309 commit ae93104

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

docs/src/gcode/g-code.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ It is an error if:
17571757

17581758
[source,{ngc}]
17591759
----
1760-
G73 X- Y- Z- R- Q- <L->
1760+
G73 X- Y- Z- R- Q- P- <L->
17611761
----
17621762

17631763
* 'R' - retract position along the Z axis.
@@ -1766,7 +1766,7 @@ G73 X- Y- Z- R- Q- <L->
17661766

17671767
The 'G73' cycle is drilling or milling with chip breaking.
17681768
This cycle takes a Q number which represents a 'delta' increment along
1769-
the Z axis.
1769+
the Z axis. Peck clearance can be specified by optional P number.
17701770

17711771
* Preliminary motion.
17721772
** If the current Z position is below the R position, The Z axis does
@@ -2371,7 +2371,7 @@ seconds at the bottom of the hole.
23712371

23722372
[source,{ngc}]
23732373
----
2374-
G83 (X- Y- Z-) or (U- V- W-) R- L- Q-
2374+
G83 (X- Y- Z-) or (U- V- W-) R- L- Q- P-
23752375
----
23762376

23772377
The 'G83' cycle (often called peck drilling) is intended for deep
@@ -2381,7 +2381,8 @@ drilling in aluminum). This cycle takes a Q number which represents a
23812381
'delta' increment along the Z-axis. The retract before final depth will
23822382
always be to the 'retract' plane even if G98 is in effect. The final
23832383
retract will honor the G98/99 in effect. G83 functions the same as G81
2384-
with the addition of retracts during the drilling operation.
2384+
with the addition of retracts during the drilling operation. Peck clearance
2385+
can be specified by optional P number.
23852386

23862387
* Preliminary motion, as described in the
23872388
<<gcode:preliminary-motion,Preliminary and In-Between Motion>> section.

src/emc/rs274ngc/interp_cycles.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int Interp::convert_cycle_g83(block_pointer block,
154154
Thanks to Billy Singleton for pointing it out... */
155155
CHKS((delta <= 0.0), NCE_NEGATIVE_OR_ZERO_Q_VALUE_USED);
156156

157-
rapid_delta = _setup.parameter_g83_peck_clearance;;
157+
rapid_delta = block->p_flag?block->p_number:_setup.parameter_g83_peck_clearance;
158158

159159
for (current_depth = (r - delta);
160160
current_depth > bottom_z; current_depth = (current_depth - delta)) {
@@ -215,7 +215,7 @@ int Interp::convert_cycle_g73(block_pointer block,
215215
Thanks to Billy Singleton for pointing it out... */
216216
CHKS((delta <= 0.0), NCE_NEGATIVE_OR_ZERO_Q_VALUE_USED);
217217

218-
rapid_delta = _setup.parameter_g73_peck_clearance;
218+
rapid_delta = block->p_flag?block->p_number:_setup.parameter_g73_peck_clearance;
219219

220220
for (current_depth = (r - delta);
221221
current_depth > bottom_z; current_depth = (current_depth - delta)) {

0 commit comments

Comments
 (0)