Invalid Buffer Times
Posted: Wed Mar 01, 2023 12:21 pm
Hi Tom,
I found a strange problem with trajectory planner.
I'm using 4.35f with Trajectory planner patch (we discussed of a smoothing problem and the patch on march 2021) and occasionally the interpreter stops with "ERROR - Invalid Buffer Times in Trajectory Planner".
It is something due to trajectory smoothing because changing the parametres it disappears.
I identified a code segment that reproduces the problem (see attachemnt).
The original TP params were:
Break Angle = 40 deg
Corner Tolerance = 0.01 mm
Collinear Tolerance = 0.0 mm
Facet Angle = 1.0deg
with those params around N50496 in the attached code the TP stops executing and reports the error in the console (also the buffer is corrupted and I have to power cycle kflop to start again).
If I change BA under 26deg or change FA to other values (I tried 1.5, 1.25, 0.75 and 0.25) all is ok.
I plotted Gcode segments and angle change around N50496 is 26.9 deg. So i tried 26 deg -> OK, but 27 deg is not. The supsect is corner smoothing obviously, but it happens only with 1.0 deg Facet Angle.
I tried with both our machine (fully cabled and all bells and whistles running on it) and a simple setup with only PC and Kflop with a stripped down Init.c program configured with step dir axes. The problem is perfectly repeatable.
Please can you give me some hints to sort out this problem?
Thanks
Best regards
Giancarlo
I found a strange problem with trajectory planner.
I'm using 4.35f with Trajectory planner patch (we discussed of a smoothing problem and the patch on march 2021) and occasionally the interpreter stops with "ERROR - Invalid Buffer Times in Trajectory Planner".
It is something due to trajectory smoothing because changing the parametres it disappears.
I identified a code segment that reproduces the problem (see attachemnt).
The original TP params were:
Break Angle = 40 deg
Corner Tolerance = 0.01 mm
Collinear Tolerance = 0.0 mm
Facet Angle = 1.0deg
with those params around N50496 in the attached code the TP stops executing and reports the error in the console (also the buffer is corrupted and I have to power cycle kflop to start again).
If I change BA under 26deg or change FA to other values (I tried 1.5, 1.25, 0.75 and 0.25) all is ok.
I plotted Gcode segments and angle change around N50496 is 26.9 deg. So i tried 26 deg -> OK, but 27 deg is not. The supsect is corner smoothing obviously, but it happens only with 1.0 deg Facet Angle.
I tried with both our machine (fully cabled and all bells and whistles running on it) and a simple setup with only PC and Kflop with a stripped down Init.c program configured with step dir axes. The problem is perfectly repeatable.
Please can you give me some hints to sort out this problem?
Thanks
Best regards
Giancarlo