Welcome! Log In Create A New Profile

Advanced

Compilation problem

Posted by rabsystem 
Compilation problem
October 12, 2021 01:55AM
Hi .
I tried to change the table heating parameters from 0-1 to PID. I got errors after exiting the compilation.


Look for the phrase "error" in the text file

Please help.
Paul

Edited 2 time(s). Last edit at 10/12/2021 02:27AM by Dust.
Attachments:
open | download - info_kompilatora.txt (71.8 KB)
Re: Compilation problem
October 12, 2021 02:28AM
There is no need to yell, or be obnoxious.
No need for large fonts and bold of text
Re: Compilation problem
October 12, 2021 02:29AM
How about providing more information instead of shouting?

What exactly did you change?
Re: Compilation problem
October 12, 2021 08:24AM
I have made changes to the file - see the attachment
Attachments:
open | download - change - PID.txt (3.2 KB)
Re: Compilation problem
October 12, 2021 09:48AM
you should not comment out #define BANG_MAX 255
The very next line uses the same value for PID_MAX
ie
#define PID_MAX BANG_MAX
Re: Compilation problem
October 12, 2021 12:46PM
Hello again.

As per your advice I uncommented the #define BANG_MAX 255 and the compiler resulted with errors as on attached screenshot.
Attachments:
open | download - WhatsApp Image 2021-10-12 at 18.43.33.jpeg (231.1 KB)
Re: Compilation problem
October 12, 2021 03:35PM
You have enabled #define PID_PARAMS_PER_HOTEND when you only have 1 hotend.
Comment out #define PID_PARAMS_PER_HOTEND unless you have more than 1 hotend
Re: Compilation problem
October 12, 2021 04:04PM
Hi.
I appreciate your quick reply, yet I'm a little concerned. My idea is to have both hot end and hot bed heated in PID fashion. Now I have "BANG-BANG" control mode and I don't quite like it. Upon your post I conclude that PID heating is not possible for just one hot end. Please advise.
Re: Compilation problem
October 12, 2021 04:50PM
That is not correct at all.

#define PIDTEMP
this enables pid for the hotend(s)

you have one hotend so disable #define PID_PARAMS_PER_HOTEND

It then uses the values from the else part of

#if ENABLED(PID_PARAMS_PER_HOTEND)
    // Specify up to one value per hotend here, according to your setup.
    // If there are fewer values, the last one applies to the remaining hotends.
    #define DEFAULT_Kp_LIST {  22.20,  22.20 }
    #define DEFAULT_Ki_LIST {   1.08,   1.08 }
    #define DEFAULT_Kd_LIST { 114.00, 114.00 }
  #else
    #define DEFAULT_Kp  22.20
    #define DEFAULT_Ki   1.08
    #define DEFAULT_Kd 114.00
  #endif


#define PIDTEMPBED
Enables pid on the bed

uses these values
#if ENABLED(PIDTEMPBED)
  //#define MIN_BED_POWER 0
  //#define PID_BED_DEBUG // Sends debug data to the serial port.

  // 120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
  // from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
  #define DEFAULT_bedKp 10.00
  #define DEFAULT_bedKi .023
  #define DEFAULT_bedKd 305.4

  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
#endif // PIDTEMPBED

Having "#define BANG_MAX 255" does not mean you using bitbang

Edited 2 time(s). Last edit at 10/12/2021 04:54PM by Dust.
Sorry, only registered users may post in this forum.

Click here to login