Merge pull request #27788 from petterreinholdtsen/cam-fanuc-fix-drilling

CAM: Adjusted fanuc post processor to always use required drill parameters.
This commit is contained in:
sliptonic
2026-02-23 10:54:41 -06:00
committed by GitHub
+12 -1
View File
@@ -150,6 +150,11 @@ POST_OPERATION = """"""
TOOL_CHANGE = """G28 G91 Z0
"""
# List of drill G codes where some parameters are required and their
# required parameters.
DRILL_OPERATION = ("G73", "G81", "G82", "G83", "G84", "G85")
DRILL_PARAM_REQ = ("L", "P", "Q", "R", "Z")
def processArguments(argstring):
global OUTPUT_HEADER
@@ -395,6 +400,8 @@ def linenumber():
def parse(pathobj):
global PRECISION
global DRILL_OPERATION
global DRILL_PARAM_REQ
global MODAL
global OUTPUT_DOUBLES
global UNIT_FORMAT
@@ -627,7 +634,11 @@ def parse(pathobj):
if (
(not OUTPUT_DOUBLES)
and (param in currLocation)
and (currLocation[param] == c.Parameters[param])
and currLocation[param] == c.Parameters[param]
and (
command not in DRILL_OPERATION
or (command in DRILL_OPERATION and param not in DRILL_PARAM_REQ)
)
):
continue
else: