4FlutesMachining
Plastic
- Joined
- May 9, 2017
Hey guys, I am trying to switch our lathe department over from conversational programming to posting from CAM (Esprit) and I am currently trying to get our post to output code the correct way. As the post is now, it outputs 3 separate S values for spindle speed. We have a G50 command that clamps the max spindle speed to whatever s-value. Then there is a G96 that is for constant surface speed. There is also a G97 which sounds like it changes it back to rpm? I assume that is and incorrectly placed G code? Also, further down in the sample of code, it has an S value and another one directly below it?
I am wondering what it SHOULD look like, and any insight as to why would be great.
Here is a sample of my code, please ignore all of the negative X values, we are tweaking the post to invert them:
G0 G99 M6 T0101
M8
G97 S1019 M3
(FACE)
Z0
X-2.503
G50 S1100
G96 S600
G1 X-2.303 F.01
X-1.598
G0 Z.1
(ROUGH OD)
X-2.2
G42 Z0
N5 G50 S1200
S650
G1 Z-.62
X-2.25
G0 Z0
X-2.15
G1 Z-.62
X-2.2
G0 Z0
X-2.1
G1 Z-.0125
X-2.135 Z-.03
Z-.62
X-2.15
G0 Z0
X-2.075
G1 X-2.1 Z-.0125
G40 X-2.3
G0 Z0
X-1.9236 Z.0707
G42 X-2.065 Z0
G1 X-2.125 Z-.03
Z-.62
G40 X-2.325
G0 X-2.5
G97 M9
G0 X6 Z.1
M1
I am wondering what it SHOULD look like, and any insight as to why would be great.
Here is a sample of my code, please ignore all of the negative X values, we are tweaking the post to invert them:
G0 G99 M6 T0101
M8
G97 S1019 M3
(FACE)
Z0
X-2.503
G50 S1100
G96 S600
G1 X-2.303 F.01
X-1.598
G0 Z.1
(ROUGH OD)
X-2.2
G42 Z0
N5 G50 S1200
S650
G1 Z-.62
X-2.25
G0 Z0
X-2.15
G1 Z-.62
X-2.2
G0 Z0
X-2.1
G1 Z-.0125
X-2.135 Z-.03
Z-.62
X-2.15
G0 Z0
X-2.075
G1 X-2.1 Z-.0125
G40 X-2.3
G0 Z0
X-1.9236 Z.0707
G42 X-2.065 Z0
G1 X-2.125 Z-.03
Z-.62
G40 X-2.325
G0 X-2.5
G97 M9
G0 X6 Z.1
M1