Loop Error


Results 1 to 4 of 4

Thread: Loop Error

  1. #1
    profoamer76's Avatar
    Join Date
    Oct 2021
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Loop Error

    Getting this error. Loop error The ability to repeat sections of the path requires that the entire path is contained in the Path Data structure at once. A LoppDecision or NonBlockingLoopDecision segment type dectected that PathDataBuffer.Overwritten = TRUE.

    So the code for this is a looping program and after it completes the required loops it goes to a partial loop of the program and then end. I use to write these with an GOTO and had no issues. Switch to YASKAWA Compass and it does not support that. Here is a sample of the program code.
    #500=0
    N1 G09
    N2 M13
    N3 G1F1
    N4 Y27.0000
    N5 X-33.1250
    N6 M0
    N7 M25
    N8 G1F.6
    N9 G4P1000
    N10 Y24.4398
    N11 G4P600
    N12 Y24.4398
    N13 IF [#500 GT 5]N365 The program errors here.
    N14 #500 = #500 + 1
    N15 G4P400
    N16 G92 X0.0000 Y4.4436
    N17 G1F.66
    N18 X33.1250

    It runs through all of the loops and goes to this and once it cycles through it should go to line N365

    N364 IF[#500 LT 5]N14
    N365 G1F.6
    N366 G92 X0.0000 Y4.4436
    N367 G1F.66
    N368 X33.1250
    N369 G4P400
    N370 G1F.61
    N371 Y2.2248
    N372 X33.1235
    N373 G4P400


    Any program I write with any thing that contains any part of the looping gives me that error. If I end the program with a partial loop it runs fine. here is a example of how I end a program normally.



    N207 X0.0000
    N208 Y0.0000
    N209 M5
    N210 IF [#500 LT 15] N14
    N211 G1F.6
    N212 X19.9719
    N213 G4P400
    N214 Y00.0000
    N215 M13
    N216 G92 X-00.0000 Y51.3750
    N217 M30

    it is a long post and i am sorry about that. any suggestion or help on this would be great. Thanks



  2. #2
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Loop Error

    Quote Originally Posted by profoamer76 View Post
    Getting this error. Loop error The ability to repeat sections of the path requires that the entire path is contained in the Path Data structure at once. A LoppDecision or NonBlockingLoopDecision segment type dectected that PathDataBuffer.Overwritten = TRUE.

    So the code for this is a looping program and after it completes the required loops it goes to a partial loop of the program and then end. I use to write these with an GOTO and had no issues. Switch to YASKAWA Compass and it does not support that. Here is a sample of the program code.
    #500=0
    N1 G09
    N2 M13
    N3 G1F1
    N4 Y27.0000
    N5 X-33.1250
    N6 M0
    N7 M25
    N8 G1F.6
    N9 G4P1000
    N10 Y24.4398
    N11 G4P600
    N12 Y24.4398
    N13 IF [#500 GT 5]N365 The program errors here.
    N14 #500 = #500 + 1
    N15 G4P400
    N16 G92 X0.0000 Y4.4436
    N17 G1F.66
    N18 X33.1250

    It runs through all of the loops and goes to this and once it cycles through it should go to line N365

    N364 IF[#500 LT 5]N14
    N365 G1F.6
    N366 G92 X0.0000 Y4.4436
    N367 G1F.66
    N368 X33.1250
    N369 G4P400
    N370 G1F.61
    N371 Y2.2248
    N372 X33.1235
    N373 G4P400


    Any program I write with any thing that contains any part of the looping gives me that error. If I end the program with a partial loop it runs fine. here is a example of how I end a program normally.



    N207 X0.0000
    N208 Y0.0000
    N209 M5
    N210 IF [#500 LT 15] N14
    N211 G1F.6
    N212 X19.9719
    N213 G4P400
    N214 Y00.0000
    N215 M13
    N216 G92 X-00.0000 Y51.3750
    N217 M30

    it is a long post and i am sorry about that. any suggestion or help on this would be great. Thanks
    Something here may help you find the problem.

    N13 IF [#500 GT 5]N365 The program errors here.

    May be the N365 is incorrect

    https://www.cnccookbook.com/cnc-g-co...tions-looping/

    Mactec54


  3. #3
    Member
    Join Date
    Nov 2007
    Location
    Canada and Nothern ireland
    Posts
    352
    Downloads
    0
    Uploads
    0

    Default Re: Loop Error

    Diferenet controls can and have different requirements
    When the control logic is fast as in look ahead fuctions sometimes its a good practice to put brackets after an if statment to give control time for Jump

    If[#500 GT 5 ] N5
    ()
    N5 (new starty )

    Next some controls like Okumas require it to be a complete different function requiring two letters to create the string jump



  4. #4
    profoamer76's Avatar
    Join Date
    Oct 2021
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Re: Loop Error

    Thank you for your time on this.



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 Error

Loop Error