Welcome! Log In Create A New Profile

Advanced

PID Autotune Error:Line Number is not Last Line Number+1

Posted by El_Bouck 
PID Autotune Error:Line Number is not Last Line Number+1
April 28, 2015 04:28AM
Hi everyone,

I'm having an issue while trying to tune the PID.

The autotuning starts well when I send the following Gcode: "M303 S230 C10" but at the end of the process, I get an error message like this:

Error:Line Number is not Last Line Number+1, Last Line: 30
Resend: 31

I tried to reboot my computer as well as the printer and the error keeps happening.
I'm using *Repetier with Marlin firmware.
Finally, I'm not really sure about this but it might have started after I installed an LCD controller panel.

If someone has any idea to sort this out, I would really appreciate it!

Thanks of all for your help,
El_Bouck

*Edit: Have no idea why I first wrote Pronterface, I'm using Repetier host!

Edited 1 time(s). Last edit at 04/28/2015 06:27PM by El_Bouck.
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 28, 2015 12:08PM
Quote
El_Bouck
Hi everyone,

I'm having an issue while trying to tune the PID.

The autotuning starts well when I send the following Gcode: "M303 S230 C10" but at the end of the process, I get an error message like this:

Error:Line Number is not Last Line Number+1, Last Line: 30
Resend: 31

I tried to reboot my computer as well as the printer and the error keeps happening.
I'm using Pronterface with Marlin firmware.
Finally, I'm not really sure about this but it might have started after I installed an LCD controller panel.

If someone has any idea to sort this out, I would really appreciate it!

Thanks of all for your help,
El_Bouck

You may be better asking this question in a more Suitable part of the Forum as this is the dedicated Repetier section Forum
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 28, 2015 06:30PM
Oops at first I didn't understand why you replied that since I do use Repetier.. Then I re-read my post an saw my mistake.

I certainly had this name (pronterface) in mind when I wrote my post... But it is well with Repetier-host that I have this problem smiling smiley

Sorry for my mistake!
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 29, 2015 02:20AM
Main question is if it keeps sending this message. This is just a info that the firmware thinks a line was skipped and repetier will resend it so work goes on. So please enable commands in log and see what line 30 was and if everything is ok after it got resend. If it normally does not happen and only after M303 it might be a problem in Marlin, but as long as it continues to accept commands I wouldn't bother too much.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 29, 2015 04:09AM
Hi, I enabled commands in log but I should confess I don't understand everything..

If you could take a quick look at it, it would be great!
Here is what I got:

08:52:42.642 : N35 M303 S235 *114
08:52:42.642 : PID Autotune start
08:52:44.997 : N36 M105 *50
08:52:48.055 : N37 M105 *51
08:52:51.113 : N38 M105 *60
08:52:54.170 : N39 M105 *61
08:52:57.228 : N40 M105 *51
08:53:00.285 : N41 M105 *50
08:53:03.343 : N42 M105 *49
08:53:06.401 : N43 M105 *48
08:53:09.458 : N44 M105 *55
08:53:12.516 : N45 M105 *54
08:53:15.573 : N46 M105 *53
08:53:18.631 : N47 M105 *52
08:53:19.146 : bias: 82 d: 82 min: 233.28 max: 238.83
08:53:21.689 : N48 M105 *59
08:53:24.746 : N49 M105 *58
08:53:27.804 : N50 M105 *50
08:53:30.861 : N51 M105 *51
08:53:33.919 : N52 M105 *48
08:53:36.977 : N53 M105 *49
08:53:37.242 : bias: 84 d: 84 min: 232.42 max: 237.42
08:53:40.034 : N54 M105 *54
08:53:43.092 : N55 M105 *55
08:53:46.150 : N56 M105 *52
08:53:49.223 : N57 M105 *53
08:53:52.280 : N58 M105 *58
08:53:54.418 : bias: 83 d: 83 min: 232.50 max: 237.50
08:53:54.418 : Ku: 42.27 Tu: 17.17
08:53:54.418 : Clasic PID
08:53:54.418 : Kp: 25.36
08:53:54.418 : Ki: 2.95
08:53:54.418 : Kd: 54.44
08:53:55.338 : N59 M105 *59
08:53:58.396 : N60 M105 *49
08:54:01.453 : N61 M105 *48
08:54:04.511 : N62 M105 *51
08:54:07.568 : N63 M105 *50
08:54:10.626 : N64 M105 *53
08:54:11.718 : bias: 81 d: 81 min: 232.58 max: 237.42
08:54:11.718 : Ku: 42.58 Tu: 17.30
08:54:11.718 : Clasic PID
08:54:11.734 : Kp: 25.55
08:54:11.734 : Ki: 2.95
08:54:11.734 : Kd: 55.26
08:54:13.684 : N65 M105 *52
08:54:16.741 : N66 M105 *55
08:54:19.799 : N67 M105 *54
08:54:22.856 : N68 M105 *57
08:54:25.914 : N69 M105 *56
08:54:28.972 : N70 M105 *48
08:54:29.549 : bias: 82 d: 82 min: 232.42 max: 237.34
08:54:29.549 : Ku: 42.43 Tu: 17.83
08:54:29.564 : Clasic PID
08:54:29.564 : Kp: 25.46
08:54:29.564 : Ki: 2.86
08:54:29.564 : Kd: 56.72
08:54:29.564 : PID Autotune finished! Put the Kp, Ki and Kd constants into Configuration.h
08:54:32.029 : N71 M105 *49
08:54:32.029 : Error:Line Number is not Last Line Number+1, Last Line: 44
08:54:32.029 : Resend: 45
08:54:32.076 : Resend: N45 M105 *54
08:54:32.076 : Resend: N46 M105 *53
08:54:32.076 : Resend: N47 M105 *52
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 29, 2015 04:19AM
So far it looks ok. Maybe you have set the receive buffer size too high. Should be 127 in your case. If it is set too high you get such messages and other error messges quite frequently once you start printing.

