I need to have the coolant, M8, turn on at the Z.1 line, which is the feed plane for a contour. I need it for a mill post, specifically a Mori Seiki Partner M300-L vertical mill with Fanuc control, a 1995 model, and a Komo VMC 40/144 vertical mill with Fanuc control, a 1996 model. I use the same post for both machines. I use Mcam X2. The post is a generic Fanuc mill post I have edited.
The bad code goes:
G90 G54 X-.3 Y-3.3 T2 G43 H1 Z2. M3 S6000 Z.1 G1 Z-1.02 F50. G41 D1 X0. F20. Y.3 G0 G40 Z2. M9 M6
The good code that I need is:
G90 G54 X-.3 Y-3.3 T2 G43 H1 Z2. M3 S6000 Z.1 M8 G1 Z-1.02 F50. G41 D1 X0. F20. Y.3 G0 G40 Z2. M9 M6
If I put "scoolant" on the psof section of the post as:
pcan1, pbld, n$, "G90 G54",pfxout, pfyout, pfcout, pgear, strcantext, next_tool$, e$ pbld, n$, "G43", *tlngno$, pfzout, *spindle, *speed, scoolant, e $ absinc$ = sav_absinc pcom_movea toolchng = zero
It will give me the following program:
( 1/4" SKI CARB, D1) G90 G54 X-.3 Y-3.3 T6 G43 H1 Z2. M3 S6000 Z.1 M8 G1 Z-1.02 F50. G41 D1 X0. F20. Y.3 G0 G40 Z2. M8 X10.3 M8 Z.1 M8 G1 Z-1.02 F50. G41 D1 X10. F20. Y-3.3 G0 G40 Z2. M8 M6
As you can see, it gives too many M8's and it won't shut off the coolant with M9 at the "G0 G40 Z2. " line just before the tool change.
I'm pulling out my hairs here, and not just my gray ones either!