Need help with Sinumerik subprogram
Hi,
I am trying to program a loop for broaching a keyway. I am making subprogram for that, but dont know how to program it correctly so I need some help.
I am trying to program this:
G0 Y-5 (comming to starting position)
G1 Z-72 F3000 (broaching down with a feedrate)
G0 Y0 (rapid to safe y position)
G0 Z1 (rapid out to safe z)
G0 Y-5.05 (rapid to next y position)
G1 Z-72 F3000
G0 Y0
G0 Z1
G0 Y-5.1
So the question is how to write a cycle that goes to to the next y by he same amount (y-5.05 ; y-5.1 ; y-5.15; y-5.2 etc) for lets say 60 times. Of course I can write that manually, but maybe it is possible to write a cycle for that?
Hope you understand the question.
Re: Need help with Sinumerik subprogram
... use an Incremental move with Y say .1mm looped 10 times would be 1.0mm or what ever you like
Re: Need help with Sinumerik subprogram
Can you write an example how the code with incremental move should look like?
1 Attachment(s)
Re: Need help with Sinumerik subprogram
,,,here's one way might work for ya....format might not be correct...change as needed
in the Main program Position your start point
N100 G0 G90 X0 Y-5 Z1 (starting position) or what ever
N101 BROACH Pxxxx (the P is how many times to repeat the sub program)
N102 G0 G90
N103 G28 Z0
N104M30
BROACH
G91 Y-.05
G1 Z-73 F3000 (broaching down with a feedrate)
G0 Y.05(rapid to safe y position)
G0 Z73 (rapid out to safe z)
G0 Y-.05 (rapid return from safe y move)
M17 or M99 (not sure for your machine)