Need help with Sinumerik subprogram

Results 1 to 4 of 4

Thread: Need help with Sinumerik subprogram

  1. #1
    Member 12345abc's Avatar
    Join Date
    Feb 2019
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default 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.

    Similar Threads:


  2. #2
    Member machinehop5's Avatar
    Join Date
    Aug 2009
    Location
    United States
    Posts
    1567
    Downloads
    5
    Uploads
    2

    Default 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 12345abc's Avatar
    Join Date
    Feb 2019
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Re: Need help with Sinumerik subprogram

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



  4. #4
    Member machinehop5's Avatar
    Join Date
    Aug 2009
    Location
    United States
    Posts
    1567
    Downloads
    5
    Uploads
    2

    Default 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)

    Attached Files Attached Files


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Need help with Sinumerik subprogram

Need help with Sinumerik subprogram