From 0cdf9abc4b3af866928960a07fc324c5bd67583d Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 27 Nov 2025 18:58:20 +0100 Subject: [PATCH] CAM: Adjusted Fanuc post processing script to always start with a percent The percent signal to the machine that a program follows, and is not part of the header but a required part when uploading programs into the machine. --- src/Mod/CAM/Path/Post/scripts/fanuc_post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py index 27363acb2a..02b921a2a0 100644 --- a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py +++ b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py @@ -230,9 +230,10 @@ def export(objectslist, filename, argstring): print("postprocessing...") gcode = "" + gcode += "%\n" + # write header if OUTPUT_HEADER: - gcode += "%\n" gcode += ";\n" gcode += ( os.path.split(filename)[-1]