Ok, here's the Mach post modified. I added lines 698-704, these lines setup the variables that are used when you call output_tool_list. Then I changed line 110 to use these variables. You can see in your old post that "S1" was hard coded in. Now it is a variable and the system should automatically put the right one in depending on what the tool shape is (1: Flat 2: Ball, etc.)
The code you posted here doesn't appear to match what is in the mach post file. The mach post has 3AXVMILL.MCH in the header area and the code you posted has 4AXVMILL.MCH (also the sample code says you are using the HAAS post) I used the new mach post on one of my part files and here is the header that I got:
Code:
(BEGIN PREDATOR NC HEADER)
(MACH_FILE=3AXVMILL.MCH)
( MTOOL T1 S2 D.5 H2.625 A0. C0. DIAM_OFFSET 1 = .25)
( MTOOL T2 S1 D2. H2.25 A0. C0. DIAM_OFFSET 2 = 1.)
(SBOX X0. Y-1.9685 Z-1.9685 L2.7559 W1.9685 H1.9685)
(END PREDATOR NC HEADER)
%
O100
(PROGRAM NUMBER)
(PROGRAM NAME - XX-XXXX-064.NC)
(POST - MACH 3 MILL)
(DATE - TUE. 08/11/2009)
(TIME - 09:19AM)
N01 G20 G40 G49 G57 G80 G90 G91.1
N02 G53 Z0.
Anyway, if you are using multiple posts always make sure they have lines 698-704. These came from the Bird over on the BobCAD site. On a final note, you may want to go back through your post and make sure that all the lines are in numerical order. It really doesn't effect the way the post works but there are some circumstances where there are duplicate lines in the post. It's easier to track them down if they are all in order. Good luck.