Here is what is getting spit out on my cimco edit software from mastercam X4
%
(PROGRAM NUMBER O0000 )
(PROGRAM NAME - TEST1 )
(PART NAME - TEST1)
(TEST1)
( MPL LATHE )
(DATE=DD-MM-YY - 25-01-10 TIME=HH:MM - 11:27 )
/G0 G28 U0
/G28 W0
/G0 W-20.
/M30
N1
M9
( LDRILL SPOT TOOL .25 DIA. )
( TOOL - 1 OFFSET - 1 INSERT - NONE )
M38
G28 U0. W0.
G50 X10. Z10.
G50 X-0 Z0 T0100 S5000
G0 X0. Z.25 T0101
Z.1
G1 Z-.05 F.01
G0 Z.25
M9
X-0 Z0 T0100 M5
M01
N3
M9
( LDRILL DRILL .49 DIA. )
( TOOL - 3 OFFSET - 3 INSERT - NONE )
M38
G28 U0. W0.
G50 X10. Z10.
G50 X-0 Z0 T0300 S5000
G0 X0. Z.25 T0303
( MPL NK4 LATHE )
Z.1
G1 Z-1.1502 F.01
G0 Z.25
M9
X-0 Z0 T0300 M5
M01
N5
M9
( LFINISH ID ROUGH MIN. .25 DIA. - 75 DEG. )
( TOOL - 5 OFFSET - 5 INSERT - NONE )
M39
G28 U0. W0.
G50 X10. Z10.
G50 X-0 Z0 T0500 S10000
G96 S200 M03
G0 X.5 Z.1 T0505
( MPL NK4 LATHE )
G1 Z0. F.01
Z-1.
X.4579
X.3164 Z-.9293
G0 Z.03
M9
X-0 Z0 T0500 M5
M01
N7
M9
( LTHREAD ID THREAD - MIN. .25 DIA. )
( TOOL - 7 OFFSET - 7 INSERT - NONE )
M38
G28 U0. W0.
G50 X10. Z10.
G50 X-0 Z0 T0700 S5000
G0 X.2459 Z.212 T0707
( MPL NK4 LATHE )
G76 P010029 Q0. R0.
G76 X.5 Z-.9731 P270 Q54 R0. E.05
M9
X-0 Z0 T0700 M5
M30
%
Why am I getting (2) G50 lines with every tool? How do i change this. I know C++ and can edit posts but would need guidance on exactly what to change.
Also,
My threading cycle.. How can I change it to put out something exactly like this...
Line 1= G76 P=(no. of passes), then camfer, then insert angle
Line 2= G76 X(minor dia.) Z=(thread length) P(thread depth from major to minor, No decimal) Q (depth of 1st cut, No decimal) F (FEED= 1/Pitch)
Any help would be greatly appreciated..
I am not sure, however I would like to edit my post so that it outputs a T0100 at first and then includes the offset on the first move like you have. may I ask how you did that?
E.G.
G50 X-0 Z0 T0100 S5000
G0 X0. Z.25 T0101
CNC Machinist & Engineering Tech
B.S.M.E. Student (Graduate 2013 @ UCF)