How to edit millpst

how do i edit the millpst to see what the drill cycle does after it is done. I am using Mach 3, and just about everything time it will move to a position in z that goes beyund my Taig Mill limits or it will do the opposite and go to the last hole drilled and try to go to
China and sometimes it works like it should.

100
(PROGRAM NAME - 12 INCH BOT.NC)
(DATE - FRI. 07/28/2023 ,TIME - 01:06PM)
(POST -  Mach3 )
(TOOL LIST)


T5 M06 (1/4 DRILL)
G90 S7761 M03
G00 G54 X1.3 Y-0.3
G43 H5 Z1.
M08
Z0.2
G81 G98 X1.3 Y-0.3 Z-0.3551 R0.1 F22.5088
Y-1.7
X13.2
Y-0.3
G80
G00 Z1.
M05
M09
G91 G28 Z0
G28 Y0
T5 M06
M30
%

is this where i edit the Millpst?

511. Use incremental coordinates? n
512. Use block delete for stop codes (M00)? n
513. Output F feedrate values? n
515. Output G99 instead of G98 in drilling? n
516. Output G98/G99 in drilling? y
518. Output M00 codes? n

Hi,
perhaps you can start with putting “debug_on” in section 0 of your PP like stated below:

0. File header
debug_on
default_add_spaces
"(O",prog_n, ")"
...

This gives you detailed information in your posted G-Code.

Regards, Harald

Thanks!
I’ll try that.

Hey David,

As Harald said, start with enabling debug mode. When you post out the program with Debug on, it will tell you which block in the post processor the g-codes come from.

Also, a great resource when modifying a post porcessor is the Post Processor Help System: HERE

Go through the “What is a Post Processor” section to start with. Then, the sections you will use the most after that are the “Post Block Reference” and “Post Variable Reference” sections as these sections tell you what each Block and Variable in the post processor does.

Finally, if you navigate to the Documentation folder in the BobCAD-CAM Data Folder (Here: C:\BobCAD-CAM Data\BobCAD-CAM V35\Posts\Documentation), there are PDFs that you can use as a reference when creating or modifying Posts.