Thread: Sub programing in turning
I have been looking at this for a while where have I gone wrong folks
I am trying to use a G91 to inc step to cut a streight line then a chamfer so I end up with a turned down bit of bar with a 45deg angle to the outer bar size.
Please tell me where I'm going wrong
If not clear please let me know what I need to explain better
G90 G18 G40 G80 G21
G00 Z50 x23
G01 X0 f75
G0 Z46 X22
G01 Z45 x21.8
M98 P0002 L32
G90 z46 x22
G01 Z30 f100
G01 Z25 X22
G0 Z46 X21.8
Hi, what control are you using? Do you have G71/G72?
You need to get rid of the G90 in the subroutine.
As it stands, you switch to incremental (G91) and move X, but then you switch back to absolute (G90) and ultimately move the X to an absolute position. So rather than every iteration of your sub moving incrementally in the X, you always end up moving to an absolute X position which means the next iteration will simply repeat the exact same movements.Avoiding the rubbish customer service from AluminiumWarehouse since July '13.
Yes I see what you mean now. I was trying to use a sub program to avoid a shed load of code to get the bar turned down and the chamfer at the same time
By robhooley167 in forum Projects, Jobs & RequestsReplies: 0Last Post: 05-12-2015, 11:41 PM
RFQ: Turning requirementBy Sparky in forum Projects, Jobs & RequestsReplies: 0Last Post: 19-01-2015, 07:15 PM
By eamo1978 in forum SolidworksReplies: 6Last Post: 25-06-2014, 09:57 AM
RFQ: Parts need turningBy ams in forum Projects, Jobs & RequestsReplies: 17Last Post: 14-01-2014, 11:27 PM
By irving2008 in forum Lathes, Lathe Rebuilding & ConversionsReplies: 15Last Post: 16-12-2012, 09:48 PM