Add some extra docs and combinatorial checks

This commit is contained in:
James Waples
2024-04-02 09:33:53 +01:00
parent 0e502a1a53
commit 37c27b9488

View File

@@ -61,7 +61,7 @@ def generate(
If feedRetract is True, the generator will produce G85 cycles which retract
the tool at the specified feed rate instead of performing a rapid move.
This is useful for boring or reaming operations.
This is useful for boring or reaming operations. Peck or dwell cannot be used with feed retract.
http://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g85
"""
@@ -78,6 +78,12 @@ def generate(
if dwelltime > 0.0 and peckdepth > 0.0:
raise ValueError("Peck and Dwell cannot be used together")
if dwelltime > 0.0 and feedRetract:
raise ValueError("Dwell and feed retract cannot be used together")
if peckdepth > 0.0 and feedRetract:
raise ValueError("Peck and feed retract cannot be used together")
if repeat < 1:
raise ValueError("repeat must be 1 or greater")