I have been programming CNC Machines for many years and also teach EIA G-code programming and set up at a local college. Over the years I have used this post format for the mentioned machine as a safe reliable post for the safe operation of cnc mills. It only requires a few tweaks to have it work on a machine requiring G30 home commands for tool changes and pallet change operations. it is neat and tidy looking wich many many machine operators have thanked me for, and it is easy to find "the next tool to run" in a safe manner. Each tool starts and ends with a with the basic same format, each tool is self-contained for safety.
Look at it and give me feedback and possibly someone can build a better post that is universal to use.
here is an example
SyntaxEditor Code Snippet
%
O1010 (CFX-114W3225-3-4)
(EDIT LOG)
(NOV-21-2017, INITIAL PGRM RLS DATE)
(TIME - 7:11 AM)
(SV / /06, PGRM BACK UP DATE)
(************)
(T12|1 FLAT ENDMILL )
(T1 |1/2 BULL ENDMILL .02 RAD )
(T11|1/2 DIA 4 FLT ENDMILL, 2.0 LOC)
(T13|3/8 BALL ENDMILL )
(************)N12 G28 G91 Z0 M05
G00 G17 G40 G49 G80 G90 G98
M06 T12 (1 FLAT ENDMILL)G54 X-6.4308 Y-4.9596 S2500 M03 start of tool lines
G43 H12 Z4. M08
Z2.9308
.........
BODY OF PROGRAM
.........
G00 Z4. M09
G28 G91 Z0 M05 end of tool lines (all tools the same)
M01
(************)
SyntaxEditor Code Snippet
N1 G28 G91 Z0 M05
G00 G17 G40 G49 G80 G90 G98
M06 T1 (1/2 FLAT ENDMILL .02 RAD)G54 X-1.7248 Y-2.541 S7500 M03 start of tool lines
G43 H1 Z4. M08
........
BODY OF PROGRAM
........
SyntaxEditor Code Snippet
G28 G91 Z0 M05
G28 G91 Y0. Z0. end of tool and end of program lines
M30
%