G98, G99 (Set Canned Cycle Return Level)
When the spindle retracts during canned cycles, there is a choice of how far it retracts:
- retract perpendicular to the selected plane to the position indicated by the R-word
- retract perpendicular to the selected plane to the position that axis was in just before the canned cycle started (unless that position is lower than the position indicated by the R-word, in which case use the R-word position).
To use option (1), program G99. To use option (2), program G98. Remember that the R-word has different meanings in absolute distance mode and incremental distance mode.