Hello All,
I’m new to CAM and could use a little help to do this op the right way. Here’s what I’m trying to do.
We’re making 6 parts out of a single bar on our Fanuc i-series turning center. We set our initial G54 per normal. Then I’d like the program to run to completion and right at the end shift the G54 Z-0.962 incrementally from where it does that parting operation.
Then we can cycle start again after we clear the part and it will run the second part with that new G54 face location. We’re not making a ton of these, so I’m happy to have the operator just re-run the program manually. I don’t want to run a sub-program with multiple parts for this one.
I tried to add the following at the end of my program, but I got a bad G-code error: G91 G10 L2 P1 X0 Z-0.962
Any tips would be greatly appreciated!
Thanks,
Nick
G91 G10 L2 P1 X0 Z-0.962
I’m using the Haas Lathe G code manual - I dont have a Fanuc but it should be similar
L2 sets WC - P1 = G54
I don’t think you can use G91 in lathe - you need a W-.962 for incremental but I am not sure - we had it so it kept on adding incrementally negative direction after end or each part
I had setup a 4 inch bar to make 6 discs and want to just shift the program and re run - I thought I still had the code as I had to hand program the shift - similar to what you describe. I think we used L10 to add incremental shift. L2 sets the WC to a hard number
maybe take out the G91 if want to force the G54 Z to be that Z-.962?
1 Like
it depends on what control you’re using if you can or cannot use G90 or G91, haas uses it as something in the way like G71 and G72, canned cycles.
There is no G91 code on Fanuc O-T control or any Haas Lathe Control ( I dug up my Daewoo Fanuc Lathe training book). G90 is is the older Ruffing Code which is now G71.
G71 and G70 use X/Z or U/W as absolute or incremental in profile and G71 uses U W in G71 line as remaining stock.
Practical Machinist Forum on Lathe Code
This is my share link file for a copy of Fanuc Lathe book
Fanuc Lathe Book
Fanuc Lathe Workbook 0T Daewoo