I am currently in the process of learning G-code and have ran into a snag with a program. Basically my employer wants me to use a program that the old machinist (No longer here and not on good terms) wrote to produce some parts. After figuring out his setup i hit a snag. The threading cycle starts by the chuck and drags backwards, producing left handed threads. Is there a way to correct this without rewriting from scratch And could you please explain the why of it (if this isnt asking too much)
Thanks again ( section of code below)
(OD THREAD CYCLE)
( SAFETY LINE BELOW )
G00 G54 G18 G40 G80 G97 G99 M31
(TOOL = 3 / OFFSET = 3)
(WORK OFFSET = 54)
(SPINDLE RPM = 1157)
(THREADS PER INCH = 24.)
(THREAD MAJOR DIAMETER = .375)
(THREAD MINOR DIAMETER = 0.33)
(THREAD HEIGHT PER SIDE = 0.026042)
(OPTIMIZED "A" VALUE FOR 60 DEGREE THREADS)
(SEE SETTINGS 95, 96, 99 AND 289 ON THE CONTROL)
T303
G54
G97 S1157 M03
G00 Y0.
G00 Z0.125
G00 X0.775
M08
(**WATCH FOR LIVE CENTER INTERFERENCE**)
(RECOMMENDED Z-AXIS START IS 3 THREADS FROM START POINT)
G00 X0.775 Z-0.163 M24
G76 X0.33 Z0.125 K0.026 D0.0065 F0.0417 A59
G00 Z0.125
M09
G00 G53 X0.
G00 G53 Z0.
G00 Y0.
M05
( END OD THREAD CYCLE )
M01
Thanks again ( section of code below)
(OD THREAD CYCLE)
( SAFETY LINE BELOW )
G00 G54 G18 G40 G80 G97 G99 M31
(TOOL = 3 / OFFSET = 3)
(WORK OFFSET = 54)
(SPINDLE RPM = 1157)
(THREADS PER INCH = 24.)
(THREAD MAJOR DIAMETER = .375)
(THREAD MINOR DIAMETER = 0.33)
(THREAD HEIGHT PER SIDE = 0.026042)
(OPTIMIZED "A" VALUE FOR 60 DEGREE THREADS)
(SEE SETTINGS 95, 96, 99 AND 289 ON THE CONTROL)
T303
G54
G97 S1157 M03
G00 Y0.
G00 Z0.125
G00 X0.775
M08
(**WATCH FOR LIVE CENTER INTERFERENCE**)
(RECOMMENDED Z-AXIS START IS 3 THREADS FROM START POINT)
G00 X0.775 Z-0.163 M24
G76 X0.33 Z0.125 K0.026 D0.0065 F0.0417 A59
G00 Z0.125
M09
G00 G53 X0.
G00 G53 Z0.
G00 Y0.
M05
( END OD THREAD CYCLE )
M01