Преглед на файлове

Configuration.m: Set PID_INTEGRAL_DRIVE_MAX from PID_MAX from BANG_MAX.

Current defaults are all 255.  If it makes sense to reduce them, they should come down together, and
be in a  PID_INTEGRAL_DRIVE_MAX <= PID_MAX <- BANG_MAX relationship.
David Forrest преди 10 години
родител
ревизия
cf52c48d19
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      Marlin/Configuration.h

+ 2
- 2
Marlin/Configuration.h Целия файл

144
 // Comment the following line to disable PID and enable bang-bang.
144
 // Comment the following line to disable PID and enable bang-bang.
145
 #define PIDTEMP
145
 #define PIDTEMP
146
 #define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
146
 #define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
147
-#define PID_MAX 255 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
147
+#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
148
 #ifdef PIDTEMP
148
 #ifdef PIDTEMP
149
   //#define PID_DEBUG // Sends debug data to the serial port.
149
   //#define PID_DEBUG // Sends debug data to the serial port.
150
   //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
150
   //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
151
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
151
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
152
                                   // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
152
                                   // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
153
-  #define PID_INTEGRAL_DRIVE_MAX 255  //limit for the integral term
153
+  #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
154
   #define K1 0.95 //smoothing factor within the PID
154
   #define K1 0.95 //smoothing factor within the PID
155
   #define PID_dT ((OVERSAMPLENR * 10.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine
155
   #define PID_dT ((OVERSAMPLENR * 10.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine
156
 
156
 

Loading…
Отказ
Запис