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.
This commit is contained in:
Petter Reinholdtsen
2025-12-01 10:23:40 +01:00
parent 8b500ca9a3
commit 34a5301862

View File

@@ -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