525,364 active members*
2,462 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2019
    Posts
    5

    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.

  2. #2
    Member
    Join Date
    Aug 2009
    Posts
    560

    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

  3. #3
    Member
    Join Date
    Feb 2019
    Posts
    5

    Re: Need help with Sinumerik subprogram

    Can you write an example how the code with incremental move should look like?

  4. #4
    Member
    Join Date
    Aug 2009
    Posts
    560

    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)

Similar Threads

  1. Subprogram
    By bcnu in forum BobCad-Cam
    Replies: 2
    Last Post: 04-08-2015, 08:02 PM
  2. Sinumerik 840C, Sinumerik 840D
    By marek-vavra in forum SIEMENS Sinumerik CNC controls
    Replies: 2
    Last Post: 06-22-2013, 11:37 PM
  3. LBL in subprogram
    By GreenVeltlins77 in forum HEIDENHAIN -> TNC
    Replies: 5
    Last Post: 12-10-2011, 04:29 PM
  4. subprogram
    By krow in forum OKK
    Replies: 0
    Last Post: 09-30-2009, 11:18 PM
  5. eia subprogram
    By rs1982 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 4
    Last Post: 04-11-2008, 02:10 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •