I was hoping for some help with our HAAS machines. I currently run subprograms with the M98 code all the time. We spoon feed our mills with DNC-Max and it works great. We use mastercam to program our parts. Mastercam will create subprograms for me using the M97 code and puts the sub inside (locally) the main program. I like this because I've only have 1 program not 2 like i have now with the M98 code. The issue is, when I send the prorgram with the M97 code to the mill, I get error 373 INVALID CODE IN DNC when it reads the line M97 P1000. I've been told that maybe HAAS can't run this type of subprogram thru DNC. Heres the program:
%
O0000 (O1963)
G00 G17 G20 G40 G49 G80 G90 M31
G91 G28 Z0.
G00 G90 G54
M97 P1000
M05
G91 G28 Z0.
M01
G00 G90 G55
M97 P1000
M05
G91 G28 Z0.
G90
G59 X0. Y0.
G54 M33
M06 T5
M30


N1000
G90
T1 M06 (1/2" INSERTED SPOT DRILL / CHAM)
G00 G17 X0. Y0. S2500 M03
G43 H1 Z5. M08
G94
G98 G81 Z4. R4.1 F10.
G80 M09
M05
G91 G28 Z0.
M01
T2 M06 (9/32" DRILL)
G00 G17 G90 X0. Y0. S2500 M03
G43 H2 Z5. M08
G94
G98 G81 Z4. R4.1 F10.
G80 M09
M99
%

Similar Threads: