Editor: Mastercam Post
[Toolchange blocks] ptlchg$ #Tool change ptlchg0$ #Null tool change
ptlchg$ #Tool change "M06", *t$, e$
[Header comments] # Post Name: Generic Fanuc 3X Mill.pst # Product: MILL # Machine type: 3-Axis Vertical # Control: Fanuc [Start of program] Revision log -------------------------------------------------------------------------- [Variable declarations] fmt "N" 4 n fmt "X" 2 xabs fmt "Y" 2 yabs fmt "Z" 2 zabs mastercam post editor
ptlchg$ #Tool change "M06", *t$, "(", s_tool_name, ")", e$ peof$ #End of file "M09", e$ "M05", e$ "G91 G28 Z0", e$ "M30", e$ "M99", e$ # <--- Added custom M-code (return to main program) Task 3: Force Output of X, Y, Z on Every Line Modify the format assignment: [Toolchange blocks] ptlchg$ #Tool change ptlchg0$ #Null tool
[Pre-defined postblocks] psof$ #Start of file pheader$ #Header output pinit$ #Initialization block e$ peof$ #End of file "M09"
[String definitions] smetric : "G21" #Metric code senglish : "G20" #Inch code sm04 : "M04" #Spindle reverse