From 34a53018624ffdddf0eecbcdbbec22141353a7bf Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 1 Dec 2025 10:23:40 +0100 Subject: [PATCH] CAM: Switched Fanuc post processor to end program with M30, not M2. The difference according to the documentation is that M30 will rewind the paper tape while M2 will not. The effect on a CNC from 1994 is that M30 turn on the indicator light marking that the program has completed, while M2 do not, and the light is wanted to know when the machine is done. --- src/Mod/CAM/Path/Post/scripts/fanuc_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py index c32950c417..83d0707090 100644 --- a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py +++ b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py @@ -67,7 +67,7 @@ parser.add_argument( ) parser.add_argument( "--postamble", - help='set commands to be issued after the last command, default="M05\\nG17 G54 G90 G80 G40\\nM2\\n"', + help='set commands to be issued after the last command, default="M05\\nG17 G54 G90 G80 G40\\nM30\\n"', ) parser.add_argument( "--inches", action="store_true", help="Convert output for US imperial mode (G20)" @@ -129,7 +129,7 @@ DEFAULT_PREAMBLE = """G17 G54 G40 G49 G80 G90 # Postamble text will appear following the last operation. DEFAULT_POSTAMBLE = """M05 G17 G54 G90 G80 G40 -M2 +M30 """ # Pre operation text will be inserted before every operation