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