Anyhow I see host resends the M105 in question but your log stops where I can say if it succeeds. But so far it is ok. And if you can send e.g. M115 afterwards and get an answer in log it is nothing to worry.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 30, 2015 06:45AM
Hi!

Here is the end of the log, I thought what I put was enough smiling smiley

08:54:29.564 : PID Autotune finished! Put the Kp, Ki and Kd constants into Configuration.h
08:54:32.029 : N71 M105 *49
08:54:32.029 : Error:Line Number is not Last Line Number+1, Last Line: 44
08:54:32.029 : Resend: 45
08:54:32.076 : Resend: N45 M105 *54
08:54:32.076 : Resend: N46 M105 *53
08:54:32.076 : Resend: N47 M105 *52
08:54:32.076 : Resend: N48 M105 *59
08:54:32.076 : Resend: N49 M105 *58
08:54:32.076 : Resend: N50 M105 *50
08:54:32.076 : Resend: N51 M105 *51
08:54:32.076 : Resend: N52 M105 *48
08:54:32.076 : Resend: N53 M105 *49
08:54:32.092 : Resend: N54 M105 *54
08:54:32.123 : Resend: N55 M105 *55
08:54:32.138 : Resend: N56 M105 *52
08:54:32.154 : Resend: N57 M105 *53
08:54:32.185 : Resend: N58 M105 *58
08:54:32.201 : Resend: N59 M105 *59
08:54:32.216 : Resend: N60 M105 *49
08:54:32.248 : Resend: N61 M105 *48
08:54:32.263 : Resend: N62 M105 *51
08:54:32.279 : Resend: N63 M105 *50
08:54:32.310 : Resend: N64 M105 *53
08:54:32.326 : Resend: N65 M105 *52
08:54:32.341 : Resend: N66 M105 *55
08:54:32.357 : Resend: N67 M105 *54
08:54:32.388 : Resend: N68 M105 *57
08:54:32.404 : Resend: N69 M105 *56
08:54:32.419 : Resend: N70 M105 *48
08:54:32.435 : Resend: N71 M105 *49
08:54:35.087 : N72 M105 *50
08:54:38.144 : N73 M105 *51
08:54:41.202 : N74 M105 *52
08:54:44.260 : N75 M105 *53
08:54:47.317 : N76 M105 *54
08:54:50.375 : N77 M105 *55
08:54:53.432 : N78 M105 *56
08:54:56.490 : N79 M105 *57
08:54:59.548 : N80 M105 *63
08:55:02.605 : N81 M105 *62
08:55:04.961 : N82 M140 S0 *127
08:55:05.663 : N83 M105 *60
08:55:06.724 : N84 M140 S115 *124
08:55:07.706 : N85 M104 T0 S0 *60
08:55:08.252 : N86 M104 T0 S235 *59
08:55:08.720 : N87 M105 *56
08:55:11.778 : N88 M105 *55
08:55:14.836 : N89 M105 *54
08:55:17.893 : N90 M105 *62
08:55:20.940 : N91 M105 *63


Regarding the receive buffer, I'll check that this afternoon! But I doubt it will solve the problem since the PID autotune was working fine last month and I haven't change any setting on Repetier.

Thanks!
Re: PID Autotune Error:Line Number is not Last Line Number+1
April 30, 2015 07:04AM
Ok, rest also looks fine. A normal resend request with no problems afterwards.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: PID Autotune Error:Line Number is not Last Line Number+1
May 21, 2015 04:03AM
Hi! I've been busy the lasts few weeks.

I just have one last question: shouldn't I get an average Kp, Ki and Kd to put in Marlin ? Or are the last numbers* the averages ?

Thanks again,
Bouck


* 08:54:29.564 : Kp: 25.46
08:54:29.564 : Ki: 2.86
08:54:29.564 : Kd: 56.72
08:54:29.564 : PID Autotune finished! Put the Kp, Ki and Kd constants into Configuration.h
Re: PID Autotune Error:Line Number is not Last Line Number+1
May 21, 2015 05:47AM
The algorithm is iterative improving every iteration (or at least should), so you should use the latest values.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Sorry, only registered users may post in this forum.

Click here to login