Loop Cycle Help


Results 1 to 5 of 5

Thread: Loop Cycle Help

  1. #1
    Member tsaladyga's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    37
    Downloads
    0
    Uploads
    0

    Default Loop Cycle Help

    Hi Guys,
    I need some help if possible I am trying to write a loop program for our C-axis lathe to mill a diameter of a part from 9.5 inches down to 7.5 Inches. I want to be able to have the operator adjust those diameters based on Customer specs.
    I tried writing a loop program but I am getting nowhere.
    Can someone take a look at my code and tell me what I am doing wrong?
    I want to take a .04 depth of cut each pass until it reaches 7.5 diameter.


    NT7
    ( .875 MILL)
    T0707
    (7/8 MILL)
    G136 ( Y Axis Mode/Coordinate Conversion:ON)
    M110 ( C-Axis Joint:ON)
    SB=3400 M13
    M175
    CALL OTURN XX=9.5 XXX=7.5
    M09
    M12
    M109
    X20
    Z30
    M30

    OTURN
    NLOOP
    G0 Z-.88
    G0 C180
    G0 X10.25
    M08
    M15
    G0 X=XX
    XST=XX
    XDT=-.04
    G01 G91 X[XDT] F.02
    XDT=XDT+XST
    G90
    G01 G91 C359 F.03
    G90
    G01 Z-1.4
    M16
    G91
    G01 C209
    G90
    G01 Z-1.875
    M15
    G91
    G01 C170
    G90
    G01 Z-2.301
    M16
    G91
    G01 C170
    G90
    G01 Z-2.7
    M15
    G91
    G01 C170
    G90
    G01 Z-3.1
    M16
    G91
    G01 C170
    G90
    G01 Z-3.5
    M15
    G91
    G01 C359
    G90
    IF[XDT GE XXX]NLOOP
    G00 X10.25
    RTS

    Similar Threads:


  2. #2
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Loop Cycle Help

    hi, i don't have time to check your code, but i will give you a nice code if you share specific details : tool, drawing before and after the operation, etc / kindly

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  3. #3
    Member tsaladyga's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    37
    Downloads
    0
    Uploads
    0

    Default Re: Loop Cycle Help

    Using C axis to rough mill a diameter from X9.5 to X7.5 taking .04 depth of cut using a 5/8 endmill going from -1 to -3 in Z axis Rocking back and forth 170 degrees.



  4. #4
    Member kurmay's Avatar
    Join Date
    Aug 2011
    Posts
    419
    Downloads
    3
    Uploads
    0

    Default Re: Loop Cycle Help

    XDT=XDT+XST is wrong

    https://www.facebook.com/okuma.tuning


  5. #5
    Member OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    1262
    Downloads
    0
    Uploads
    0

    Default Re: Loop Cycle Help

    You are also looping to the wrong spot. You essentially reset your XST with every loop. Move NLOOP down in the code to after XST=XX.

    Best regards,

    Experience is what you get just after you needed it.


  6. #6
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Loop Cycle Help

    hi / i am sorry, i can't draw your part; at least i tried ( check attached )

    to deliver a nice thing, i need a technical drawing, or at least a nice sketch

    i can help you, to make it parametric / kindly

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  7. #7
    Member tsaladyga's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    37
    Downloads
    0
    Uploads
    0

    Default Re: Loop Cycle Help

    Awesome Thank you Okuma Wiz that did it!



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

Loop Cycle Help

Loop Cycle Help